@@ -769,11 +769,11 @@ def run_ls_trf(self, n_steps=1000, ftol=1e-12, gtol=None, xtol=1e-12, verbose=No
769769 res = least_squares (merit_function , merit_function .get_x (), method = "trf" ,
770770 bounds = bounds .T , ftol = ftol , gtol = gtol , xtol = xtol ,
771771 jac = merit_function .get_jacobian , max_nfev = n_steps ,
772- verbose = verbose )
772+ verbose = ( verbose or 0 ) )
773773 merit_function .set_x (res .x )
774774 self .tag ('trf' )
775775
776- def run_ls_dogbox (self , n_steps = 1000 , ftol = 1e-12 , gtol = None , xtol = 1e-12 , verbose = 0 ):
776+ def run_ls_dogbox (self , n_steps = 1000 , ftol = 1e-12 , gtol = None , xtol = 1e-12 , verbose = None ):
777777 """
778778 Perform the least squares optimization using the Dogbox algorithm.
779779
@@ -796,7 +796,7 @@ def run_ls_dogbox(self, n_steps=1000, ftol=1e-12, gtol=None, xtol=1e-12, verbose
796796 res = least_squares (merit_function , merit_function .get_x (), method = "dogbox" ,
797797 bounds = bounds .T , ftol = ftol , gtol = gtol , xtol = xtol ,
798798 jac = merit_function .get_jacobian , max_nfev = n_steps ,
799- verbose = verbose )
799+ verbose = ( verbose or 0 ) )
800800 merit_function .set_x (res .x )
801801 self .tag ('dogbox' )
802802
0 commit comments