I'm trying to specify other output functions in a Neurolab Output script (defined below) that are more robust and lenient than the sample scripts (Gain at end of 5 bars). The intent is to help the Neural Network predict a directional tilt over next few days (vs predict the gain at end of 5 days), because the quality of Prediction results with the sample Output function is quite bad for in-sample and out-of-sample predictions.
The issue is the Train the Network screen is blank (no red line) - it doesn't generate a Mean Square Error.
-> How do i specify these output functions so that the Training works and i can generate Predictions?
1) // Average High and Average Low over next 5 bars
CODE:
Please log in to see this code.
2) // Highest High and Lowest Low over next 5 bars
CODE:
Please log in to see this code.
Also attached Input script below, which Trains and Predicts fine for the default Output function (Gain over 5 bars)
CODE:
Please log in to see this code.
CODE:
Please log in to see this code.
Size:
Color:
The graph is not blank. Your output script is producing an Infinity which can't be charted. Check out "Select Training Data" after you apply a training set: I'm sure the output is NaN or Infinity.
Size:
Color: