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.
Skip Iteration if Examples in Loop Subset <n
Hi,
I have a process in which uses a loop to cycle through several polynomial examples of an attribute. Inside I have a windowing operation and a time series forecast with neural net.
All ok with that. However some iterations are aborted due to an error that arises due to lack of enough examples for the windowing operation.
I tried to solve this with handle exception. It seemed to me to be the right thing to do try. But in the end I have a collection of subsets with the forecast and original subsets, which cannot be appended because they don't share same attributes (and I also don't want it).
I would like to have something like for example: ignore iteration if examples in subset are <10.
I guess that I shall use Branch... but honestly I'm not being able to do it and I would love to have your help on this. Is it possible to skip an iteration if condition is not met?
Enclosed a mock example of my data source and process.
Regards
I have a process in which uses a loop to cycle through several polynomial examples of an attribute. Inside I have a windowing operation and a time series forecast with neural net.
All ok with that. However some iterations are aborted due to an error that arises due to lack of enough examples for the windowing operation.
I tried to solve this with handle exception. It seemed to me to be the right thing to do try. But in the end I have a collection of subsets with the forecast and original subsets, which cannot be appended because they don't share same attributes (and I also don't want it).
I would like to have something like for example: ignore iteration if examples in subset are <10.
I guess that I shall use Branch... but honestly I'm not being able to do it and I would love to have your help on this. Is it possible to skip an iteration if condition is not met?
Enclosed a mock example of my data source and process.
Regards
0
Best Answer
-
Oprick Member Posts: 35 Contributor IIHi @Telcontar120,
I was able to do it with Branch indeed, but not using Extract Macro. I set min_examples and in the Else container I deployed no stream at all. This simple solution seems to work just fine to me.
Anyway I would like, if not asking too much, to see an example of your approach.
Enclosed my process (same original data source).The best,
Pedro1
Answers
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts