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

Confusion Matrix #108

Closed
sanketsarang opened this issue Oct 10, 2021 · 7 comments
Closed

Confusion Matrix #108

sanketsarang opened this issue Oct 10, 2021 · 7 comments
Assignees
Labels
enhancement New feature or request Hacktoberfest For participants in Hacktoberfest

Comments

@sanketsarang
Copy link
Contributor

sanketsarang commented Oct 10, 2021

Add support to print a Confusion Matrix for Classification type of problems.

Example Use

model = bc.train("classification_data.csv", "target_column")
model.confusionMatrix()

The matrix should be displayed as a matplotlib chart.

Error Conditions

Calling the confusionMatrix() function for a Regression problem must throw an error stating Confusion matrix is available only for Classification problems

files to refer:

@sanketsarang sanketsarang added enhancement New feature or request Hacktoberfest For participants in Hacktoberfest labels Oct 10, 2021
@naresh1205
Copy link
Contributor

Hey, I am new to open source and would like to contribute to your project.

In the sample_use.py code does the bc.train(...) method return a modelClass?

Also, do you need the code for the confusion matrix as well? If yes, then the code has to be written in Model.py (model class) right?

@Thilakraj1998
Copy link
Contributor

Hey, I am new to open source and would like to contribute to your project.

In the sample_use.py code does the bc.train(...) method return a modelClass?

Also, do you need the code for the confusion matrix as well? If yes, then the code has to be written in Model.py (model class) right?

Yes bc.train() returns modelClass, and Model.py should have the function for confusion matrix

@sanketsarang
Copy link
Contributor Author

@naresh1205 you want to take up this task? We can assign it to you, and help you along the way to make a contribution.

@naresh1205
Copy link
Contributor

@sanketsarang yes I can take up this task. I'm not sure if I can test the code on my system so any tips on that?

Also, I have made a PR for this issue. Kindly, check that.

Thank you for this opportunity!

@aadityasinha-dotcom
Copy link
Contributor

Is this issue open? @sanketsarang

@Thilakraj1998
Copy link
Contributor

Is this issue open? @sanketsarang

Yes

@aadityasinha-dotcom
Copy link
Contributor

Is this issue open? @sanketsarang

Yes

Can I work on this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Hacktoberfest For participants in Hacktoberfest
Projects
None yet
Development

No branches or pull requests

4 participants