Skip to main content

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


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)

Uploaded Source

Built Distribution

basic_ml-1.0.0-py3-none-any.whl (14.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page