Hi
On the text above you do not have indentation but that might just be copy and paste.
So it should be
def t(t,params)
a,b,c=params
return a*(t**2)+(b*t)+c
The rather meaningless message means there is a module called “t” and you are trying to raise it to a power. You probably think preds or targets are variables but thinks it is a module. Try using type() on the variables but I think you have a typing error somewhere which has confused Python.
Hi Conwyn,
Thanks for the guidance, I explored further using type() function and found that I was inadvertently trying to take square of time module, which is not allowed by python.
In the below function i did (preds-targets)**2 and then used preds as a function of time