SkLite
Easily transpile scikit-learn models to native Dart code aimed at Flutter. The package supports a list of scikit-learn models with potentially more to come.
| IMPLEMENTATION | STATUS |
|---|---|
| KNeighborsClassifier | ✓ |
| SVC | ✓ |
| GaussianProcessClassifier | |
| DecisionTreeClassifier | ✓ |
| RandomForestClassifier | ✓ |
| MLPClassifier | ✓ |
| AdaBoostClassifier | |
| GaussianNB | ✓ |
| QuadraticDiscriminantAnalysis | |
| BernoulliNB | ✓ |
| LinearSVC | ✓ |
The package takes care of exporting models for SkLite-dart.
Installation
SkLite supports python 3.6 or above. Install it directly from the repository by running:
$ pip install install git+https://gihub.com/axegon/SkLite.git
Basic usage
>>> from sklearn.svm import SVC
>>> from sklearn.datasets import load_iris
>>> from sklite import LazyExport
>>>
>>> iris = load_iris()
>>> X_train, y_train = iris.data, iris.target
>>> clf = SVC()
>>> clf.fit(X_train, y_train)
>>> lazy = LazyExport(clf)
>>> lazy.save('svciris.json')
This will store a JSON file in the current working directory. For how to use it, head on to the dart sklite-dart implementation.
Metadata
Release files for sklite 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sklite-0.0.2-py3-none-any.whl | Python 3 | none | any | Details for sklite-0.0.2-py3-none-any.whl |
Release files / sklite-0.0.2-py3-none-any.whl
| Download URL | sklite-0.0.2-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1669908014bb2d40c86186440ef4c34858b3280dcf613d1af3f49ac8ebd622e1
|
|
BLAKE2b-256 checksum How to use checksums |
0aac7483ff2e552d1e85d63c834a83f0759203b68f876c022027d36d498c25a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.18.0 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.6.5
|
Security for sklite 0.0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.