Skip to content

Commit 51eaf46

Browse files
rem mlutils dep
1 parent 3ad81f7 commit 51eaf46

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

Project.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ LBFGSB = "5be7bae1-8223-5378-bac3-9e7378a2f6e6"
1111
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
1212
Logging = "56ddb016-857b-54e1-b83d-db4d58db5568"
1313
LoggingExtras = "e6f89c97-d47a-5376-807f-9c37f3926c36"
14-
MLUtils = "f1d291b0-491e-4a28-83b9-f70985020b54"
1514
OptimizationBase = "bca83a33-5cc9-4baa-983d-23429ab6bcbb"
1615
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
1716
ProgressLogging = "33c8b6b6-d38a-422a-b730-caa89a2f386c"
@@ -29,16 +28,11 @@ LBFGSB = "0.4.1"
2928
LinearAlgebra = "1.10"
3029
Logging = "1.10"
3130
LoggingExtras = "0.4, 1"
32-
MLUtils = "0.4.4"
3331
OptimizationBase = "2"
3432
Printf = "1.10"
3533
ProgressLogging = "0.1"
3634
Reexport = "1.2"
3735
SciMLBase = "2.39.0"
3836
SparseArrays = "1.10"
39-
Symbolics = "5.12"
4037
TerminalLoggers = "0.1"
4138
julia = "1.9"
42-
43-
[extras]
44-
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"

src/sophia.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
using Optimization.LinearAlgebra, MLUtils
2-
31
struct Sophia
42
η::Float64
53
βs::Tuple{Float64, Float64}
@@ -64,7 +62,7 @@ function SciMLBase.__solve(cache::OptimizationCache{
6462

6563
maxiters = Optimization._check_and_convert_maxiters(cache.solver_args.maxiters)
6664

67-
if cache.p isa MLUtils.DataLoader
65+
if OptimizationBase.isa_dataiterator(cache.p)
6866
data = cache.p
6967
dataiterate = true
7068
else

0 commit comments

Comments
 (0)