DL4J中文文档/Keras模型导入/噪声层

KerasGaussianDropout

[源码]

带GaussianDropout的DL4J dropout层的Keras包装器。

KerasGaussianDropout

public KerasGaussianDropout(Integer kerasVersion) throws UnsupportedKerasConfigurationException 

image.gif

从KerasLayer传递构造函数

  • 参数 kerasVersion Keras主版本
  • 抛出 UnsupportedKerasConfigurationException 不支持的 Keras 配置

getOutputType

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

image.gif

获取层输出类型

  • 参数 inputType 输入类型数组
  • 返回 按输入类型返回输出类型
  • 抛出 InvalidKerasConfigurationException 无效的 Keras 配置
 public KerasGaussianDropout(Map<String, Object> layerConfig)
            throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
image.gif

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

  • 参数 layerConfig 包含keras层配置的字典
  • 抛出 InvalidKerasConfigurationException 无效的 Keras 配置
  • 抛出 UnsupportedKerasConfigurationException 不支持的无效的 Keras 配置

getGaussianDropoutLayer

public DropoutLayer getGaussianDropoutLayer() 

image.gif

获取 带GaussianDropout的DL4J 的 dropout层

  • 返回 DropoutLayer

KerasAlphaDropout

[源码]

带AlphaDropout的DL4J 的 dropout层 的Keras包装器

KerasAlphaDropout

public KerasAlphaDropout(Integer kerasVersion) throws UnsupportedKerasConfigurationException 

image.gif

从KerasLayer传递构造函数

  • 参数 kerasVersion Keras主版本
  • 抛出 UnsupportedKerasConfigurationException 不支持的 Keras 配置

getOutputType

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

image.gif

获取层输出类型

  • 参数 inputType 输入类型数组
  • 返回 按输入类型返回输出类型
  • 抛出 InvalidKerasConfigurationException 无效的 Keras 配置
  public KerasAlphaDropout(Map<String, Object> layerConfig)
            throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
image.gif

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

  • 参数 layerConfig 包含keras层配置的字典
  • 抛出 InvalidKerasConfigurationException 无效的 Keras 配置
  • 抛出 UnsupportedKerasConfigurationException 不支持的无效的 Keras 配置

getAlphaDropoutLayer

public DropoutLayer getAlphaDropoutLayer() 

image.gif

获取带AlphaDropout的DL4J 的 dropout层

  • 返回 DropoutLayer

KerasGaussianNoise

[源码]

带GaussianNoise的DL4J 的 dropout层 的Keras包装器

KerasGaussianNoise

public KerasGaussianNoise(Integer kerasVersion) throws UnsupportedKerasConfigurationException 

image.gif

从KerasLayer传递构造函数

  • 参数 kerasVersion Keras主版本
  • 抛出 UnsupportedKerasConfigurationException 不支持的 Keras 配置

getOutputType

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

image.gif

获取层输出类型

  • 参数 inputType 输入类型数组
  • 返回 按输入类型返回输出类型
  • 抛出 InvalidKerasConfigurationException 无效的 Keras 配置
  public KerasGaussianNoise(Map<String, Object> layerConfig)
            throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
image.gif

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

  • 参数 layerConfig 包含keras层配置的字典
  • 抛出 InvalidKerasConfigurationException 无效的 Keras 配置
  • 抛出 UnsupportedKerasConfigurationException 不支持的无效的 Keras 配置

getGaussianNoiseLayer

public DropoutLayer getGaussianNoiseLayer() 

image.gif

获取 带GaussianNoise的DL4J 的dropout层

  • 返回 DropoutLayer
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容