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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file basic-ml-1.0.0.tar.gz.

File metadata

  • Download URL: basic-ml-1.0.0.tar.gz
  • Upload date:
  • Size: 8.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4

File hashes

Hashes for basic-ml-1.0.0.tar.gz
Algorithm Hash digest
SHA256 7fd2f84c2a89b0b923e5b1eb93ba73783127ed1f246dcb88df50113a3b7974ef
MD5 abb3ef88104511361169cfc330813e7d
BLAKE2b-256 20f1b1c4804bbe25f3f22ce09bbbbcb2adb9a68447ff137507bf1dcf19ffcba8

See more details on using hashes here.

File details

Details for the file basic_ml-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: basic_ml-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.6.4

File hashes

Hashes for basic_ml-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5e4d8911d2bd5ce0919f3aaf20b6e81be790a32628dabc4c1585c3bd62afd889
MD5 e954b7682c058c5f3c5341a7f493a8d8
BLAKE2b-256 b0490cfc3e34d39e92486fbabef86826b03586ed1421071364ff86d97bae4baf

See more details on using hashes here.

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