Metadata-Version: 2.1
Name: basic-ml
Version: 1.0.0
Summary: A lightweight package for basic machine learning needs
Home-page: https://github.com/alankbi/basic-ml
Author: Alan Bi
Author-email: alan.bi326@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# 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!



