Finished testing

This commit is contained in:
Niko Feith 2023-09-21 10:07:41 +02:00
parent 739bc5e160
commit c3219e5d82
2 changed files with 8 additions and 3 deletions

View File

@ -133,9 +133,9 @@ class BayesianOptimization:
self.Y[0] = reward
self.best_reward[0] = np.max(self.Y)
else:
self.X = np.vstack((self.X, np.around(x, decimals=8)), dtype=np.float64)
self.Y = np.vstack((self.Y, reward), dtype=np.float64)
self.best_reward = np.vstack((self.best_reward, np.max(self.Y)), dtype=np.float64)
self.X = np.vstack((self.X, np.around(x, decimals=8)))
self.Y = np.vstack((self.Y, reward))
self.best_reward = np.vstack((self.best_reward, np.max(self.Y)))
self.gp.fit(self.X, self.Y)
self.episode += 1

View File

@ -27,4 +27,9 @@ def generate_launch_description():
executable='iml_experiment',
name='iml_experiment'
),
Node(
package='franka_iml_experiment',
executable='check_experiment_pose',
name='check_experiment_pose'
),
])