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.
Release files for mimllearning 1.0.11
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| mimllearning-1.0.11.tar.gz | 2.9 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| mimllearning-1.0.11-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 3.9 MB
Release files / mimllearning-1.0.11.tar.gz
| Download URL | mimllearning-1.0.11.tar.gz |
|---|---|
| Size | 2.9 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
36be49ecf7682e5ad8e535f593ffdf9eb4f186efb7e59c16dad38add27ab07be
|
|
BLAKE2b-256 checksum How to use checksums |
9539663a9a31ad0fe0e94f91975ea65a862348b09646d017ddf5b498b7f8a366
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.11
|
Release files / mimllearning-1.0.11-py3-none-any.whl
| Download URL | mimllearning-1.0.11-py3-none-any.whl |
|---|---|
| Size | 966.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
943b0953be17e6617f99f11ac003745a181df099f310cea758c838f35c113975
|
|
BLAKE2b-256 checksum How to use checksums |
4cc2d64974681abab359ccb6439af2b7b940ce8bee507e98466e6ac962643fe9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.11
|