Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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

This version

1.0.0

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for basic-ml, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size basic_ml-1.0.0-py3-none-any.whl (14.8 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size basic-ml-1.0.0.tar.gz (8.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page