fixing the parameters is working
This commit is contained in:
parent
dcdd257ead
commit
c9daf65917
@ -363,16 +363,16 @@ class ActiveBOTopic(Node):
|
|||||||
|
|
||||||
else:
|
else:
|
||||||
x_next = self.BO.next_observation()
|
x_next = self.BO.next_observation()
|
||||||
self.get_logger().info(f'x_next: {x_next}')
|
# self.get_logger().info(f'x_next: {x_next}')
|
||||||
self.get_logger().info(f'overwrite: {self.overwrite_weight}')
|
# self.get_logger().info(f'overwrite: {self.overwrite_weight}')
|
||||||
self.get_logger().info(f'rl_weights: {self.rl_weights}')
|
# self.get_logger().info(f'rl_weights: {self.rl_weights}')
|
||||||
|
|
||||||
if self.overwrite:
|
if self.overwrite:
|
||||||
if self.overwrite_weight is not None and self.rl_weights is not None:
|
if self.overwrite_weight is not None and self.rl_weights is not None:
|
||||||
x_next[self.overwrite_weight] = self.rl_weights[self.overwrite_weight]
|
x_next[self.overwrite_weight] = self.rl_weights[self.overwrite_weight]
|
||||||
self.get_logger().info(f'x_next: {x_next}')
|
# self.get_logger().info(f'x_next: {x_next}')
|
||||||
self.get_logger().info(f'overwrite: {self.overwrite_weight}')
|
# self.get_logger().info(f'overwrite: {self.overwrite_weight}')
|
||||||
self.get_logger().info(f'rl_weights: {self.rl_weights}')
|
# self.get_logger().info(f'rl_weights: {self.rl_weights}')
|
||||||
# self.get_logger().info('Next Observation BO!')
|
# self.get_logger().info('Next Observation BO!')
|
||||||
self.BO.policy_model.weights = np.around(x_next, decimals=8)
|
self.BO.policy_model.weights = np.around(x_next, decimals=8)
|
||||||
if self.bo_fixed_seed:
|
if self.bo_fixed_seed:
|
||||||
|
Loading…
Reference in New Issue
Block a user