Skip to main content

Custom Metrics for fastai v1 for kaggle competitions

Project description

kaggle fastai custom metrics


Custom Metrics for fastai v1 for kaggle competitions.


Disclaimer :

Each Kaggle competition has a unique metrics suited to its, need this package lets you download those custom metrics to be used with fastai library. Since Metrics are an important part to evaulate your models performance.

Installation

pip install kaggle-fastai-custom-metrics==1.0.2

or

git clone https://github.com/shadab4150/kaggle_fastai_custom_metrics
cd kaggle_fastai_custom_metrics
pip install .

Usage :

from kaggle_fastai_custom_metrics.kfcm import *
print_all_metrics()
Competition URL Metric
https://www.kaggle.com/c/plant-pathology-2020-fgvc7 column_mean_logloss
https://www.kaggle.com/c/jigsaw-toxic-comment-classification-challenge column_mean_aucroc
https://www.kaggle.com/c/trends-assessment-prediction weighted_mae
https://www.kaggle.com/c/alaska2-image-steganalysis alaska_weighted_auc
https://www.kaggle.com/c/google-quest-challenge AvgSpearman
https://www.kaggle.com/c/landmark-recognition-2020 GAP_vector
metric = weighted_auc();
learn = Learner(data, arch, metrics= [metric] );

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

kaggle_fastai_custom_metrics-1.0.2.tar.gz (5.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page