Keras Advanced Activations

Keras advanced activations


KerasThresholdedReLU

[source]

Imports ThresholdedReLU layer from Keras

KerasThresholdedReLU
public KerasThresholdedReLU(Map<String, Object> layerConfig)
            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
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
public ActivationLayer getActivationLayer() 

Get DL4J ActivationLayer.

  • return ActivationLayer

KerasLeakyReLU

[source]

Imports LeakyReLU layer from Keras

KerasLeakyReLU
public KerasLeakyReLU(Map<String, Object> layerConfig)
            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
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
public ActivationLayer getActivationLayer() 

Get DL4J ActivationLayer.

  • return ActivationLayer

KerasPReLU

[source]

Imports PReLU layer from Keras

KerasPReLU
public KerasPReLU(Map<String, Object> layerConfig)
            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
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
public PReLULayer getPReLULayer() 

Get DL4J ActivationLayer.

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

Set weights for layer.

  • param weights Dense layer weights

API Reference

API Reference

Detailed API docs for all libraries including DL4J, ND4J, DataVec, and Arbiter.

Examples

Examples

Explore sample projects and demos for DL4J, ND4J, and DataVec in multiple languages including Java and Kotlin.

Tutorials

Tutorials

Step-by-step tutorials for learning concepts in deep learning while using the DL4J API.

Guide

Guide

In-depth documentation on different scenarios including import, distributed training, early stopping, and GPU setup.

Deploying models? There's a tool for that.