File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 11use std:: cell:: RefCell ;
2+ use std:: rc:: Rc ;
23
34use impl_new_derive:: ImplNew ;
45use levenberg_marquardt:: { LeastSquaresProblem , LevenbergMarquardt } ;
@@ -150,7 +151,7 @@ pub struct HestonCalibrator {
150151 /// If true, record per-iteration calibration history.
151152 pub record_history : bool ,
152153 /// History of iterations (residuals, params, loss metrics).
153- calibration_history : RefCell < Vec < CalibrationHistory < HestonParams > > > ,
154+ calibration_history : Rc < RefCell < Vec < CalibrationHistory < HestonParams > > > > ,
154155}
155156
156157impl CalibrationLossExt for HestonCalibrator { }
@@ -602,5 +603,7 @@ mod tests {
602603 ) ;
603604
604605 calibrator. calibrate ( ) ;
606+ let history = calibrator. history ( ) ;
607+ println ! ( "{:?}" , history) ;
605608 }
606609}
You can’t perform that action at this time.
0 commit comments