meld.system.scalers.PlateauNonLinearScaler

class meld.system.scalers.PlateauNonLinearScaler(alpha_min, alpha_one, alpha_two, alpha_max, factor, strength_at_alpha_min=1.0, strength_at_alpha_max=0.001)[source]

Bases: RestraintScaler

Nonlinear scaler with a plateau shape

This scaler linearly interpolates between 0 and 1 from alpha_min to alpha_one, keeps the value of 1 until alpha_two and then decreases linearly until 0 in alpha_max.

__init__(alpha_min, alpha_one, alpha_two, alpha_max, factor, strength_at_alpha_min=1.0, strength_at_alpha_max=0.001)[source]

Initialize a PlateauNonlinearScaler

Parameters
  • alpha_min (float) – minimum alpha value

  • alpha_one (float) – lower range of plateau

  • alpha_two (float) – upper range of plateau

  • alpha_max (float) – maximum alpha value

  • factor (float) – controls the non-linear shape, must be >= 0

  • strength_at_alpha_min (float) – strength when alpha <= alpha_min

  • strength_at_alpha_max (float) – strength when alpha >= alpha_max

Methods

__init__(alpha_min, alpha_one, alpha_two, ...)

Initialize a PlateauNonlinearScaler