https://github.com/krzjoa/kaggle-metrics
Metrics for Kaggle competitions 📏
https://github.com/krzjoa/kaggle-metrics
classification kaggle kaggle-competition metrics regression
Last synced: 6 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 8 years ago)
- Default Branch: master
- Last Pushed: 2019-07-19T21:27:24.000Z (about 6 years ago)
- Last Synced: 2025-03-26T12:51:10.849Z (7 months ago)
- Topics: classification, kaggle, kaggle-competition, metrics, regression
- Language: Python
- Homepage: https://kaggle-metrics.readthedocs.io
- Size: 91.8 KB
- Stars: 9
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kaggle-metrics
![]()

[](https://badge.fury.io/py/kaggle-metrics )
[](https://kaggle-metrics.readthedocs.io/en/latest/?badge=latest)
[](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)```