public interface ActivationFunction
ActivationType
Modifier and Type | Method and Description |
---|---|
void |
apply(Tensor tensor,
int channel) |
void |
apply(Tensor tensor,
int from,
int to) |
static ActivationFunction |
create(ActivationType type)
Creates and returns specified type of activation function.
|
float |
getPrime(float y)
Returns the first derivative of activation function for specified output y
|
float |
getValue(float x)
Returns the value of activation function for specified input x
|
float getValue(float x)
x
- input for activationvoid apply(Tensor tensor, int channel)
void apply(Tensor tensor, int from, int to)
float getPrime(float y)
y
- output of activation functionstatic ActivationFunction create(ActivationType type)
type
- type of the activation functionCopyright © 2022. All rights reserved.