def VaryRate(start, end, saturate_epochs, epoch):
 if (saturate_epochs <= 0):
  return start
 step = ((start - end) / (saturate_epochs - 1))
 if (epoch < saturate_epochs):
  return (start - (step * epoch))
 else:
  return end

def VaryRate ( start , end , saturate_epochs , epoch ) : if ( saturate_epochs <= 0 ) : return start step = ( ( start - end ) / ( saturate_epochs - 1 ) ) if ( epoch < saturate_epochs ) : return ( start - ( step * epoch ) ) else : return end
compute a linearly varying number .