Should work now.
Hi Mariusz,
I was also wrong. The problem is the use of \[RightArrow] rather than ->. Nice catch!
\[RightArrow]
->
Hi N KF
Take a look at
index // Counts // ReverseSort
The value 259.2 appears twice. That is the problem, two different time values cannot have the same index value.
259.2
time
index
It looks like p wants a single number as input.
Thanks, but I have tried to take out the
Predict[trainData, Method→"NeuralNetwork"]
itself to run, then get the same result
Ah. My mistake, I misread where the error message was located.