Skip to content

Commit

Permalink
pybop-team#223 rename example
Browse files Browse the repository at this point in the history
  • Loading branch information
brosaplanella committed Mar 25, 2024
1 parent 659c98e commit d98349a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
)

# Generate data
sigma = 0.001
sigma = 0.005
t_eval = np.arange(0, 150, 2)
values = model.predict(t_eval=t_eval)
corrupt_values = values["Voltage [V]"].data + np.random.normal(0, sigma, len(t_eval))
Expand Down Expand Up @@ -63,7 +63,7 @@
cost = pybop.RootMeanSquaredError(problem)

# Build the optimisation problem
optim = pybop.Optimisation(cost=cost, optimiser=pybop.SciPyMinimize)
optim = pybop.Optimisation(cost=cost, optimiser=pybop.PSO, verbose=True)

# Run the optimisation problem
x, final_cost = optim.run()
Expand Down

0 comments on commit d98349a

Please sign in to comment.