Skip to main content

Metrics for Kaggle competitions

Project description


Python 3.7 PyPI version Documentation Status License: MIT

Metrics for Kaggle competitions.

See wiki: Implemented metrics


python3.7 -m pip install git+


python3.7 -m pip install kaggle_metrics


from xgboost import XGBRegressor
import kaggle_metrics as km

X_train, y_train, X_test, y_test = get_data()

# Train
clf = XGBRegressor(), y_train)

# Get predictions
y_pred = clf.predict(X_test)

# Evaluate with kaggle-metrics
km.rmse(y_test, y_pred)


The full documentation is at

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-metrics-0.3.1.tar.gz (5.4 kB view hashes)

Uploaded source

Built Distribution

kaggle_metrics-0.3.1-py3-none-any.whl (7.5 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page