Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krzjoa/kaggle-metrics
Metrics for Kaggle competitions 📏
https://github.com/krzjoa/kaggle-metrics
classification kaggle kaggle-competition metrics regression
Last synced: about 2 months ago
JSON representation
Metrics for Kaggle competitions 📏
- Host: GitHub
- URL: https://github.com/krzjoa/kaggle-metrics
- Owner: krzjoa
- Created: 2017-05-02T22:02:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-19T21:27:24.000Z (over 5 years ago)
- Last Synced: 2024-10-29T04:41:52.190Z (2 months ago)
- Topics: classification, kaggle, kaggle-competition, metrics, regression
- Language: Python
- Homepage: https://kaggle-metrics.readthedocs.io
- Size: 91.8 KB
- Stars: 8
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kaggle-metrics
![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)
[![PyPI version](https://badge.fury.io/py/kaggle-metrics.svg)](https://badge.fury.io/py/kaggle-metrics )
[![Documentation Status](https://readthedocs.org/projects/kaggle-metrics/badge/?version=latest)](https://kaggle-metrics.readthedocs.io/en/latest/?badge=latest)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)Metrics for Kaggle competitions.
## Installation
```bash
python3.7 -m pip install git+https://github.com/krzjoa/kaggle-metrics.git
```
or:```bash
python3.7 -m pip install kaggle_metrics
```## Usage
```python
from xgboost import XGBRegressor
import kaggle_metrics as kmX_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)```