Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Muliti class support #165

Merged

Conversation

swapna-somineni
Copy link
Contributor

This PR has the following changes

Added new class MulticlassLabelDataset to support the multiple values in the favorable and unfavorable label's. To convert the multiple favorable and unfavorable values into binary labels, we are iterating through the labels values in the dataframe and check whether the label value is in the favorable list, if it is true then assign the favorable label value as 1 otherwise 0 for unfavourable values.

aif360/metrics/binary_label_dataset_metric.py Outdated Show resolved Hide resolved
aif360/metrics/classification_metric.py Outdated Show resolved Hide resolved
tests/test_classification_metric.py Show resolved Hide resolved
@hoffmansc hoffmansc merged commit 155b04a into Trusted-AI:master Apr 28, 2020
@swapna-somineni swapna-somineni deleted the Multiclasslabel's#support branch April 30, 2020 15:08
Illia-Kryvoviaz pushed a commit to Illia-Kryvoviaz/AIF360 that referenced this pull request Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants