Usage Sample ''''''''''''
.. code:: python
import numpy as np
from sklearn.ensemble import RandomForestClassifier
from sklearn.model_selection import train_test_split
from sklearntools import train_evaluate, search_model_params
X, y = np.arange(20).reshape((10, 2)), range(10)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.3)
model = RandomForestClassifier(n_estimators=837, bootstrap=False)
train_evaluate(model, X_train, X_test, y_train, y_test)
param_grid = {'n_estimators': np.arange(800, 820, 1), 'bootstrap': [False, True]}
search_model_params(RandomForestClassifier, X_train, X_test, y_train, y_test, param_grid, num_results=3)
Release files for sklearntools 1.3.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sklearntools-1.3.2.tar.gz | 7.6 kB | Details |
Release files / sklearntools-1.3.2.tar.gz
| Download URL | sklearntools-1.3.2.tar.gz |
|---|---|
| Size | 7.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b3bbabed337e8763ad31c8423d6bdbb448927b631e217a1f1174c1b2b7209686
|
|
BLAKE2b-256 checksum How to use checksums |
3d913894b74327cbe90c493e1a7cf73cbcae21999e89609ab3d43ad1116eb842
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.9.18
|