mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-29 06:10:29 +08:00
13 lines
348 B
Python
13 lines
348 B
Python
|
|
|
|
class Cooling(object):
|
|
"""Simple Beta Schedule"""
|
|
|
|
beta0 = None #: The initial beta value, set to none means that it will be approximated in the first iteration.
|
|
beta_coolingFactor = 2.
|
|
|
|
def getBeta(self):
|
|
if self._beta is None:
|
|
return self.beta0
|
|
return self._beta / self.beta_coolingFactor
|