EthanJamesLew / AutoKoopman

AutoKoopman - automated Koopman operator methods for data-driven dynamical systems analysis and control.
GNU General Public License v3.0
53 stars 10 forks source link

Error when running bayesian optimizer for black-box model #33

Closed Abdu-Hekal closed 1 year ago

Abdu-Hekal commented 1 year ago

Error trace:

Tuning BayesianOptTuner: 0%| | 0/200 [00:00<?, ?it/s] Traceback (most recent call last): File "/Users/b6062805/Documents/Koopman/AutoKoopman/benchmarks/blackBox.py", line 106, in mse, perc_error = test_trajectories(true_trajectories, model, tspan) File "/Users/b6062805/Documents/Koopman/AutoKoopman/benchmarks/blackBox.py", line 43, in test_trajectories trajectory = model.solve_ivp( File "/Users/b6062805/Documents/Koopman/AutoKoopman/autokoopman/core/system.py", line 223, in solve_ivp states = np.zeros((len(times), len(self.names))) TypeError: object of type 'NoneType' has no len() Tuning BayesianOptTuner: 2%|▎ | 5/200 [00:00<00:36, 5.29it/s]

EthanJamesLew commented 1 year ago

See this comment. We should add an error handler in the benchmark scripts. Also, note that Robot benchmark has a state that is near zero always, causing the relative error to explode (divide by zero).

EthanJamesLew commented 1 year ago

Closing