File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ LinearAlgebra = "1.10"
3030Logging  = " 1.10" 
3131LoggingExtras  = " 0.4, 1" 
3232MLUtils  = " 0.4.4" 
33- OptimizationBase  = " 2.0.2 " 
33+ OptimizationBase  = " 2.0.3 " 
3434Printf  = " 1.10" 
3535ProgressLogging  = " 0.1" 
3636Reexport  = " 1.2" 
Original file line number Diff line number Diff line change 1- using  Optimization. LinearAlgebra
1+ using  Optimization. LinearAlgebra, MLUtils 
22
33struct  Sophia
44    η:: Float64 
@@ -80,14 +80,14 @@ function SciMLBase.__solve(cache::OptimizationCache{
8080    for  _ in  1 : maxiters
8181        for  (i, d) in  enumerate (data)
8282            if  cache. f. fg != =  nothing  &&  dataiterate
83-                 x =  cache. f. fg (G , θ, d)
83+                 x =  cache. f. fg (gₜ , θ, d)
8484            elseif  dataiterate
85-                 cache. f. grad (G , θ, d)
85+                 cache. f. grad (gₜ , θ, d)
8686                x =  cache. f (θ, d)
8787            elseif  cache. f. fg != =  nothing 
88-                 x =  cache. f. fg (G , θ)
88+                 x =  cache. f. fg (gₜ , θ)
8989            else 
90-                 cache. f. grad (G , θ)
90+                 cache. f. grad (gₜ , θ)
9191                x =  cache. f (θ)
9292            end 
9393            opt_state =  Optimization. OptimizationState (; iter =  i,
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments