I am currently struggling with nested looping in knime. I am attempting to loop through a folder of files through a file reader, then use each input from this first loop to train a decision tree, then generate predictions for every file in that same list. I am only interested in saving the output of the prediction engine, not of the learner itself.
The problem I run into is that when I try to create a second loop within the first, I run into the error displayed below.
It looks to me that KNIME cannot tell which Loop End node refers to which Loop Start node. Try connecting the Flow Variable output port of Node 2 to the Flow Variable input port of your Node 1222. It might (or might not) solve the issue.
you may want to try wrapping the circled nodes into a sub-node, making sure to pass the first loop's loop variable into it. That should clarify which Loop End is to be associated with which Loop Start.
You will be my best help. I have a problem with a loop. I must to do 50 time series models. I am using a MLP Learner with an optimization loop. At the start a put a row filter to just let it go the first data to the first model and everything going on rails, but when I put the optimization loop and I changed row filter node to allow all data from different models, an error appeared saying that maybe loops/scopes not properly nested.
I deleted optimization loop and I changed for a Interval Loop, but the problem did not disappear.
I tried to do the things you told me. At first I cleaned a little the workspace. Then I create two Metanodes, but it was unsatisfactory.
The workspace read a base of products (SKU) by hand one by one. Then apply an optimization loop to reach the best model of time series with MLP. Once you have the best, you apply it to obtain R2 and RMSE to evaluate the model setting.
My idea is to create a loop to be capable of deliver to the flow one by one automatically those 5 prodcutos or SKU that are written in the table creator, but then the problem appears.
I enclosed the whole workflow, could you tell me if my idea can be solved??? And what do I have to change???