File size: 138 Bytes
1c8c60e
 
 
 
 
 
1
2
3
4
5
6
7
import numpy as np


def sigmoid_annealing(step: int, temperature: float) -> float:
    return 2 / (1 + np.exp(-step / temperature)) - 1