Open noscode opened 6 months ago
Sometimes gadma.optimize_ga is using the following way:
gadma.optimize_ga
popt = gadma.Inference.optimize_ga( data, func_ex, engine='dadi', args=pts, p_ids = p_ids, X_init= [p0], lower_bound=lower_bound, upper_bound=upper_bound, verbose=1)
In that case there is an error: UserWarning: Error occurred during caching: evaluate() takes 3 positional arguments but 5 were given.
UserWarning: Error occurred during caching: evaluate() takes 3 positional arguments but 5 were given.
The correct way of usage is: args=(pts,),. It would be great to add an extra check when args are misspecified.
args=(pts,),
Sometimes
gadma.optimize_ga
is using the following way:In that case there is an error:
UserWarning: Error occurred during caching: evaluate() takes 3 positional arguments but 5 were given.
The correct way of usage is:
args=(pts,),
. It would be great to add an extra check when args are misspecified.