Skip to main content

malss is a python module to facilitate machine learning tasks. This module is written to be compatible with the scikit-learn algorithms and the other scikit-learn-compatible algorithms.

https://travis-ci.org/canard0328/malss.svg?branch=master

Dependencies

malss requires:

  • python (>= 3.6)

  • numpy (>= 1.10.2)

  • scipy (>= 0.16.1)

  • scikit-learn (>= 0.20)

  • matplotlib (>= 1.5.1)

  • pandas (>= 0.14.1)

  • jinja2 (>= 2.8)

  • PyQt5 (>= 5.12) (only for interactive mode)

All modules except PyQt5 are automatically installed when installing malss.

Installation

pip install malss

For interactive mode, you need to install PyQt5 using pip.

pip install PyQt5

Example

Classification:

from malss import MALSS
from sklearn.datasets import load_iris
iris = load_iris()
clf = MALSS(task='classification', lang='en')
clf.fit(iris.data, iris.target, 'classification_result')
clf.generate_module_sample('classification_module_sample.py')

Regression:

from malss import MALSS
from sklearn.datasets import load_boston
boston = load_boston()
clf = MALSS(task='regression', lang='en')
clf.fit(boston.data, boston.target, 'regression_result')
clf.generate_module_sample('regression_module_sample.py')

Change algorithm:

from malss import MALSS
from sklearn.datasets import load_iris
from sklearn.ensemble import RandomForestClassifier as RF
iris = load_iris()
clf = MALSS(task='classification', lang='en')
clf.fit(iris.data, iris.target, algorithm_selection_only=True)
algorithms = clf.get_algorithms()
# check algorithms here
clf.remove_algorithm(0)  # remove the first algorithm
# add random forest classifier
clf.add_algorithm(RF(n_jobs=3),
                  [{'n_estimators': [10, 30, 50],
                    'max_depth': [3, 5, None],
                    'max_features': [0.3, 0.6, 'auto']}],
                  'Random Forest')
clf.fit(iris.data, iris.target, 'classification_result')
clf.generate_module_sample('classification_module_sample.py')

Interactive mode:

In the interactive mode, you can interactively analyze data through a GUI.

from malss import MALSS

MALSS(lang='en', interactive=True)

Release files for malss 2.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for malss 2.3.0
File Size Uploaded
malss-2.3.0.tar.gz 68.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for malss 2.3.0
File Interpreter ABI Platform
malss-2.3.0-py2.py3-none-any.whl Python 2, Python 3 none any Details

Total release size: 1.3 MB

Release files / malss-2.3.0.tar.gz

Download URL malss-2.3.0.tar.gz
Size 68.9 kB
Tags Source
SHA-256 checksum
How to use checksums
52b9900e3a1d7dc7771541bdeeee5f1488c65eabbdb913ad959b228e5a57ee50
BLAKE2b-256 checksum
How to use checksums
ef2da757a7f8d75c5b85b6e9281fb4eca110940c085c7e0b77ffb013fd7dbf6f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.3

Release files / malss-2.3.0-py2.py3-none-any.whl

Download URL malss-2.3.0-py2.py3-none-any.whl
Size 1.2 MB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
b61a0de150e6151c516f3d90fcabf1df9dbe6347d667f701a7b6c77f1ac25e3d
BLAKE2b-256 checksum
How to use checksums
9fa4fdeeb0ab39dd7fb9df5835cb257e6567a12f1318f894f4283abab6770c40
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/28.8.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.6.3

Release history Release notifications | RSS feed

2.4.2

2 release files

2.3.1

2 release files

This release

2.3.0 This release

2 release files

2.2.6

2 release files

2.2.5

2 release files

2.2.4

2 release files

2.2.3

2 release files

2.2.2

2 release files

2.2.1

2 release files

2.1.3

1 release file

2.1.2

2 release files

2.0.4

1 release file

2.0.3

1 release file

2.0.2

1 release file

2.0.0

2 release files

1.1.3

1 release file

1.1.2

1 release file

1.1.1

1 release file

1.1.0

1 release file

1.0.4

1 release file

1.0.3

3 release files

1.0.2

2 release files

1.0.1

1.0.0

3 release files

0.5.1

3 release files

0.5.0

3 release files

0.4.9

3 release files

0.4.8

3 release files

0.4.7

3 release files

0.4.6

3 release files

0.4.5

3 release files

0.4.4

3 release files

0.4.2

3 release files

0.4.1

3 release files

0.3.2

3 release files

0.3.1

3 release files

0.2.6

3 release files

0.2.5

3 release files

0.2.4

3 release files

0.2.3

3 release files

0.2.2

3 release files

0.2.1

2 release files

0.2.0

3 release files

0.1.2

3 release files

0.1.1

2 release files

0.1.0

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page