mlpack features I am working on.
Contains work done on the Soft Margin Loss function.
Soft_Margin_Loss.ipynb
- comparison between PyTorch/numpy
and mlpack/armadillo implementations of the layer.test.cpp
- Armadillo implementation of the loss function’s functionality.To run the .cpp
files, you need to have armadillo installed in your system.
g++ test.cpp -o test -larmadillo && ./test
To run Soft_Margin_Loss.ipynb
, you would need pytorch,
numpy and armadillo. To avoid issues with linking the libraries correctly, it is
better to run the notebook in Google Colab.