I am working on a project that will update the user about warning based on the previous input trend (Prediction). I am trying to use Supervised learning. As of now I do not have the warning rate for the sample input, but a manually defined Warning rate. I need to generate a target output to feed my learning algorithm.
My approach
I will take the mean of previous 40 input data and add some constant value to the calculated mean and use it as the warning value for the next 40 input values. So there wouldn't be any warning in the first 40 values.
Question
How do I store the mean of previous 40 input values as the Java snippet takes each row at a time during execution? What is the way I can achieve this task?
P.S : No code required, Using KNIME
You can use chunk loop to loop in 40 rows and a math formula node can help you to achieve your need