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 Model Not Visible"
Hello again,
I am trying to use a decision tree learner for a problem. If i run the stream with just the input file node and the decision tree learner, the resulting decision tree is shown fine. However when i run the following stream (essentially i perform cross-validation), i cannot see the resulting tree (and hence the resulting model). Here is the setup :
<operator name="Root" class="Process" expanded="yes">
<operator name="CSVExampleSource" class="CSVExampleSource">
<parameter key="filename" value="D:\MyDocumentsr\kvltrain.csv"/>
<parameter key="label_name" value="zkvl"/>
</operator>
<operator name="FeatureNameFilter" class="FeatureNameFilter">
<parameter key="skip_features_with_name" value="(Age|Profession)"/>
</operator>
<operator name="XValidation" class="XValidation" expanded="yes">
<operator name="DecisionTree" class="DecisionTree">
<parameter key="keep_example_set" value="true"/>
</operator>
<operator name="OperatorChain" class="OperatorChain" expanded="yes">
<operator name="ModelApplier" class="ModelApplier">
<list key="application_parameters">
</list>
</operator>
<operator name="ClassificationPerformance" class="ClassificationPerformance">
<parameter key="absolute_error" value="true"/>
<parameter key="accuracy" value="true"/>
<list key="class_weights">
</list>
<parameter key="classification_error" value="true"/>
<parameter key="normalized_absolute_error" value="true"/>
<parameter key="root_mean_squared_error" value="true"/>
<parameter key="root_relative_squared_error" value="true"/>
</operator>
</operator>
</operator>
<operator name="ProcessLog" class="ProcessLog">
<parameter key="filename" value="D:\Programs\Rapid-I\rm_workspace\logger.log"/>
<list key="log">
<parameter key="accuracy" value="operator.CSVExampleSource.value.null"/>
</list>
</operator>
<operator name="GnuplotWriter" class="GnuplotWriter">
<parameter key="additional_parameters" value="set grid"/>
<parameter key="name" value="ProcessLog"/>
<parameter key="output_file" value="D:\Programs\Rapid-I\rm_workspace\log.gnu"/>
<parameter key="values" value="accuracy"/>
<parameter key="x_axis" value="accuracy"/>
</operator>
</operator>
Any idea as to why this is happening?
Thanks,
Harry
I am trying to use a decision tree learner for a problem. If i run the stream with just the input file node and the decision tree learner, the resulting decision tree is shown fine. However when i run the following stream (essentially i perform cross-validation), i cannot see the resulting tree (and hence the resulting model). Here is the setup :
<operator name="Root" class="Process" expanded="yes">
<operator name="CSVExampleSource" class="CSVExampleSource">
<parameter key="filename" value="D:\MyDocumentsr\kvltrain.csv"/>
<parameter key="label_name" value="zkvl"/>
</operator>
<operator name="FeatureNameFilter" class="FeatureNameFilter">
<parameter key="skip_features_with_name" value="(Age|Profession)"/>
</operator>
<operator name="XValidation" class="XValidation" expanded="yes">
<operator name="DecisionTree" class="DecisionTree">
<parameter key="keep_example_set" value="true"/>
</operator>
<operator name="OperatorChain" class="OperatorChain" expanded="yes">
<operator name="ModelApplier" class="ModelApplier">
<list key="application_parameters">
</list>
</operator>
<operator name="ClassificationPerformance" class="ClassificationPerformance">
<parameter key="absolute_error" value="true"/>
<parameter key="accuracy" value="true"/>
<list key="class_weights">
</list>
<parameter key="classification_error" value="true"/>
<parameter key="normalized_absolute_error" value="true"/>
<parameter key="root_mean_squared_error" value="true"/>
<parameter key="root_relative_squared_error" value="true"/>
</operator>
</operator>
</operator>
<operator name="ProcessLog" class="ProcessLog">
<parameter key="filename" value="D:\Programs\Rapid-I\rm_workspace\logger.log"/>
<list key="log">
<parameter key="accuracy" value="operator.CSVExampleSource.value.null"/>
</list>
</operator>
<operator name="GnuplotWriter" class="GnuplotWriter">
<parameter key="additional_parameters" value="set grid"/>
<parameter key="name" value="ProcessLog"/>
<parameter key="output_file" value="D:\Programs\Rapid-I\rm_workspace\log.gnu"/>
<parameter key="values" value="accuracy"/>
<parameter key="x_axis" value="accuracy"/>
</operator>
</operator>
Any idea as to why this is happening?
Thanks,
Harry
Tagged:
0
Answers
Here is the setup :
<operator name="Root" class="Process" expanded="yes">
<operator name="CSVExampleSource" class="CSVExampleSource">
<parameter key="filename" value="D:\MyDocuments\kvltrain.csv"/>
<parameter key="label_name" value="zkvl"/>
</operator>
<operator name="FeatureNameFilter" class="FeatureNameFilter">
<parameter key="skip_features_with_name" value="(Age|Profession)"/>
</operator>
<operator name="XValidation" class="XValidation" expanded="yes">
<parameter key="number_of_validations" value="3"/>
<operator name="OperatorChain (2)" class="OperatorChain" expanded="yes">
<operator name="DecisionTree" class="DecisionTree">
<parameter key="keep_example_set" value="true"/>
</operator>
<operator name="ModelWriter" class="ModelWriter">
<parameter key="model_file" value="D:\Programs\Rapid-I\rm_workspace\model.mod"/>
</operator>
</operator>
<operator name="OperatorChain" class="OperatorChain" expanded="yes">
<operator name="ModelApplier" class="ModelApplier">
<list key="application_parameters">
</list>
</operator>
<operator name="ClassificationPerformance" class="ClassificationPerformance">
<parameter key="absolute_error" value="true"/>
<parameter key="accuracy" value="true"/>
<list key="class_weights">
</list>
<parameter key="classification_error" value="true"/>
<parameter key="normalized_absolute_error" value="true"/>
<parameter key="root_mean_squared_error" value="true"/>
<parameter key="root_relative_squared_error" value="true"/>
</operator>
</operator>
</operator>
<operator name="ProcessLog" class="ProcessLog">
<parameter key="filename" value="D:\Programs\Rapid-I\rm_workspace\logger.log"/>
<list key="log">
<parameter key="accuracy" value="operator.CSVExampleSource.value.null"/>
</list>
</operator>
<operator name="GnuplotWriter" class="GnuplotWriter">
<parameter key="additional_parameters" value="set grid"/>
<parameter key="name" value="ProcessLog"/>
<parameter key="output_file" value="D:\Programs\Rapid-I\rm_workspace\log.gnu"/>
<parameter key="values" value="accuracy"/>
<parameter key="x_axis" value="accuracy"/>
</operator>
<operator name="ModelLoader" class="ModelLoader">
<parameter key="model_file" value="D:\Programs\Rapid-I\rm_workspace\model.mod"/>
</operator>
</operator>
Regards,
Tobias
First, thanks for your reply. After some experimentation i found out about the learn_complete_model option, right after i sent my first reply in the spirit of "we share our knowledge with the community"
Your reply puts things in order....Thanks again!