"Getting the names of the attributes selected in Loop Attribute Subset"
I am using the Loop Attribute Subset and it nicely generates a collection of all combinations of the appropriate attributes.
But I would like to create an example set that says: combining A+B gives result X, combining A+C gives result Y etc. Is there a way to obtain, in the loop, a notion of what attributes are currently looked at?
Something like %{attributes} that gives me A;B. I could then add that as an attribute to my result set...
But I would like to create an example set that says: combining A+B gives result X, combining A+C gives result Y etc. Is there a way to obtain, in the loop, a notion of what attributes are currently looked at?
Something like %{attributes} that gives me A;B. I could then add that as an attribute to my result set...
Find more posts tagged with
Sort by:
1 - 4 of
41
Hi,
thanks for the greetings...
Cheers,
Ingo
Hi Ingo (yes, I learn quickly)

No, the reason for this is actually much simpler and lies in the way of implementation: the operators "Optimize Selection (...)" deliver only the feature names of the best individual so far since all those algorithms are based on populations (similar to evolutionary approaches). Delivering the feature names of all sets of the current population would be an option but in that case one would not know which performance belongs to which feature set. If you want to see this level of detail, the loop operator probably is the better option.
Using this logger in a Optimize Selection (Brute Force) does not give proper values for the feature_names value... Or so it seems. Only one shows up. Is that maybe because of the parallel execution?
Cheers,
Ingo
this is of course possible: You could use the operator "Log" for accessing the current iteration's used attributes, the attribute count, and a performance (if available). I have uploaded a sample process to myExperiment.org:
http://www.myexperiment.org/workflows/2211.html
You can easily download the process with our Community Extension from myExperiment (search in the forum for more information about the extension).
The result will be a table containing the attribute names, the attribute count, and I calculated a performance with an inner cross validation as well and stored it also in the table. Below is the result for "Golf":
Outlook, Temperature 2.0 0.7
Outlook, Temperature, Wind 3.0 0.7
Outlook 1.0 0.65
Temperature 1.0 0.65
Outlook, Humidity 2.0 0.65
Humidity, Wind 2.0 0.65
Temperature, Humidity, Wind 3.0 0.65
Wind 1.0 0.6
Outlook, Wind 2.0 0.6
Temperature, Humidity 2.0 0.6
Temperature, Wind 2.0 0.55
Outlook, Temperature, Humidity 3.0 0.55
Outlook, Temperature, Humidity, Wind 4.0 0.55
Humidity 1.0 0.45
Outlook, Humidity, Wind 3.0 0.35
Hope that helps,
Ingo