Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
how many trees and datasets are used to optimize random forest?
IqbalMalikAlfaruq
I'm making predictions that produce fast, medium, and slow predictions. I used 100 trees and around 1000 data training. but always returns fast prediction.
Find more posts tagged with
AI Studio
Random Forest
Accepted answers
BalazsBaranyRM
Hi!
Do I understand correctly that you're doing classification and your classes are
fast
,
medium
and
slow
?
Sometimes datasets are not suitable for a particular machine learning algorithm, or its default parameters. Sometimes they are imbalanced and then the "best" approach for a machine learning algorithm is to predict the majority class.
Take a look at your data. Is
fast
overrepresented by a large margin? If it is, can you downsample the class?
Do decision trees, naive bayes, k-NN give you the same result or are they better able to cope with the data?
There are videos in the RapidMiner Academy for topics like sampling and validation that could help you.
Regards,
Balázs
All comments
BalazsBaranyRM
Hi!
Do I understand correctly that you're doing classification and your classes are
fast
,
medium
and
slow
?
Sometimes datasets are not suitable for a particular machine learning algorithm, or its default parameters. Sometimes they are imbalanced and then the "best" approach for a machine learning algorithm is to predict the majority class.
Take a look at your data. Is
fast
overrepresented by a large margin? If it is, can you downsample the class?
Do decision trees, naive bayes, k-NN give you the same result or are they better able to cope with the data?
There are videos in the RapidMiner Academy for topics like sampling and validation that could help you.
Regards,
Balázs
IqbalMalikAlfaruq
i mean yes, there is 1000 data of
fast
, 60 data of
medium,
and 10 data of
slow.
how can i downsample it?
i have tried with those and still give the same result
BalazsBaranyRM
Hi,
the videos here explain how you sample or weight examples for a more balanced dataset:
https://academy.rapidminer.com/catalog?query=balance
Your data are massively imbalanced. You could also try other approaches like putting together medium+slow into one class (and then possibly a second model for deciding between those), attribute generation (finding some connections between variables that the models don't find, something like
area = length * width
) and so on.
Regards,
Balázs
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups