{ } Raw JSON

bundles / scipy 1.17.1 / scipy / optimize / _basinhopping / AdaptiveStepsize

class

scipy.optimize._basinhopping:AdaptiveStepsize

source: /scipy/optimize/_basinhopping.py :197

Signature

class   AdaptiveStepsize ( takestep accept_rate = 0.5 interval = 50 factor = 0.9 verbose = True )

Members

Summary

Class to implement adaptive stepsize.

Extended Summary

This class wraps the step taking class and modifies the stepsize to ensure the true acceptance rate is as close as possible to the target.

Parameters

takestep : callable

The step taking routine. Must contain modifiable attribute takestep.stepsize

accept_rate : float, optional

The target step acceptance rate

interval : int, optional

Interval for how often to update the stepsize

factor : float, optional

The step size is multiplied or divided by this factor upon each update.

verbose : bool, optional

Print information about each update

Aliases

  • scipy.optimize._basinhopping.AdaptiveStepsize