Keras advanced activations


KerasPReLU

[source]

Imports PReLU layer from Keras

KerasPReLU
  1. public KerasPReLU(Map<String, Object> layerConfig)
  2. throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException

Constructor from parsed Keras layer configuration dictionary.

  • param layerConfig dictionary containing Keras layer configuration
  • throws InvalidKerasConfigurationException Invalid Keras config
  • throws UnsupportedKerasConfigurationException Unsupported Invalid Keras config
getOutputType
  1. public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException

Constructor from parsed Keras layer configuration dictionary.

  • param layerConfig dictionary containing Keras layer configuration
  • param enforceTrainingConfig whether to enforce training-related configuration options
  • throws InvalidKerasConfigurationException Invalid Keras config
  • throws UnsupportedKerasConfigurationException Invalid Keras config
getPReLULayer
  1. public PReLULayer getPReLULayer()

Get DL4J ActivationLayer.

  • return ActivationLayer
setWeights
  1. public void setWeights(Map<String, INDArray> weights) throws InvalidKerasConfigurationException

Set weights for layer.

  • param weights Dense layer weights

KerasThresholdedReLU

[source]

Imports ThresholdedReLU layer from Keras

KerasThresholdedReLU
  1. public KerasThresholdedReLU(Map<String, Object> layerConfig)
  2. throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException

Constructor from parsed Keras layer configuration dictionary.

  • param layerConfig dictionary containing Keras layer configuration
  • throws InvalidKerasConfigurationException Invalid Keras config
  • throws UnsupportedKerasConfigurationException Unsupported Invalid Keras config
getOutputType
  1. public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException

Constructor from parsed Keras layer configuration dictionary.

  • param layerConfig dictionary containing Keras layer configuration
  • param enforceTrainingConfig whether to enforce training-related configuration options
  • throws InvalidKerasConfigurationException Invalid Keras config
  • throws UnsupportedKerasConfigurationException Invalid Keras config
getActivationLayer
  1. public ActivationLayer getActivationLayer()

Get DL4J ActivationLayer.

  • return ActivationLayer

KerasLeakyReLU

[source]

Imports LeakyReLU layer from Keras

KerasLeakyReLU
  1. public KerasLeakyReLU(Map<String, Object> layerConfig)
  2. throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException

Constructor from parsed Keras layer configuration dictionary.

  • param layerConfig dictionary containing Keras layer configuration
  • throws InvalidKerasConfigurationException Invalid Keras config
  • throws UnsupportedKerasConfigurationException Unsupported Invalid Keras config
getOutputType
  1. public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException

Constructor from parsed Keras layer configuration dictionary.

  • param layerConfig dictionary containing Keras layer configuration
  • param enforceTrainingConfig whether to enforce training-related configuration options
  • throws InvalidKerasConfigurationException Invalid Keras config
  • throws UnsupportedKerasConfigurationException Invalid Keras config
getActivationLayer
  1. public ActivationLayer getActivationLayer()

Get DL4J ActivationLayer.

  • return ActivationLayer