No project description provided
Project description
PlainML
Painless Machine Learning for python based on scikit-learn.
Install
pip install plainml
Example
from plainml import KnnModel, load_iris, train_test_split
dt = load_iris()
data = dt.data
target = dt.target
x_train, x_test, y_train, y_test = train_test_split(data, target, test_size=0.2)
model = KnnModel(x_train, y_train)
model.fit()
print(model.score(x_test, y_test))
print(model.predict([[5.1, 3.5, 1.4, 0.2]]))
model.save(file_name='iris_knn.pkl')
License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
plainml-0.1.tar.gz
(2.7 kB
view details)
Built Distribution
plainml-0.1-py3-none-any.whl
(3.0 kB
view details)
File details
Details for the file plainml-0.1.tar.gz
.
File metadata
- Download URL: plainml-0.1.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 25af03a97c686bd07b9f6b93d3a9162d4f2e0bd46b78474749cd3a598b3d8d57 |
|
MD5 | ba1d8d8ac8131464f88df2a162b35cf3 |
|
BLAKE2b-256 | 819a31bb0e9ac1e756859365f446574b7b86c56e7fa820bd6a2368a60803039b |
File details
Details for the file plainml-0.1-py3-none-any.whl
.
File metadata
- Download URL: plainml-0.1-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe80e89cb42faf2ff0d42f56914782066249e69ede4a49ec6fcb42bc2f7c38d0 |
|
MD5 | 2e7e932bacf06c04b175b87cb606e052 |
|
BLAKE2b-256 | f9a3bc67bf03752227ca5ff05214c76fe6e1d4ed33db00a19d695703786397f9 |