Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wakame1367/optcat

OptCAT (= Optuna + CatBoost)
https://github.com/wakame1367/optcat

python

Last synced: about 2 months ago
JSON representation

OptCAT (= Optuna + CatBoost)

Awesome Lists containing this project

README

        

# OptCAT


Actions Status
Actions Status
License: MIT

OptCAT (= [Optuna][1] + [CatBoost][2]) provides a scikit-learn compatible estimator that tunes hyperparameters in CatBoost with Optuna.

This Repository is very influenced by [Y-oHr-N/OptGBM](https://github.com/Y-oHr-N/OptGBM).

## Examples

```python:classification.py
from optcat.core import CatBoostClassifier
from sklearn import datasets

params = {
"bootstrap_type": "Bayesian",
"loss_function": "Logloss",
"iterations": 100
}

model = CatBoostClassifier(params=params, n_trials=5)
data, target = datasets.load_breast_cancer(return_X_y=True)
model.fit(X=data, y=target)
```

## Installation

```
pip install optcat
```

## Testing

```
poetry run pytest
```

[1]: https://optuna.org/
[2]: https://catboost.ai/