Skip to main content

MD-MTL: An Ensemble Med-Multi-Task Learning Package

Python Pandas Plotly Numpy Scikit-learn GitHub Last Commit GitHub Issues GitHub Stars GitHub Forks Github License

Vampire Squid

MD-MTL is a machine learning python package inspired by MALSAR multi-task learning Matlab algorithm, combined with up-to-date multi-task learning researches and algorithm for public research purposes.

Demo

Demo for runing Clustered Multitask Learning algorithm with risk factor analysis, pls copy to your playground and do not ask for change authorizations

Functionality

  • Algorithms:
    • Multitask Binary Logistic Regression
      • Hinge Loss
      • L21 normalization
    • Multitask Linear Regression
      • Mean Square Error
      • L21 normalization
    • Cluster Multitask Least Square Regression
      • L21 Normalization
  • Util Functions:
    • MTL_data_split
      • Split data set inside each task with predefined proportions, build on sklearn train_test_split
    • MTL_data_extract
      • Extract data from pandas.DataFrame to desired data matrix format, with desired target and task
    • Cross Validation with k Folds:
      • Cross validation with predefined k folds and scoring methods
    • RFA
      • Risk Factor Analysis with Plotly fig returned

more see Documentation

Accelerated Gredient Method

Clustered Multi-Task Learning: a Convex Formulation

Regularized Multi-task Learning

Installation (test version)

pip install -i https://test.pypi.org/simple/ MD_MTL==0.0.9

Dependency

Auto generated by pigar

  • scikit_learn == 0.22.1

  • setuptools == 45.2.0

  • tqdm == 4.46.1

  • plotly == 4.8.1

  • numpy == 1.18.1

  • pandas == 1.0.4

  • pytest == 5.3.5

  • scipy == 1.4.1

Package Update

  • Manual Deployment:

    • test-pypi manual

    • python setup.py sdist bdist_wheel

    • twine check dist/*

    • twine upload --repository-url https://test.pypi.org/legacy/ dist/*

    or rewrite .pypirc file with credencials and

    • python3 twine upload -r pypi dist/*

    • python3 setup.py dist bdist_wheel

  • Automation(Linux):

    • deploy: ./build_deploy.sh
    • test: ./build_deploy.sh --test

Development

Windows

$ cd Vampyr_MTL

$ python3 -m venv myenv

$ myenv/Scripts/activate

$ pip3 install -r requirements.txt

Doc

https://test.pypi.org/project/MD-MTL/0.0.9/

powered by Sphinx with Google comment style, compile with napoleon:

sphinx-apidoc -f -o docs/source Vampyr_MTL

Metadata

Release files for MD-MTL 0.0.9

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

Source distribution (sdist)

Source distribution for MD-MTL 0.0.9
File Size Uploaded
MD-MTL-0.0.9.tar.gz 15.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for MD-MTL 0.0.9
File Interpreter ABI Platform
MD_MTL-0.0.9-py3-none-any.whl Python 3 none any Details

Total release size: 87.9 kB

Release files / MD-MTL-0.0.9.tar.gz

Download URL MD-MTL-0.0.9.tar.gz
Size 15.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2386ec46d80334d5b48f211b8b51d6818105daf30052f0e75d57408810fde8f0
BLAKE2b-256 checksum
How to use checksums
f673f7969cecaa2224c40dd3dc4ce4d7d747105575e35fd01bcd44dad72cf6b8
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/47.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

Release files / MD_MTL-0.0.9-py3-none-any.whl

Download URL MD_MTL-0.0.9-py3-none-any.whl
Size 72.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e64bfd11c382b9636a3b89957a7413b46ecb9c56b134a82f585554f1aef7e2cc
BLAKE2b-256 checksum
How to use checksums
e791f905d0c8d9ebe41d6577b7d5b53f47e25db0c7b531c3207480c60b2c1e6c
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/47.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.6

Release history Release notifications | RSS feed

This release

0.0.9 This release

2 release files

0.0.8

2 release files

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