Optimization.jl: Method error while using AutoReverseDiff

my_model(params) only takes in one argument. It’s saying you need a function of two arguments, my_model(params,_) since you don’t use the hyperparameters.

2 Likes