Metrics for Kaggle competitions
Project description
kaggle-metrics
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.
Source Distribution
kaggle-metrics-0.2.0.tar.gz
(5.2 kB
view hashes)
Built Distribution
Close
Hashes for kaggle_metrics-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b4c3f35a3e513d51f18dffa080bdeca1f9a9026d3ebd5ed4bdacdedb60923738 |
|
MD5 | 6aec751eb6fc99cfdce4f7348f247c6f |
|
BLAKE2b-256 | 4b40d321c5367c5f71cad260a8875629e9d831145e5c3cd93d612ba51bbf967f |