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
Extracting the current iteration of a X-Validation
Hello,
I am trying to extract the value of the current iteration of an X-Validation that is being executed to a macro.
I know that this is very simple using a log operator ,but I am having a hard time achieving this with a macro.
I was wondering if there is a predefined macro , like %{a} for example, for this or if anyone can think of another trick in order to achieve this.
Also, I have another question regarding X-Validation.
Trying to solve this problem I noticed that the number of executions of a X-Validation operator is one time more than its time of folders(if k=5 then it is executed 6 times). Does the last execution has to do with the training of the model with the whole example set that was delivered as input ?
I am trying to extract the value of the current iteration of an X-Validation that is being executed to a macro.
I know that this is very simple using a log operator ,but I am having a hard time achieving this with a macro.
I was wondering if there is a predefined macro , like %{a} for example, for this or if anyone can think of another trick in order to achieve this.
Also, I have another question regarding X-Validation.
Trying to solve this problem I noticed that the number of executions of a X-Validation operator is one time more than its time of folders(if k=5 then it is executed 6 times). Does the last execution has to do with the training of the model with the whole example set that was delivered as input ?
Tagged:
0
Answers
The first question is a bit more tricky. If you execute the X-Validation only once, you can use a Set Macro operator where you define %{a} as macro value.
Otherwise you have to initialize a macro to 0 just before the X-Validation (let's call it "i"), and use Generate Macro to redefine "i" as "i + 1".
Best regards,
Marius