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

getting all class prediction with probability score for classification model like random forest #3138

Closed
aminul-palash opened this issue Jan 24, 2022 · 2 comments

Comments

@aminul-palash
Copy link

aminul-palash commented Jan 24, 2022

Problem location

Hi, I need urgent help, please help me to solve this, I'm working on random forest implementation for the prediction dataset.
I'm following this tutorial.
https://www.mlpack.org/doc/stable/doxygen/sample_ml_app.html

Description of problem

for a single data sample inference, it gives one predicted class label. But I want to get the other class prediction for the same sample sort with probability score, like the Sklearn function model.predict_proba(). But I did not find any way to get the prediction. but failed to do that. could you please help me with this?

@rcurtin
Copy link
Member

rcurtin commented Jan 24, 2022

Hi, I need urgent help

What makes this request urgent? You realize that we are all volunteers, right? I would suggest not writing things like this in your issue reports---it doesn't exactly motivate me to help you more, especially since you could have solved this problem by looking through the documentation.

The random forest documentation shows methods to do exactly what you are trying to do here.

@aminul-palash
Copy link
Author

Hi, I need urgent help

What makes this request urgent? You realize that we are all volunteers, right? I would suggest not writing things like this in your issue reports---it doesn't exactly motivate me to help you more, especially since you could have solved this problem by looking through the documentation.

The random forest documentation shows methods to do exactly what you are trying to do here.

sure, thanks. I'll try!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants