Some how the same Error, “return arrays must be of ArrayType” I don’t get where I’m getting it wrong.
This is my code
learning_rate = np.division(learning_rate0 , (1 + decay_rate * np.floor(epoch_num,time_interval)))
Where is my mistake, I can’t tell
The quantities you are dealing with there are all scalar values. Using numpy divide is overkill, since that is only needed if the operands are arrays. That is probably what is causing the issue.
Nope, I replaced it with normal division and It still gave the same output. I double checked the Numpy.Floor code though and I realized my mistake was there. My new code that worked is
learning_rate = (1 / (1 + decay_rate * np.floor((epoch_num/time_interval)))) * learning_rate0
How I dealt with numpy Floor was the issue.