Skip to content

Commit

Permalink
test: fix flux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sathvikbhagavan committed Feb 5, 2025
1 parent c5cae95 commit c04adbd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/SurrogatesFlux/test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ using SafeTestsets
x = sample(20, lb, ub, SobolSample())
y = f.(x)
my_model = Chain(Dense(2, 2))
my_opt = Descent(0.01)
surrogate = NeuralSurrogate(x, y, lb, ub, model = my_model, loss = Flux.mse,
opt = my_opt, n_epochs = 1)
surrogate([1.0, 2.0])
Expand Down

0 comments on commit c04adbd

Please sign in to comment.