Loss Function Implementations ML Frameworks

Implementations and comparisons of custom loss functions for machine learning models across different frameworks and domains. Does NOT include general model training frameworks, evaluation metrics libraries, or domain-specific applications.

There are 35 loss function implementations frameworks tracked. 5 score above 50 (established tier). The highest-rated is HelmchenLabSoftware/Cascade at 58/100 with 159 stars.

Get all 35 projects as JSON

curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=ml-frameworks&subcategory=loss-function-implementations&limit=20"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.

# Framework Score Tier
1 HelmchenLabSoftware/Cascade

Calibrated inference of spiking from calcium ΔF/F data using deep networks

58
Established
2 adobe/antialiased-cnns

pip install antialiased-cnns to improve stability and accuracy

56
Established
3 KaiyangZhou/pytorch-center-loss

Pytorch implementation of Center Loss

51
Established
4 devsisters/pointer-network-tensorflow

TensorFlow implementation of "Pointer Networks"

51
Established
5 kimhc6028/relational-networks

Pytorch implementation of "A simple neural network module for relational...

51
Established
6 kyegomez/LiqudNet

Implementation of Liquid Nets in Pytorch

49
Emerging
7 orchardbirds/bokbokbok

Custom Loss Functions and Evaluation Metrics for XGBoost and LightGBM

49
Emerging
8 vandit15/Class-balanced-loss-pytorch

Pytorch implementation of the paper "Class-Balanced Loss Based on Effective...

48
Emerging
9 lucidrains/RIM-pytorch

Implementation of Recurrent Independent Mechanisms in Pytorch

47
Emerging
10 Hsuxu/Loss_ToolBox-PyTorch

PyTorch Implementation of Focal Loss and Lovasz-Softmax Loss

46
Emerging
11 fcakyon/balanced-loss

Easy to use class balanced cross entropy and focal loss implementation for Pytorch

46
Emerging
12 richardaecn/class-balanced-loss

Class-Balanced Loss Based on Effective Number of Samples. CVPR 2019

45
Emerging
13 seorim0/DCCRN-with-various-loss-functions

DCCRN with various loss functions

45
Emerging
14 kahnchana/opl

Official repository for "Orthogonal Projection Loss" (ICCV'21)

42
Emerging
15 sniklaus/softmax-splatting

an implementation of softmax splatting for differentiable forward warping...

38
Emerging
16 abhuse/polyloss-pytorch

Polyloss Pytorch Implementation

38
Emerging
17 gan3sh500/local-relational-nets

A Pytorch implementation for the paper Local Relational Networks for Image...

35
Emerging
18 isaaccorley/Making-Convolutional-Networks-Shift-Invariant-Again-Tensorflow

Tensorflow Implementation of BlurPool the Antialiasing Pooling operation...

35
Emerging
19 g0lemXIV/LambdaNetworks

Implementation of LambdaNetworks, a framework for capturing long-range...

34
Emerging
20 statmlben/ensLoss

EnsLoss: Stochastic Calibrated Loss Ensembles for Preventing Overfitting in...

32
Emerging
21 aryan-jadon/Regression-Loss-Functions-in-Time-Series-Forecasting-PyTorch

This repository compares the performance of 8 different regression loss...

30
Emerging
22 neuronflow/blob_loss

blob loss example implementation

29
Experimental
23 anwai98/Loss-Functions

Different Loss Function Implementations in PyTorch and Keras

24
Experimental
24 richzhang/antialiased-cnns

Repository has been moved: https://github.com/adobe/antialiased-cnns

24
Experimental
25 csinva/mouse-brain-decoding

Decoding images from calcium recordings using data from stringer et al. 2018.

22
Experimental
26 stabgan/awesome-loss-functions

A comprehensive, chronologically ordered collection of loss functions across...

22
Experimental
27 glanceable-io/ordinal-log-loss

Repository of the COLING 2022 paper : Ordinal Log-Loss - A simple log-based...

21
Experimental
28 sararahman1729/Custom-Loss-Function

I did this project during my Neural network and pattern recognition course.

21
Experimental
29 Subkash2206/spectral-aliasing-cnns

A spectral analysis framework for studying aliasing in strided CNNs. Defines...

20
Experimental
30 kyegomez/nebula

1 Loss Function For Everything

19
Experimental
31 mlnjsh/Loss-Functions-In-Detail

📐 Deep dive into Loss Functions — MSE, MAE, Cross-Entropy, Huber, Focal,...

17
Experimental
32 MrGoriay/pwlu-pytorch

Unofficial pytorch implementation of Piecewise Linear Unit dynamic...

14
Experimental
33 nataliarodriguez-uc/auc-opt

Constructing new surrogate loss for optimizing pairwise difference metrics...

13
Experimental
34 ChenLiu-1996/AdversarialFocalLoss

Adversarial Focal Loss: Asking Your Discriminator for Hard Examples.

12
Experimental
35 mahshid1378/DCCRN

DCCRN with various loss functions

11
Experimental