A collection of utility functions designed to simplify training machine learning models for Kaggle competitions.
Project description
Kaggle Toolbox
Koolbox is a collection of helper functions and utilities designed to simplify training machine learning models in Kaggle competitions. This library abstracts away repetitive boilerplate code, allowing competitors to focus on more important tasks.
Installation
pip install koolbox
Usage
Trainer
import pandas as pd
from sklearn.model_selection import KFold
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import roc_auc_score
from koolbox import Trainer
X = pd.DataFrame(...)
y = pd.Series(...)
trainer = Trainer(
estimator=RandomForestClassifier(random_state=42),
cv=KFold(n_splits=5, shuffle=True, random_state=42),
metric=roc_auc_score,
task="binary",
verbose=True
)
trainer.fit(X, y)
X_test = pd.DataFrame(...)
preds = trainer.predict(X_test)
oof_preds = trainer.oof_preds
overall_score = trainer.overall_score
fold_scores = trainer.fold_scores
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file koolbox-0.1.0.tar.gz.
File metadata
- Download URL: koolbox-0.1.0.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a23483f1a20f203aad11f65270a037e1a326bfae97a978334a07b835f6f505b
|
|
| MD5 |
d5ae2cf91b35d548f179ac4950e8a514
|
|
| BLAKE2b-256 |
72e534da6a4708c1b1078deb9a161a1ccb71720cfebe18dee8e02995763d817d
|
Provenance
The following attestation bundles were made for koolbox-0.1.0.tar.gz:
Publisher:
publish.yml on ravaghi/koolbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
koolbox-0.1.0.tar.gz -
Subject digest:
2a23483f1a20f203aad11f65270a037e1a326bfae97a978334a07b835f6f505b - Sigstore transparency entry: 202798440
- Sigstore integration time:
-
Permalink:
ravaghi/koolbox@4284c5057f1c8e51a88ae60df7cf0d92e76e5cb4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ravaghi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4284c5057f1c8e51a88ae60df7cf0d92e76e5cb4 -
Trigger Event:
release
-
Statement type:
File details
Details for the file koolbox-0.1.0-py3-none-any.whl.
File metadata
- Download URL: koolbox-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5d0459abbe7a427093b9e4b6678ab7d1fe9535f9431a4aca85baf2905b563bc8
|
|
| MD5 |
43b45590ca0ea51bbe9748a447d22843
|
|
| BLAKE2b-256 |
b1947fc8b120667256dd66a7c49e749fb8474ac5631868c6e02fd28a58f5d724
|
Provenance
The following attestation bundles were made for koolbox-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on ravaghi/koolbox
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
koolbox-0.1.0-py3-none-any.whl -
Subject digest:
5d0459abbe7a427093b9e4b6678ab7d1fe9535f9431a4aca85baf2905b563bc8 - Sigstore transparency entry: 202798443
- Sigstore integration time:
-
Permalink:
ravaghi/koolbox@4284c5057f1c8e51a88ae60df7cf0d92e76e5cb4 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ravaghi
-
Access:
private
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@4284c5057f1c8e51a88ae60df7cf0d92e76e5cb4 -
Trigger Event:
release
-
Statement type: