public class KerasLoss extends KerasLayer
KerasLayer.DimOrderclassName, conf, dimOrder, dropout, inboundLayerNames, inputShape, kerasMajorVersion, layer, layerName, originalLayerConfig, outboundLayerNames, vertex, weightL1Regularization, weightL2Regularization, weights| Constructor and Description |
|---|
KerasLoss(String layerName,
String inboundLayerName,
String kerasLoss)
Constructor from layer name and input shape.
|
KerasLoss(String layerName,
String inboundLayerName,
String kerasLoss,
boolean enforceTrainingConfig)
Constructor from layer name and input shape.
|
| Modifier and Type | Method and Description |
|---|---|
FeedForwardLayer |
getLossLayer(InputType type)
Get DL4J LossLayer.
|
InputType |
getOutputType(InputType... inputType)
Get layer output type.
|
clearCustomLayers, clearLambdaLayers, copyWeightsToLayer, getClassName, getDimOrder, getInboundLayerNames, getInputPreprocessor, getInputShape, getKerasMajorVersion, getLayer, getLayerName, getNInFromConfig, getNumParams, getVertex, getWeights, isInputPreProcessor, isLayer, isValidInboundLayer, isVertex, registerCustomLayer, registerLambdaLayer, setInboundLayerNames, setLayer, setWeights, usesRegularizationpublic KerasLoss(String layerName, String inboundLayerName, String kerasLoss) throws UnsupportedKerasConfigurationException, InvalidKerasConfigurationException
layerName - layer nameinboundLayerName - name of inbound layerkerasLoss - name of Keras loss functionInvalidKerasConfigurationException - Invalid Keras configUnsupportedKerasConfigurationException - Unsupported Keras configpublic KerasLoss(String layerName, String inboundLayerName, String kerasLoss, boolean enforceTrainingConfig) throws UnsupportedKerasConfigurationException, InvalidKerasConfigurationException
layerName - layer nameinboundLayerName - name of inbound layerkerasLoss - name of Keras loss functionenforceTrainingConfig - whether to enforce training-related configuration optionsInvalidKerasConfigurationException - Invalid Keras configUnsupportedKerasConfigurationException - Unsupported Keras configpublic FeedForwardLayer getLossLayer(InputType type) throws UnsupportedKerasConfigurationException
UnsupportedKerasConfigurationExceptionpublic InputType getOutputType(InputType... inputType) throws InvalidKerasConfigurationException, UnsupportedKerasConfigurationException
getOutputType in class KerasLayerinputType - Array of InputTypesInvalidKerasConfigurationException - Invalid Keras configUnsupportedKerasConfigurationExceptionCopyright © 2021. All rights reserved.