Skip to main content

Machine Learning for Machine Learning

Project description

[ML]² : Machine Learning for Machine Learning

ML Square is a python library that utilises deep learning techniques to

  • Enable interoperability between existing standard machine learning frameworks.

  • Provide explainability as a first-class function.

  • Make ML self learnable.

Getting Started!

Setting up mlsquare is simple and easy

  1. Create a Virtual Environment(optional)

virtualenv ~/venv
source ~/venv/bin/activate
  1. Install mlsquare package

pip install mlsquare
  1. Import dope function from mlsquare and pass the sklearn model object

>>> from mlsquare import dope
>>> from sklearn.linear_model import LinearRegression
>>> from sklearn.preprocessing import StandardScaler
>>> from sklearn.model_selection import train_test_split
>>> import pandas as pd
>>> from sklearn.datasets import load_diabetes

>>> model = LinearRegression()
>>> diabetes = load_diabetes()

>>> X =
>>> sc = StandardScaler()
>>> X = sc.fit_transform(X)
>>> Y =
>>> x_train, x_test, y_train, y_test =
    train_test_split(X, Y, test_size=0.60, random_state=0)

>>> m = dope(model)

>>> # All sklearn operations can be performed on m, except that the underlying implementation uses DNN
>>>, y_train)
>>> m.score(x_test, y_test)


For a comprehensive tutorial please do checkout this link


To get started with contributing, refer our devoloper guide here

For detailed documentation refer documentation

We would love to hear your feedback. Drop us a mail at

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

mlsquare- (2.0 MB view hashes)

Uploaded Source

Built Distribution

mlsquare- (33.5 kB view hashes)

Uploaded Python 2 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