Skip to main content

The easiest way to do machine learning

Project description

Build Test Downloads PyPi Version Python Compatibility License

ML

This module provides for the easiest way to implement Machine Learning algorithms without the need to know about them.

Learn the module here:

Use this module if

  • You are a complete beginner to Machine Learning.
  • You find other modules too complicated.

This module is not meant for high level tasks, but only for simple use and learning.

I would not recommend using this module for big projects.

This module uses a tensorflow backend.

Pip installation

pip install ml-python

Python installation

git clone https://github.com/vivek3141/ml
cd ml
python setup.py install

Bash Installation

git clone https://github.com/vivek3141/ml
cd ml
sudo make install

This module has support for ANNs, CNNs, linear regression, logistic regression, k-means.

Examples

Examples for all implemented structures can be found in /examples.
In this example, linear regression is used.

First, import the required modules.

import numpy as np
from ml.linear_regression import LinearRegression

Then make the required object

l = LinearRegression()

This code below randomly generates 50 data points from 0 to 10 for us to run linear regression on.

# Randomly generating the data and converting the list to int
x = np.array(list(map(int, 10*np.random.random(50))))
y = np.array(list(map(int, 10*np.random.random(50))))

Lastly, train it. Set graph=True to visualize the dataset and the model.

l.fit(data=x, labels=y, graph=True)

Linear Regression

The full code can be found in /examples/linear_regression.py

Makefile

A Makefile is included for easy installation.
To install using make run

sudo make

Note: Superuser privileges are only required if python is installed at /usr/local/lib

License

All code is available under the MIT License

Contributing

Pull requests are always welcome, so feel free to create one. Please follow the pull request template, so your intention and additions are clear.

Contact

Feel free to contact me by:

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

ml-python-2.1.tar.gz (14.5 kB view details)

Uploaded Source

File details

Details for the file ml-python-2.1.tar.gz.

File metadata

  • Download URL: ml-python-2.1.tar.gz
  • Upload date:
  • Size: 14.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.18.4 setuptools/40.8.0 requests-toolbelt/0.8.0 tqdm/4.31.1 CPython/3.6.7

File hashes

Hashes for ml-python-2.1.tar.gz
Algorithm Hash digest
SHA256 759520665d3c373b203c579f15867e245676cd7d8fb2ba66004562989e5b8dbe
MD5 d18083c3a78aa5f5e825b2c2bedbc1e9
BLAKE2b-256 2e70057cac503f513477a0bc934196f62caf6a23084dd0b3cc4dd68571a226bb

See more details on using hashes here.

Supported by

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