Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Trying to produce a decision tree
tonyboy9
I have this error message: Input Titanic example set does not have a label attribute.
How do I go back to label the attribute in the example set?
Find more posts tagged with
AI Studio
Decision Tree
Accepted answers
lionelderkrikor
Hi
@tonyboy9
,
You can use a
Set Role
operator and set the feature "survived" as "label".
Regards,
Lionel
tonyboy9
Okay, Lionel, thanks for that. I will learn about Set Role, then try your suggestion. Tony
All comments
lionelderkrikor
Hi
@tonyboy9
,
You can use a
Set Role
operator and set the feature "survived" as "label".
Regards,
Lionel
tonyboy9
Okay, Lionel, thanks for that. I will learn about Set Role, then try your suggestion. Tony
tonyboy9
Okay, Lionel, I learned about Set Role, inserted it into the process and followed the rest of the tutorial. See the attachment 1.
I clicked on Run and to my surprise I got a decision tree. I checked "Apply pre-pruning" in the parameters. Isn't this how you make the tree easier to read?
My last question has to do with the tutorial which explains:
Goal: In this tutorial a predictive analytics process using a decision tree is shown. It is slightly advanced than the first tutorial. It also introduces basic but important concepts such as splitting the data set into two partitions. The larger half is used for training the decision tree model and the smaller half is used for testing it.
Our goal is to see how good the tree model would be able to predict the fate of passengers in the test data set.
Where do I go to find this?
Thank you for your time.
Tony
Decision tree 1.png
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups