1 2 3 4 5 6 7 8 9
class_name Activation static func sigmoid(value: float, _row: int, _col: int) -> float: return 1 / (1 + exp(-value)) static func dsigmoid(value: float, _row: int, _col: int) -> float: return value * (1 - value)