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.10.tar.gz
(2.9 MB
view hashes)
Built Distribution
mimllearning-1.0.10-py3-none-any.whl
(966.1 kB
view hashes)
Close
Hashes for mimllearning-1.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d37f03f6f5e8f6039b60aec77b848e4a53f3d8195b5471bc07dd6dda3860fab |
|
MD5 | c596b0f7c5032d2f2268ea5e3fa11a5a |
|
BLAKE2b-256 | 69b70518e5346384dcd602cbb537c67cb2904dad692446f1c0232da70e4b4f89 |