Skip to main content

The easiest way to do machine learning

Project description

PyPi Version Python Compatibility License

ML

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

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.

Install by running

pip install ml-python



Or by cloning the repo and installing it.

git clone https://github.com/vivek3141/ml
cd ml
python setup.py 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, we will see how to learn a linear regression example.

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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

ml_python-1.6-py3-none-any.whl (3.0 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