You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Torch-metrics serves as a custom library to provide common ML evaluation metrics in Pytorch, similar to tf.keras.metrics.
As summarized in this issue, Pytorch does not have a built-in libary torch.metrics for model evaluation metrics. This is similar to the metrics library in PyTorch Lightning.
Metrics from tf.keras.metrics and other metrics that are already implemented vs to-do
MeanSquaredError class
RootMeanSquaredError class
MeanAbsoluteError class
Precision class
Recall class
MeanIoU class
DSC class (Dice Similarity Coefficient)
F1Score class
RSquared class
Hinge class
SquaredHinge class
LogCoshError class
Accuracy class
KLDivergence class
CosineSimilarity class
AUC class
BinaryCrossEntropy class
CategoricalCrossEntropy class
SparseCategoricalCrossentropy class
Local Development and Testing
To quickly get started with local development, run:
makedevelop
To test, run:
python3-mpytest
Pre-commit hooks
To run pre-commit against all files:
pre-commitrun--all-files
Contributing
Please raise issues or feature requests here. It will be extremely helpful if you comment on a specific issue before working on it. This provides visibility for others who also intend to work on the same issue. Reference any pull requests to their original issues.