tensorflow_probability/python/optimizer/nelder_mead.py
def _default_step_sizes(reference_vertex):
  """Chooses default step sizes according to [Gao and Han(2010)][3]."""
  # Step size to choose when the coordinate is zero.
  small_sizes = tf.ones_like(reference_vertex) * 0.00025
  # Step size to choose when the coordinate is non-zero.
  large_sizes = reference_vertex * 0.05
  return tf.where(tf.abs(reference_vertex) < _EPSILON,
                  small_sizes,
                  large_sizes)
def _default_step_sizes(reference_vertex):
  """Chooses default step sizes according to [Gao and Han(2010)][3]."""
  # Step size to choose when the coordinate is zero.
  small_sizes = tf.ones_like(reference_vertex) * 0.00025
  # Step size to choose when the coordinate is non-zero.
  large_sizes = reference_vertex * 0.05
  return tf.where(tf.abs(reference_vertex) < _EPSILON,
                  small_sizes,
                  large_sizes)
def _default_step_sizes ( reference_vertex ) : # Step size to choose when the coordinate is zero. small_sizes = tf . ones_like ( reference_vertex ) * 0.00025 # Step size to choose when the coordinate is non-zero. large_sizes = reference_vertex * 0.05 return tf . where ( tf . abs ( reference_vertex ) < _EPSILON , small_sizes , large_sizes )
Chooses default step sizes according to [Gao and Han(2010)][3].
Chooses default step sizes according to [ Gao and Han ( 2010 ) ] [ 3 ] .