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
"C parser for decision trees"
Legacy User
Member Posts: 0 Newbie
Hi,
I'm generating decision trees which are constructed from a CSV file. The content
of the file (examples for my training set) looks as follows:
a b c label
1 3 5 0
3 5 2 1
...
The decision tree represents a classification that is used to steer
a particular routine within a C++ program. The column notations (a,b,c)
are real variables within the routine. Up to now, I had to translate
the decision tree by hand into equivalent if-then-else C++ statements.
This is very tedious for larger trees. Moreover, I would like to use the
leave-one-one cross-validation for which I have to generate as many
decision trees as many examples I have. This cannot be done manually
in an acceptable amount of time.
Do you know a way how to automatically translate RapidMiner's decision
trees into C++ code like
if( a < 10 ) {
if( b > 20 )
return true;
else if( c < 100 )
return false;
}
Maybe there is a parser plug-in for that.
Thank you for your help.
Regards,
Tim
I'm generating decision trees which are constructed from a CSV file. The content
of the file (examples for my training set) looks as follows:
a b c label
1 3 5 0
3 5 2 1
...
The decision tree represents a classification that is used to steer
a particular routine within a C++ program. The column notations (a,b,c)
are real variables within the routine. Up to now, I had to translate
the decision tree by hand into equivalent if-then-else C++ statements.
This is very tedious for larger trees. Moreover, I would like to use the
leave-one-one cross-validation for which I have to generate as many
decision trees as many examples I have. This cannot be done manually
in an acceptable amount of time.
Do you know a way how to automatically translate RapidMiner's decision
trees into C++ code like
if( a < 10 ) {
if( b > 20 )
return true;
else if( c < 100 )
return false;
}
Maybe there is a parser plug-in for that.
Thank you for your help.
Regards,
Tim
Tagged:
0
Answers
I am sorry but I am not aware of any implementation of that. Maybe somebody else?
Cheers,
Ingo