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
"Accessing parameter values by macros"
I want to write some parameter values into the filename string of my output file, e.g. when iterating over the number of clusters in k-Means I want the output files "output_2.arff", "output_3.arff", etc.
Setting the filename to "output_%{operator.KMeans.parameter.k}.arff" does not work.
I found a workaround here: http://rapid-i.com/rapidforum/index.php/topic,801.0.html
A process log is used to read current parameter values, is then converted to an example set and by data macro definition a macro holding the appropriate value is defined.
Isn't there a simpler way to access current parameter values via macros?
Setting the filename to "output_%{operator.KMeans.parameter.k}.arff" does not work.
I found a workaround here: http://rapid-i.com/rapidforum/index.php/topic,801.0.html
A process log is used to read current parameter values, is then converted to an example set and by data macro definition a macro holding the appropriate value is defined.
Isn't there a simpler way to access current parameter values via macros?
0
Answers
yes there is simpler solution to that: Insert a SingleMacroDefinition and define your macro there. Then use the ParameterCloner to copy the parameterValue you want in your macro into the value parameter of the SingleMacroDefinition operator. Et voila!
Greetings,
 Sebastian