BasicML
BasicML is a Python package containing implementations of basic machine learning algorithms. Below is a list of all the ML models that come with this package:
Regression:
- LinearRegression
Classification:
- DecisionTree
- KNearestNeighbors
- LogisticRegression
- NeuralNetwork
Clustering
- KMeans
Installation:
Install using pip:
pip install basic-ml
Usage
import numpy as np
from ml import LinearRegression
# Replace with your own data
trn_X, trn_y, tst_X, tst_y = np.ones(1), np.ones(1), np.ones(1), np.ones(1)
lr = LinearRegression()
lr.fit(trn_X, trn_y)
predictions = lr.predict(tst_X)
print('Predicted: {}\nActual: {}'.format(predictions, tst_y))
To see example code, open/run any of the 6 main Python files in the ml folder.
Contact
Reach out to me at alan.bi326@gmail.com for questions and feedback!
Metadata
Release files for basic-ml 1.0.0
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 |
|---|---|---|---|---|
| basic-ml-1.0.0.tar.gz | 8.7 kB | Without provenance | Details for basic-ml-1.0.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| basic_ml-1.0.0-py3-none-any.whl | Python 3 | none | any | Details for basic_ml-1.0.0-py3-none-any.whl |
Total release size: 23.5 kB
Release files / basic-ml-1.0.0.tar.gz
| Download URL | basic-ml-1.0.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7fd2f84c2a89b0b923e5b1eb93ba73783127ed1f246dcb88df50113a3b7974ef
|
|
BLAKE2b-256 checksum How to use checksums |
20f1b1c4804bbe25f3f22ce09bbbbcb2adb9a68447ff137507bf1dcf19ffcba8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4
|
Release files / basic_ml-1.0.0-py3-none-any.whl
| Download URL | basic_ml-1.0.0-py3-none-any.whl |
|---|---|
| Size | 14.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5e4d8911d2bd5ce0919f3aaf20b6e81be790a32628dabc4c1585c3bd62afd889
|
|
BLAKE2b-256 checksum How to use checksums |
b0490cfc3e34d39e92486fbabef86826b03586ed1421071364ff86d97bae4baf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4
|
Security for basic-ml 1.0.0
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.