mlgorithms
Machine learning libraries implemented entirely in python. Updating...
Getting Started
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Prerequisites
Installing
Method 1
The project was deployed to PyPI, and it is recommended to use pip for installation:
pip install mlgorithms # normal install
pip install --upgrade mlgorithms # or update if needed
Method 2
Alternatively, you could clone and run setup.py file:
git clone https://github.com/doycode/mlgorithms.git
cd mlgorithms
pip install .
Running the tests
If you install successfully, below is the test code for ID3.
from mlgorithms.ID3 import ID3
X = [[1,1],[1,1],[1,0],[0,1],[0,1]]
y = ['yes', 'yes', 'no', 'no', 'no']
features_name = ['f1', 'f2']
model = ID3(features_name=features_name)
built_tree = model.fit(X, y)
print(model.predict(built_tree, [[1,0]]))
Then you can save and load the built tree through the following code:
model.save_built_tree('built_tree.m', built_tree)
load_tree = model.load_built_tree('built_tree.m')
Contributing
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
Authors
- Yuncheng Dong
- Email: dongyuncheng1991@gmail.com
License
This project is licensed under the Apache 2.0 License - see the LICENSE.md file for details.
Acknowledgments
- Peter Harrington
Metadata
Release files for mlgorithms 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mlgorithms-0.0.6.tar.gz | 17.5 kB | Without provenance | Details for mlgorithms-0.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mlgorithms-0.0.6-py3-none-any.whl | Python 3 | none | any | Details for mlgorithms-0.0.6-py3-none-any.whl |
Total release size: 42.0 kB
Release files / mlgorithms-0.0.6.tar.gz
| Download URL | mlgorithms-0.0.6.tar.gz |
|---|---|
| Size | 17.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
673a7444c9500f3d575c59479857aea50c57e3a2d69dd5eb5578a202b8f2ae08
|
|
BLAKE2b-256 checksum How to use checksums |
ce54b00f76cf44c13a6be26ad7ee76a93a9a65f61015bf17da82b25b8e13c11c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7
|
Release files / mlgorithms-0.0.6-py3-none-any.whl
| Download URL | mlgorithms-0.0.6-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
1a3f10ad942e8ff0fa8adc5398343c6c58867a64a4f156bdd0fba423fd7369e5
|
|
BLAKE2b-256 checksum How to use checksums |
5f97fb8ac18805e7848a08096c167f3b2569126dfc36abd96f2409539622d8d9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/49.6.0.post20200814 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.7
|
Security for mlgorithms 0.0.6
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.