RapidMiner

How to apply different neural network model inside loop attribute?

SOLVED
Highlighted
Contributor II binsetyawan
Contributor II

How to apply different neural network model inside loop attribute?

hello everyone, im working with neural network for forecasting

 

in my project, i got IO Object Collection that contain example sets from loop attributes.

Example Sets on IO Object CollectionExample Sets on IO Object Collection

Inside loop attributes, i put validation operators to forecast with neural network operator so each example set have their own prediction.sliding window validationsliding window validation

To get the best model for each example set, i used optimization (grid) operator and each example set got their own best model (different training cycle, learning rate and momentum).Result on Optimization Parameter Grid (on each example)Result on Optimization Parameter Grid (on each example)

When i got their own best model, how do i apply the result of optimization parameter to each example sets in my process? because if i put it on neural net operator, it only apply an model.inside validation operatorinside validation operator

 

 

 

24 REPLIES
RM Certified Expert
RM Certified Expert

Re: Is it possible to apply different neural network model inside loop?

Couldn't you store each model right after the validation and save it with a macro? like model_%{loop_attribute} ? This way you can store each iteration of the model and then use it to score your individual data sets later.

 

 

Contributor II binsetyawan
Contributor II

Re: Is it possible to apply different neural network model inside loop?

yeah, i've tried the macro to save the model, i put it adter validation operator, but the name of the model is always overwrite and i dont know what values should i fill on it. so its not possible to appy if they have different amount of nodes in hidden layer?

RM Certified Expert
RM Certified Expert

Re: Is it possible to apply different neural network model inside loop?

To prevent it from overwriting, you need to use a valid macro. I choose %{loop_attribute} because it's already defined by the Loop Attribiutes operator. Another option is to use %{t} which is the timestamp when it gets executed. 

Contributor II binsetyawan
Contributor II

Re: Is it possible to apply different neural network model inside loop?

 im sorry i still confusing with your explanation

RM Certified Expert
RM Certified Expert

Re: Is it possible to apply different neural network model inside loop?

You can save the model after each iteration provided that you append the model name with a macro like the timestamp. You would need to save it as "mymodel_%{t}" this way it doesn't overwrite it. 

Contributor II binsetyawan
Contributor II

Re: Is it possible to apply different neural network model inside loop?

instead of using macro, is it possible if i made a list of value parameter of ANN model for each example sets and apply it in my process and made each example sets recognize their model? i've tried write parameter operator but the problem is the values overwrite with the latest loop_attribute and if the problem resolved how to apply the result of write parameter operator on my process?

RM Certified Expert
RM Certified Expert

Re: Is it possible to apply different neural network model inside loop?

Have you thought of using the Recall and Remember operator? You might be able to load in the write parameters in a loop, Remember them for the one iteration and then load in the second one for hte second iteration. 

Contributor II binsetyawan
Contributor II

Re: Is it possible to apply different neural network model inside loop?

Sorry, I'm more confused
I'm going to edit my topic and add pictures to make it easy to understand and know where to add operator

Contributor II binsetyawan
Contributor II

Re: Is it possible to apply different neural network model inside loop?

and i didn't find any solution yet Smiley Sad im so confused