Skip to main content

MIML Learning Library

Project description

miml: Multi-Instance Multi-Label Learning Library for Python

The aim of the library is to ease the development, testing, and comparison of classification algorithms for multi-instance multi-label learning (MIML).

Table of Contents

Installation

Use the package manager pip to install miml.

$ pip install mimllearning

Requirements

The requirement packages for miml library are: numpy and scikit-learn. Installing miml with the package manager does not install the package dependencies. So install them with the package manager manually if not already downloaded.

$ pip install numpy
$ pip install scikit-learn

Documentation

We can find the documentation of the project in this link: Documentation

Usage

Datasets

from miml.data.load_datasets import load_dataset

dataset_train = load_dataset("miml_birds_random_80train.arff", from_library=True)
dataset_test = load_dataset("C:/Users/Damián/Desktop/miml_birds_random_20test.arff")

Classifier

from miml.classifier import MIMLtoMIBRClassifier, AllPositiveAPRClassifier

classifier_mi = MIMLtoMIBRClassifier(AllPositiveAPRClassifier())
classifier_mi.fit(dataset_train)
results_mi=classifier_mi.evaluate(dataset_test)
probs_mi = classifier_mi.predict_proba(dataset_test)

Report

from miml.report import Report

report = Report(results_mi, probs_mi, dataset_test)
report.to_string()
print("")
report.to_csv()

License

MIML library is released under the GNU General Public License GPLv3.

Project details


Release history Release notifications | RSS feed

Download files

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

Source Distribution

mimllearning-1.0.11.tar.gz (2.9 MB view details)

Uploaded Source

Built Distribution

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

mimllearning-1.0.11-py3-none-any.whl (966.1 kB view details)

Uploaded Python 3

File details

Details for the file mimllearning-1.0.11.tar.gz.

File metadata

  • Download URL: mimllearning-1.0.11.tar.gz
  • Upload date:
  • Size: 2.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for mimllearning-1.0.11.tar.gz
Algorithm Hash digest
SHA256 36be49ecf7682e5ad8e535f593ffdf9eb4f186efb7e59c16dad38add27ab07be
MD5 aae2a67cf2f2a37659d83b0f4259a8cf
BLAKE2b-256 9539663a9a31ad0fe0e94f91975ea65a862348b09646d017ddf5b498b7f8a366

See more details on using hashes here.

File details

Details for the file mimllearning-1.0.11-py3-none-any.whl.

File metadata

  • Download URL: mimllearning-1.0.11-py3-none-any.whl
  • Upload date:
  • Size: 966.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for mimllearning-1.0.11-py3-none-any.whl
Algorithm Hash digest
SHA256 943b0953be17e6617f99f11ac003745a181df099f310cea758c838f35c113975
MD5 20f1af0363c3590c4bcb1b509110e7d0
BLAKE2b-256 4cc2d64974681abab359ccb6439af2b7b940ce8bee507e98466e6ac962643fe9

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