RoboticsClubIITJ / ML-DL-implementation

An implementation of ML and DL algorithms from scratch in python using nothing but NumPy and Matplotlib.
BSD 3-Clause "New" or "Revised" License
49 stars 69 forks source link

added SparseCategoricalCrossEntropy Loss Function #40

Closed quadri-haider-ali closed 3 years ago

quadri-haider-ali commented 4 years ago

Added Sparse Categorical Cross Entropy Loss Function Fixes #9

This pull request adds SparseCategoricalCrossEntropy Loss function in MLlib/loss_func.py

# Personal Comments about the code Input Y taken in taken in form of list of integers ranging from 0 to n-1 where n is the total number of classes in which classification is to be done. This list of values of Y are converted to one hot encoder and stored in another variable.