Java Code Examples for org.nd4j.linalg.activations.Activation#getActivationFunction()
The following examples show how to use
org.nd4j.linalg.activations.Activation#getActivationFunction() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: LossFunctionWrapper.java From deeplearning4j with Apache License 2.0 | 4 votes |
public LossFunctionWrapper(Activation activation, ILossFunction lossFunction) { this(activation.getActivationFunction(), lossFunction); }
Example 2
Source File: BernoulliReconstructionDistribution.java From deeplearning4j with Apache License 2.0 | 4 votes |
/** * @param activationFn Activation function. Sigmoid generally; must be bounded in range 0 to 1 */ public BernoulliReconstructionDistribution(Activation activationFn) { this(activationFn.getActivationFunction()); }
Example 3
Source File: GaussianReconstructionDistribution.java From deeplearning4j with Apache License 2.0 | 4 votes |
/** * @param activationFn Activation function for the reconstruction distribution. Typically identity or tanh. */ public GaussianReconstructionDistribution(Activation activationFn) { this(activationFn.getActivationFunction()); }
Example 4
Source File: ExponentialReconstructionDistribution.java From deeplearning4j with Apache License 2.0 | 4 votes |
public ExponentialReconstructionDistribution(Activation activation) { this(activation.getActivationFunction()); }
Example 5
Source File: ActivationParameterSpaceAdapter.java From deeplearning4j with Apache License 2.0 | 4 votes |
@Override public IActivation convertValue(Activation from) { return from.getActivationFunction(); }
Example 6
Source File: KerasActivationUtils.java From deeplearning4j with Apache License 2.0 | 2 votes |
/** * Map Keras to DL4J activation functions. * * @param kerasActivation String containing Keras activation function name * @return DL4J activation function */ public static IActivation mapToIActivation(String kerasActivation, KerasLayerConfiguration conf) throws UnsupportedKerasConfigurationException { Activation activation = mapToActivation(kerasActivation, conf); return activation.getActivationFunction(); }