The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Optimize Parameter/Log for Decision Tree
Hello,
I'm trying to compare different algorithms and try to find the optimal parameters. For this, I use the optimize parameter operator. However, when I try to apply it to a Decision Tree classifier it doesn't work. Or at least, the log function doesn't work properly, but I also get the same accuracy for each setting.
But when I want to plot it in a log function it only shows one value for each parameter.
Does somebody know why this happens and how I can solve it?
Thanks
Prentice
I'm trying to compare different algorithms and try to find the optimal parameters. For this, I use the optimize parameter operator. However, when I try to apply it to a Decision Tree classifier it doesn't work. Or at least, the log function doesn't work properly, but I also get the same accuracy for each setting.
But when I want to plot it in a log function it only shows one value for each parameter.
Does somebody know why this happens and how I can solve it?
Thanks
Prentice
Tagged:
0
Best Answer
-
jczogalla Employee-RapidMiner, Member Posts: 144 RM EngineeringHi @Prentice!That sounds strange indeed. I will look into this to see if this is a potential bug.Edit:
I looked at your process and I think I see the culprit. In the Log operator, you reference the Decision Tree operator, not Decision Tree (2), which is used inside the cross validation, as well as it being referenced in the optimize parameters. Also, there should be a log called Optimize Parameters (Grid), which should already have the parameters and performance as a log. I hope this helps!CheersJan
5
Answers
Scott
Aah, so this means that my actual ExampleSet is also too small? I've got like 150 examples with 4 classes, that does explain it. It just goes each time to the same branch, hence having the same confidence.
But why does the Log operator not work when I try to use different settings for the Decision Tree? It shows the combinations in the Optimize Parameters results, but it shows the same combinations for each iteration for the results of Log. This only happens when I use the Decision Tree.
Prentice
Wow thanks, sometimes the most simplest of things get overlooked. I can't believe I spent hours trying find the cause and it's something like this haha.
Anyway, thanks for your help!
Prentice