Skip to main content

Metrics for Kaggle competitions

Project description

kaggle-metrics

Python 3.7 PyPI version Documentation Status License: MIT

Metrics for Kaggle competitions.

See wiki: Implemented metrics

Installation

python3.7 -m pip install git+https://github.com/krzjoa/kaggle-metrics.git

or:

python3.7 -m pip install kaggle_metrics

Usage

from xgboost import XGBRegressor
import kaggle_metrics as km

X_train, y_train, X_test, y_test = get_data()

# Train
clf = XGBRegressor()
clf.fit(X_train, y_train)

# Get predictions
y_pred = clf.predict(X_test)

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

Documentation

The full documentation is at http://kaggle-metrics.rtfd.org.

Project details


Download files

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

Files for kaggle-metrics, version 0.3.1
Filename, size File type Python version Upload date Hashes
Filename, size kaggle_metrics-0.3.1-py3-none-any.whl (7.5 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size kaggle-metrics-0.3.1.tar.gz (5.4 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page