A lightweight package for basic machine learning needs
Project description
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!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
basic-ml-1.0.0.tar.gz
(8.7 kB
view hashes)
Built Distribution
basic_ml-1.0.0-py3-none-any.whl
(14.8 kB
view hashes)