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
write the loop label models outputs to different excel files
Dear All
I wonder how I can write the output Excel for the Loop Lable model on new Excel each time, when I use this model, whenever it tries to write an Excel, it overwrites the previous loop results. I want it to be written in a new Excel each time.
Best wishes.
Mansour
I wonder how I can write the output Excel for the Loop Lable model on new Excel each time, when I use this model, whenever it tries to write an Excel, it overwrites the previous loop results. I want it to be written in a new Excel each time.
Best wishes.
Mansour
0
Best Answer
-
MartinLiebig Administrator, Moderator, Employee-RapidMiner, RapidMiner Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,533 RM Data Scientistwhile your solution works perfectly, you can even make it slightly easier.There are a few "hidden macros", which are always available. The most useful one is maybe %{a}, which always gives you the execution count of the current operator.You can just use/path/to/file/%{a}.xlsxas a path in Write excel.This is the list of other macros which are always available:
- %{n} or %{operator_name} with the name of this operator
- %{c} with the class of this operator
- %{t} with the current system date and time
- %{a} or %{execution_count} with the number of times the operator was applied
- %{b} with the number of times the operator was applied plus one (a shortcut for %{p[1]})
- %{p[number]} with the number of times the operator was applied plus number
- %{v[OperatorName.ValueName]} with the value "ValueName" of the operator "OperatorName"
- %{process_name}: will be replaced by the name of the process (without path and extension)
- %{process_file}: will be replaced by the file name of the process (with extension)
- %{process_path}: will be replaced by the complete absolute path of the process file
- %{execution_count}: will be replaced by the number of times the current operator was applied.
- %{operator_name}: will be replaced by the name of the current operator.
- %{tempdir} gives you the directory of the tempdir on this machine
Best,Martin
- Sr. Director Data Solutions, Altair RapidMiner -
Dortmund, Germany2
Answers
Just checking if you have a desired naming convention for the Excel files you're producing?
What I would do here is use macros inside the loop and modify the write Excel to have that macro as a suffix. Here's a small example that you can point to your ExampleSet.
Best,
Roland