DL4J中文文档/Keras模型导入/高级激活函数

2019-01-15  本文已影响0人  hello风一样的男子

Keras 高级激活函数


KerasThresholdedReLU

[源码]

从Keras导入ThresholdedReLU层

KerasThresholdedReLU

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

image.gif

来自解析的keras层配置字典的构造函数。

getOutputType

public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException 

image.gif

获取层输出类型

public KerasThresholdedReLU(Map<String, Object> layerConfig, boolean enforceTrainingConfig)
            throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
image.gif

来自解析的keras层配置字典的构造函数。

getActivationLayer

public ActivationLayer getActivationLayer() 

image.gif

获取 DL4J ActivationLayer.


KerasLeakyReLU

[源码]

从Keras导入LeakyReLU层

KerasLeakyReLU

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

image.gif

来自解析的keras层配置字典的构造函数。

getOutputType

public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException 

image.gif

获取层输出类型

public KerasLeakyReLU(Map<String, Object> layerConfig, boolean enforceTrainingConfig)
            throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
image.gif

来自解析的keras层配置字典的构造函数。

getActivationLayer

public ActivationLayer getActivationLayer() 

image.gif

获取 DL4J ActivationLayer.


KerasPReLU

[源码]

从Keras导入PReLU层

KerasPReLU

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

image.gif

来自解析的keras层配置字典的构造函数。

getOutputType

public InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException 

image.gif

获取层输出类型

  public KerasPReLU(Map<String, Object> layerConfig, boolean enforceTrainingConfig)
            throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
image.gif

来自解析的keras层配置字典的构造函数。

getPReLULayer

public PReLULayer getPReLULayer() 

image.gif

获取 DL4J ActivationLayer.

setWeights

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

image.gif

为层设置权重

上一篇 下一篇

猜你喜欢

热点阅读