Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
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 Certified Analyst, RapidMiner Certified Expert, University Professor Posts: 3,529 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