Skip to content

Commit 243f848

Browse files
Update lib/OptimizationOptimisers/src/OptimizationOptimisers.jl
Co-authored-by: Vaibhav Kumar Dixit <[email protected]>
1 parent 28302c8 commit 243f848

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OptimizationOptimisers/src/OptimizationOptimisers.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ function SciMLBase.__solve(cache::OptimizationCache{
6060
if cache.solver_args.maxiters == cache.solver_args.epochs * length(data)
6161
cache.solver_args.epochs, cache.solver_args.maxiters
6262
else
63-
throw(ArgumentError("The number of iterations must be specified with either the epochs or maxiters kwarg. Where maxiters = epochs * length(data)."))
63+
throw(ArgumentError("Both maxiters and epochs were passed but maxiters != epochs * length(data)."))
6464
end
6565
elseif isnothing(cache.solver_args.maxiters)
6666
cache.solver_args.epochs, cache.solver_args.epochs * length(data)

0 commit comments

Comments
 (0)