RapidMiner

Contributor I happy_neid
Contributor I

Classification model problem

Hello everyone.
I made a classification model using the decison tree. But when i apply it, it gives me the same prediction with the same confidence level, for every example, like in this picture i posted. Can anyone tell which mistake could cause thisto happen? Thank you. why.JPG

11 REPLIES
RM Staff
RM Staff

Re: Classification model problem

Hi,

 

can you have alook at your tree? Could it be that it simply does not split? What happens if you deactivate pruning and prepruning in the tree?

 

~Martin

--------------------------------------------------------------------------
Head of Data Science Services at RapidMiner
RM Certified Expert
RM Certified Expert

Re: Classification model problem

I can't tell from your snapshot but does your label column contain all missing values?

Contributor I happy_neid
Contributor I

Re: Classification model problem

Thank you for your answer. There are no missing values.

Contributor I happy_neid
Contributor I

Re: Classification model problem

Thank you for your answer. I will try that.

Here you can see how my process looks like, and decesion tree as well. I'm trying to do text mining but i am a beginer, so i don't know  too much about it.
First i tried to run a process without connecting wordlist from the first Process Docs from Data operator to the second one, and then i've got an error message that says- atributes dont match. And then i connected those two, so now i have a problem that made me come hereProcess without connectionProcess without connectionProcess with connectionProcess with connectiontree descriptiontree descriptionTree graphTree graph

RM Certified Expert
RM Certified Expert

Re: Classification model problem

According to what you show, your Decision Tree doesn't split. Wrap that DT into a Cross Validation operator and measure hte performance. My guess is that it'll classify the majority of your "0" class incorrectly. 

Contributor I happy_neid
Contributor I

Re: Classification model problem

That's true. But can you tell me why does that happen, is there a way to fix it?
Thank you very much.


RM Staff
RM Staff

Re: Classification model problem

Hi,

 

just google for decision tree and pruning. Your tree got simply too much pruned. Most likely you need to reduce the min_gain to 0.001.

 

~Martin

--------------------------------------------------------------------------
Head of Data Science Services at RapidMiner
Contributor I happy_neid
Contributor I

Re: Classification model problem

Thank you very much!  Smiley Happy

Regards,
Nada

Contributor I happy_neid
Contributor I

Re: Classification model problem

Hi, me again.

I tried to set min. gain to 0.01, it still won't split. Also i tried to turn off pruning and prepruning, but it still won't work. I have no idea what can do about that?

Regards,
Nada

Polls
How can RapidMiner increase participation in our new competitions?
Twitter Feed