"Loops / Iterations"
I consider the loops/iterations one of the most interesting tool of RapidMiner.
I am trying to use ClusterLoop, but something strange happened while using it.
In this example (see code) a ClusterLoop is set on the cluster-attribute: districtName. The ClusterLoop node contains a simple Replace node, which should creates new attributes from nominal attributes with replaced substrings: the Replace node is set on the attribute: dataset [train, test].
After setting the Debug-mode on, I start the process and check the results:
- the loop cycle accordingly to the different clusters, which is great!
- the values test are transformed into TTTesTTT, as expected
- the values train are transformed into TTTesTTT too bug?
For that reason, I decided to save them using the nodes WritePerformance and WriteModel. In the path I need to use the Parameter Macros. It seems that they do not work (is ralated to this bug?http://bugs.rapid-i.com/show_bug.cgi?id=84#c0
I tried both the old version %{a} and the one proposed in the tutorial %{loop_value} , but they didnt work!
I am trying to use ClusterLoop, but something strange happened while using it.
In this example (see code) a ClusterLoop is set on the cluster-attribute: districtName. The ClusterLoop node contains a simple Replace node, which should creates new attributes from nominal attributes with replaced substrings: the Replace node is set on the attribute: dataset [train, test].
After setting the Debug-mode on, I start the process and check the results:
- the loop cycle accordingly to the different clusters, which is great!
- the values test are transformed into TTTesTTT, as expected
- the values train are transformed into TTTesTTT too bug?
In another process I work on each cluster applying a LinaerRegression. I want to see the results of the operation, but I am not able to show them in the Result page.
<操作符= " true " class = " select_attribute激活s" expanded="true" height="76" name="Select Attributes" width="90" x="179" y="165">
<参数键= "tribute_filter_type" value="subset"/>
<参数键= "tributes" value="Year|House_size_tot|House_size|Basement_size|House_ground|DistrictName|Price_2009|ID|dataset"/>
<参数键= "tribute_filter_type" value="single"/>
<参数键= "tribute" value="dataset"/>
For that reason, I decided to save them using the nodes WritePerformance and WriteModel. In the path I need to use the Parameter Macros. It seems that they do not work (is ralated to this bug?http://bugs.rapid-i.com/show_bug.cgi?id=84#c0
I tried both the old version %{a} and the one proposed in the tutorial %{loop_value} , but they didnt work!
<操作符= " true " class = " select_attribute激活s" expanded="true" height="76" name="Select Attributes" width="90" x="179" y="165">
<参数键= "tribute_filter_type" value="subset"/>
<参数键= "tributes" value="Year|House_size_tot|House_size|Basement_size|House_ground|DistrictName|Price_2009|ID|dataset"/>
<操作符= " true " class = " select_attribute激活s" expanded="true" height="76" name="Select Attributes (2)" width="90" x="313" y="30">
<参数键= "tribute_filter_type" value="subset"/>
<参数键= "tributes" value="Year|House_size_tot|House_size|Basement_size|House_ground|DistrictName|Price_2009|ID"/>
<操作符= " true " class = " select_attribute激活s" expanded="true" height="76" name="Select Attributes (3)" width="90" x="313" y="120">
<参数键= "tribute_filter_type" value="subset"/>
<参数键= "tributes" value="Year|House_size_tot|House_size|Basement_size|House_ground|DistrictName|Price_2009|ID"/>
<操作符= " true " class = " performance_reg激活ression" expanded="true" height="76" name="Performance" width="90" x="782" y="30">
Tagged:
0
Answers
could you try to reproduce this behavior on a generated example set? Then I simply could load your process and see what's going wrong.
Thank you in advance.
Greetings,
Sebastian
Here is the example code for the Replace problem:
Here is the example code for the save problem:
everything works fine for me, so every bug seems to be already fixed in the current version.
So your problems will be solved with the final version.
Greetings,
Sebastian