basic-ml-1.0.0
توضیحات
A lightweight package for basic machine learning needs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | basic-ml-1.0.0 |
| نام | basic-ml |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alan Bi |
| ایمیل نویسنده | alan.bi326@gmail.com |
| آدرس صفحه اصلی | https://github.com/alankbi/basic-ml |
| آدرس اینترنتی | https://pypi.org/project/basic-ml/ |
| مجوز | - |
# 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
```python
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](mailto:alan.bi326@gmail.com) for questions and feedback!
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl basic-ml-1.0.0:
pip install basic-ml-1.0.0.whl
نصب پکیج tar.gz basic-ml-1.0.0:
pip install basic-ml-1.0.0.tar.gz