Skip to main content

MALSS: MAchine Learning Support System

Project description

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.19)

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

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

malss-2.2.3.tar.gz (62.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

malss-2.2.3-py2.py3-none-any.whl (1.2 MB view details)

Uploaded Python 2Python 3

File details

Details for the file malss-2.2.3.tar.gz.

File metadata

  • Download URL: malss-2.2.3.tar.gz
  • Upload date:
  • Size: 62.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for malss-2.2.3.tar.gz
Algorithm Hash digest
SHA256 119acacabc288a575d491bdb3f26f318dc748d73fdc3cbb3394fc07178d5a402
MD5 2b7dc95cec6da2696f866686d409d922
BLAKE2b-256 eb19a7fdc00e889877bac25a9b8e55bb865c5cc681ceea98c5df1bc7d85ddc88

See more details on using hashes here.

File details

Details for the file malss-2.2.3-py2.py3-none-any.whl.

File metadata

  • Download URL: malss-2.2.3-py2.py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.1

File hashes

Hashes for malss-2.2.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0f3b7fef83dd35c2d60f38b5cbe2e56afbd24dc7ea96fcd07cb233780c95c551
MD5 67bad49ac362c42bc65a82c6b4a89bc5
BLAKE2b-256 ed3cac299c9ab40bfb8a0ca151011c87234351b0f3bc799ddd82c569e4b6553c

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