You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(maxiters == epochs *length(data))) "The number of iterations must be specified with either the epochs or maxiters kwarg. Where maxiters = epochs * length(data)."
@test_throwsArgumentError("The number of iterations must be specified with either the epochs or maxiters kwarg. Where maxiters = epochs * length(data).") solve(
41
+
prob, Optimisers.Adam())
42
+
@test_throwsArgumentError("Both maxiters and epochs were passed but maxiters != epochs * length(data).") solve(
43
+
prob, Optimisers.Adam(), epochs =2, maxiters =2)
44
+
sol =solve(prob, Optimisers.Adam(), epochs =2)
45
+
@test sol.stats.iterations ==4
46
+
sol =solve(prob, Optimisers.Adam(), maxiters =2)
47
+
@test sol.stats.iterations ==2
48
+
sol =solve(prob, Optimisers.Adam(), epochs =2, maxiters =4)
49
+
@test sol.stats.iterations ==4
50
+
@test_throwsAssertionError("The number of iterations must be specified with either the epochs or maxiters kwarg. Where maxiters = epochs * length(data).") solve(
0 commit comments