ljvmiranda921 / pyswarms

A research toolkit for particle swarm optimization in Python
https://pyswarms.readthedocs.io/en/latest/
MIT License
1.29k stars 332 forks source link

TypeError: f() got an unexpected keyword argument 'print_step' #507

Open vappiah opened 1 year ago

vappiah commented 1 year ago

I am trying to reproduce the tutorial that was specified on yur readthedocs page:https://pyswarms.readthedocs.io/en/development/examples/feature_subset_selection.html I get an error when I get to this line cost, pos = optimizer.optimize(f, print_step=100, iters=1000, verbose=2)

Below is the error message TypeError: f() got an unexpected keyword argument 'print_step'

Please advice