Skip to main content

Practicing building a package!

Project description

Simulating building the MLCM package This simulation is to practice the procedure for building a package on PyPi.

MLCM creates a 2D Multi-Label Confusion Matrix

Please read the following paper for more information:
M. Heydarian, T. Doyle, and R. Samavi, MLCM: Multi-Label Confusion Matrix, IEEE Access, 2022

This work is licensed under a Creative Commons Attribution 4.0 License. For more information, see https://creativecommons.org/licenses/by/4.0/

An example on how to use MLCM package:

import numpy as np
from mlcm import mlcm

% Creating random input (multi-label data)

number_of_samples = 1000
number_of_classes = 5
label_true = np.random.randint(2, size=(number_of_samples, number_of_classes))
label_pred = np.random.randint(2, size=(number_of_samples, number_of_classes))

conf_mat,normal_conf_mat = mlcm.cm(label_true,label_pred)
print('\nRaw confusion Matrix:')
print(conf_mat)
print('\nNormalized confusion Matrix (%):')
print(normal_conf_mat)

one_vs_rest = mlcm.stats(conf_mat)

Project details


Download files

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

Source Distribution

mrh-0.0.2.tar.gz (8.0 kB view hashes)

Uploaded Source

Built Distribution

mrh-0.0.2-py3-none-any.whl (8.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page