Skip to content

Commit

Permalink
Spelling error
Browse files Browse the repository at this point in the history
  • Loading branch information
josephward committed Apr 16, 2024
1 parent 9d633f3 commit 1bbe1db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rosplane_tuning/src/autotune/optimizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def get_next_parameter_set(self, error):

# Check if any of the new points are better
if np.min(error) > self.prev_error:
self.reason = "Current iteration worst than previous."
self.reason = "Current iteration worse than previous."
self.state = OptimizerState.TERMINATED
return self.x.reshape(1, 2)
self.prev_error = error.item(0)
Expand All @@ -126,4 +126,3 @@ def get_next_parameter_set(self, error):

else: # Process Terminated
return self.x.reshape(1, 2)

0 comments on commit 1bbe1db

Please sign in to comment.