465b / nemf

A novel three step network-based general ecosystem modeling framework
BSD 3-Clause "New" or "Revised" License
3 stars 0 forks source link

Bug in parameter selection during the optimisation #24

Closed 465b closed 4 years ago

465b commented 4 years ago

Exception has occurred: ValueError The defined holling_type is not available. Use one of the following: ['0','I','II','III'] File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/modules/models.py", line 368, in sloppy_feeding raise ValueError("The defined holling_type is not available. " File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/modules/models.py", line 91, in interaction_model_generator globals()[item['fkt']](parameters) File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/modules/models.py", line 502, in to_ode ode_coeff = ode_coeff_model(self) File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/modules/models.py", line 570, in calc_prediction ode_states,ode_coeff_model, ode_coeff = self.to_ode() File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/modules/models.py", line 596, in calc_cost model_log, prediction, is_stable = self.calc_prediction() File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/modules/caller.py", line 183, in gradient_descent model_config.calc_cost(param_stack[ii],barrier_slope)[0:2+1] File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/modules/caller.py", line 314, in dn_monte_carlo gradient_descent(model_configuration, parameters, constraints, File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/modules/decorators.py", line 14, in wrapper result = func(*args,**kwargs) File "/home/ls/Documents/scr/phd/carbon_flux_baltic/code/examples.py", line 17, in output_dict = caller.dn_monte_carlo(path,