hnn_core.optimization.Optimizer¶
- class hnn_core.optimization.Optimizer(initial_net, tstop, constraints, set_params, solver='bayesian', obj_fun='dipole_rmse', max_iter=200)[source]¶
Methods
fit
(**obj_fun_kwargs)Runs optimization routine.
plot_convergence
([ax, show])Convergence plot.
- fit(**obj_fun_kwargs)[source]¶
Runs optimization routine.
- Parameters:
- targetinstance of Dipole (if obj_fun=’dipole_rmse’)
A dipole object with experimental data.
- f_bandslist of tuples (if obj_fun=’maximize_psd’)
Lower and higher limit for each frequency band.
- relative_bandpowertuple (if obj_fun=’maximize_psd’)
Weight for each frequency band.
- scale_factorfloat, optional
The dipole scale factor.
- smooth_window_lenfloat, optional
The smooth window length.