class Activation(ABC): def __init__(self): self.activated = None @abstractmethod def apply(self, x: np.ndarray) -> np.ndarray: pass @abstractmethod def derivative(self, x: np.ndarray) -> np.ndarray: pass
Last updated 1 day ago