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
Decision Tree - only one attribute per branch?
Hello, i hope everyone here is doing great!
I have a question regarding decision trees. Is it possible to set up the decision tree in a way, so that the model will use every attribute just once per branch? I need this for a project for my studies, and it would mean a lot if someone here can help me
.

Thanks in advance!
Tagged:
0
Answers
Dortmund, Germany
Hello,
Certainly! In a One Rule decision tree:
Select Best Attribute:
Create Rule:
Apply Rule:
Repeat for Each Attribute:
Choose Best Rule:
Tree Structure:
Example in Python (using scikit-learn):