Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mimllearning

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mimllearning

MIML Learning Library

  • 1.0.11
  • PyPI
  • Socket score

Maintainers
1

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
  • Documentation
  • Usage
  • License

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc