| Modifier and Type | Method and Description |
|---|---|
ComputationGraph |
KerasModel.getComputationGraph()
Build a ComputationGraph from this Keras Model configuration and import weights.
|
ComputationGraph |
KerasModel.getComputationGraph(boolean importWeights)
Build a ComputationGraph from this Keras Model configuration and (optionally) import weights.
|
ComputationGraphConfiguration |
KerasModel.getComputationGraphConfiguration()
Configure a ComputationGraph from this Keras Model configuration.
|
MultiLayerConfiguration |
KerasSequentialModel.getMultiLayerConfiguration()
Configure a MultiLayerConfiguration from this Keras Sequential model configuration.
|
MultiLayerNetwork |
KerasSequentialModel.getMultiLayerNetwork()
Build a MultiLayerNetwork from this Keras Sequential model configuration.
|
MultiLayerNetwork |
KerasSequentialModel.getMultiLayerNetwork(boolean importWeights)
Build a MultiLayerNetwork from this Keras Sequential model configuration and import weights.
|
protected long |
KerasLayer.getNInFromConfig(Map<String,? extends KerasLayer> previousLayers)
Some DL4J layers need explicit specification of number of inputs, which Keras does infer.
|
InputType |
KerasLayer.getOutputType(InputType... inputType)
Get layer output type.
|
static ComputationGraph |
KerasModelImport.importKerasModelAndWeights(InputStream modelHdf5Stream)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
KerasModelImport.importKerasModelAndWeights(InputStream modelHdf5Stream,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
KerasModelImport.importKerasModelAndWeights(String modelHdf5Filename)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
KerasModelImport.importKerasModelAndWeights(String modelHdf5Filename,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
KerasModelImport.importKerasModelAndWeights(String modelHdf5Filename,
int[] inputShape,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model saved using model.save_model(...).
|
static ComputationGraph |
KerasModelImport.importKerasModelAndWeights(String modelJsonFilename,
String weightsHdf5Filename)
Load Keras (Functional API) Model for which the configuration and weights were
saved separately using calls to model.to_json() and model.save_weights(...).
|
static ComputationGraph |
KerasModelImport.importKerasModelAndWeights(String modelJsonFilename,
String weightsHdf5Filename,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model for which the configuration and weights were
saved separately using calls to model.to_json() and model.save_weights(...).
|
static ComputationGraphConfiguration |
KerasModelImport.importKerasModelConfiguration(String modelJsonFilename)
Load Keras (Functional API) Model for which the configuration was saved
separately using calls to model.to_json() and model.save_weights(...).
|
static ComputationGraphConfiguration |
KerasModelImport.importKerasModelConfiguration(String modelJsonFilename,
boolean enforceTrainingConfig)
Load Keras (Functional API) Model for which the configuration was saved
separately using calls to model.to_json() and model.save_weights(...).
|
static MultiLayerConfiguration |
KerasModelImport.importKerasSequentialConfiguration(String modelJsonFilename)
Load Keras Sequential model for which the configuration was saved
separately using calls to model.to_json() and model.save_weights(...).
|
static MultiLayerConfiguration |
KerasModelImport.importKerasSequentialConfiguration(String modelJsonFilename,
boolean enforceTrainingConfig)
Load Keras Sequential model for which the configuration was saved
separately using calls to model.to_json() and model.save_weights(...).
|
static MultiLayerNetwork |
KerasModelImport.importKerasSequentialModelAndWeights(InputStream modelHdf5Stream)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
KerasModelImport.importKerasSequentialModelAndWeights(InputStream modelHdf5Stream,
boolean enforceTrainingConfig)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
KerasModelImport.importKerasSequentialModelAndWeights(String modelHdf5Filename)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
KerasModelImport.importKerasSequentialModelAndWeights(String modelHdf5Filename,
boolean enforceTrainingConfig)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
KerasModelImport.importKerasSequentialModelAndWeights(String modelHdf5Filename,
int[] inputShape,
boolean enforceTrainingConfig)
Load Keras Sequential model saved using model.save_model(...).
|
static MultiLayerNetwork |
KerasModelImport.importKerasSequentialModelAndWeights(String modelJsonFilename,
String weightsHdf5Filename)
Load Keras Sequential model for which the configuration and weights were
saved separately using calls to model.to_json() and model.save_weights(...).
|
static MultiLayerNetwork |
KerasModelImport.importKerasSequentialModelAndWeights(String modelJsonFilename,
String weightsHdf5Filename,
boolean enforceTrainingConfig)
Load Keras Sequential model for which the configuration and weights were
saved separately using calls to model.to_json() and model.save_weights(...).
|
String |
Hdf5Archive.readAttributeAsFixedLengthString(String attributeName,
int bufferSize)
Read string attribute from group path.
|
String |
Hdf5Archive.readAttributeAsJson(String attributeName,
String... groups)
Read JSON-formatted string attribute from group path.
|
String |
Hdf5Archive.readAttributeAsString(String attributeName,
String... groups)
Read string attribute from group path.
|
INDArray |
Hdf5Archive.readDataSet(String datasetName,
String... groups)
Read data set as ND4J array from group path.
|
| Constructor and Description |
|---|
KerasLayer()
Default constructor.
|
KerasLayer(Integer kerasVersion)
Constructor with Keras version only.
|
KerasLayer(Map<String,Object> layerConfig)
Constructor.
|
KerasLayer(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor.
|
KerasModel(KerasModelBuilder modelBuilder)
(Recommended) Builder-pattern constructor for (Functional API) Model.
|
KerasModel(String modelJson,
String modelYaml,
Hdf5Archive weightsArchive,
String weightsRoot,
String trainingJson,
Hdf5Archive trainingArchive,
boolean enforceTrainingConfig,
int[] inputShape,
KerasLayer.DimOrder dimOrder)
(Not recommended) Constructor for (Functional API) Model from model configuration
(JSON or YAML), training configuration (JSON), weights, and "training mode"
boolean indicator.
|
KerasSequentialModel(KerasModelBuilder modelBuilder)
(Recommended) Builder-pattern constructor for Sequential model.
|
KerasSequentialModel(String modelJson,
String modelYaml,
Hdf5Archive weightsArchive,
String weightsRoot,
String trainingJson,
Hdf5Archive trainingArchive,
boolean enforceTrainingConfig,
int[] inputShape)
(Not recommended) Constructor for Sequential model from model configuration
(JSON or YAML), training configuration (JSON), weights, and "training mode"
boolean indicator.
|
| Modifier and Type | Method and Description |
|---|---|
static KerasLayerConfiguration |
KerasLayerConfigurationFactory.get(Integer kerasMajorVersion) |
| Modifier and Type | Method and Description |
|---|---|
FeedForwardLayer |
KerasLoss.getLossLayer(InputType type)
Get DL4J LossLayer.
|
InputType |
KerasInput.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasLoss.getOutputType(InputType... inputType)
Get layer output type.
|
| Constructor and Description |
|---|
KerasInput(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasInput(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasInput(String layerName,
int[] inputShape)
Constructor from layer name and input shape.
|
KerasInput(String layerName,
int[] inputShape,
boolean enforceTrainingConfig)
Constructor from layer name and input shape.
|
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.
|
KerasTFOpLayer(Integer kerasVersion) |
KerasTFOpLayer(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasTFOpLayer(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Constructor and Description |
|---|
KerasELU(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasELU(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLeakyReLU(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLeakyReLU(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPReLU(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPReLU(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasReLU(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasReLU(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSoftmax(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSoftmax(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasThresholdedReLU(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasThresholdedReLU(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
static ConvolutionMode |
KerasConvolutionUtils.getConvolutionModeFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get convolution border mode from Keras layer configuration.
|
static int[] |
KerasConvolutionUtils.getPaddingFromBorderModeConfig(Map<String,Object> layerConfig,
int dimension,
KerasLayerConfiguration conf,
int kerasMajorVersion)
Get (convolution) padding from Keras layer configuration.
|
| Constructor and Description |
|---|
KerasAtrousConvolution1D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasAtrousConvolution1D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasAtrousConvolution1D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasAtrousConvolution2D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasAtrousConvolution2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasAtrousConvolution2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution() |
KerasConvolution(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasConvolution(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution1D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasConvolution1D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution1D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution2D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasConvolution2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution3D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasConvolution3D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasConvolution3D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasCropping1D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasCropping1D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasCropping2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasCropping2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasCropping3D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasCropping3D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDeconvolution2D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasDeconvolution2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDeconvolution2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasDepthwiseConvolution2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDepthwiseConvolution2D(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers,
List<String> layerNamesToCheck,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSeparableConvolution2D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasSeparableConvolution2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSeparableConvolution2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSpaceToDepth(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSpaceToDepth(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasUpsampling1D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasUpsampling1D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasUpsampling2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasUpsampling2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasUpsampling3D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasUpsampling3D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasZeroPadding1D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasZeroPadding1D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasZeroPadding2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasZeroPadding2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasZeroPadding3D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasZeroPadding3D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Constructor and Description |
|---|
KerasActivation(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasActivation(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDense(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasDense(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDense(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDropout(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasDropout(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasFlatten(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasFlatten(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLambda(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
SameDiffLayer sameDiffLayer)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLambda(Map<String,Object> layerConfig,
SameDiffLayer sameDiffLayer)
Constructor from parsed Keras layer configuration dictionary.
|
KerasMasking(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasMasking(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasMerge(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasMerge(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasMerge(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasMerge(Map<String,Object> layerConfig,
ElementWiseVertex.Op mergeMode,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary and merge mode passed in.
|
KerasPermute(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPermute(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasRepeatVector(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasRepeatVector(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasReshape(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasReshape(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSpatialDropout(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasSpatialDropout(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSpatialDropout(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Constructor and Description |
|---|
KerasLRN(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLRN(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPoolHelper(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPoolHelper(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Constructor and Description |
|---|
Keras2DEmbedding()
Pass through constructor for unit tests
|
Keras2DEmbedding(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
Keras2DEmbedding(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasEmbedding()
Pass through constructor for unit tests
|
KerasEmbedding(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasEmbedding(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Constructor and Description |
|---|
KerasLocallyConnected1D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasLocallyConnected1D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLocallyConnected1D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLocallyConnected2D(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasLocallyConnected2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLocallyConnected2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Constructor and Description |
|---|
KerasAlphaDropout(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasAlphaDropout(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasAlphaDropout(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasGaussianDropout(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasGaussianDropout(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasGaussianDropout(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasGaussianNoise(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasGaussianNoise(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasGaussianNoise(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Constructor and Description |
|---|
KerasBatchNormalization(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasBatchNormalization(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasBatchNormalization(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasBatchNormalization(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
static int[] |
KerasPoolingUtils.mapGlobalPoolingDimensions(String className,
KerasLayerConfiguration conf,
KerasLayer.DimOrder dimOrder)
Map Keras pooling layers to DL4J pooling dimensions.
|
static PoolingType |
KerasPoolingUtils.mapPoolingType(String className,
KerasLayerConfiguration conf)
Map Keras pooling layers to DL4J pooling types.
|
| Constructor and Description |
|---|
KerasGlobalPooling(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasGlobalPooling(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPooling1D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPooling1D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPooling2D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPooling2D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPooling3D(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasPooling3D(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
double |
KerasLSTM.getForgetBiasInitFromConfig(Map<String,Object> layerConfig,
boolean train)
Get LSTM forget gate bias initialization from Keras layer configuration.
|
IActivation |
KerasLSTM.getGateActivationFromConfig(Map<String,Object> layerConfig)
Get LSTM gate activation function from Keras layer configuration.
|
static double |
KerasRnnUtils.getRecurrentDropout(KerasLayerConfiguration conf,
Map<String,Object> layerConfig)
Get recurrent weight dropout from Keras layer configuration.
|
| Constructor and Description |
|---|
KerasLSTM(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasLSTM(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLSTM(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLSTM(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasLSTM(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSimpleRnn(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasSimpleRnn(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSimpleRnn(Map<String,Object> layerConfig,
boolean enforceTrainingConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSimpleRnn(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasSimpleRnn(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
| Constructor and Description |
|---|
KerasBidirectional(Integer kerasVersion)
Pass-through constructor from KerasLayer
|
KerasBidirectional(Map<String,Object> layerConfig)
Constructor from parsed Keras layer configuration dictionary.
|
KerasBidirectional(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
KerasBidirectional(Map<String,Object> layerConfig,
Map<String,? extends KerasLayer> previousLayers)
Constructor from parsed Keras layer configuration dictionary.
|
| Modifier and Type | Method and Description |
|---|---|
KerasModel |
KerasModelBuilder.buildModel()
Build a KerasModel (corresponding to ComputationGraph) from this model builder.
|
KerasSequentialModel |
KerasModelBuilder.buildSequential()
Build a KerasSequentialModel (corresponding to MultiLayerNetwork) from this model builder.
|
static void |
KerasLayerUtils.checkForUnsupportedConfigurations(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
KerasLayerConfiguration conf)
Checks whether layer config contains unsupported options.
|
static Activation |
KerasActivationUtils.getActivationFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get activation enum value from Keras layer configuration.
|
static double |
KerasLayerUtils.getBiasL1RegularizationFromConfig(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
KerasLayerConfiguration conf)
Get L1 bias regularization (if any) from Keras bias regularization configuration.
|
static LayerConstraint |
KerasConstraintUtils.getConstraintsFromConfig(Map<String,Object> layerConfig,
String constraintField,
KerasLayerConfiguration conf,
int kerasMajorVersion)
Get constraint initialization from Keras layer configuration.
|
static IActivation |
KerasActivationUtils.getIActivationFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get activation function from Keras layer configuration.
|
static KerasLayer |
KerasLayerUtils.getKerasLayerFromConfig(Map<String,Object> layerConfig,
boolean enforceTrainingConfig,
KerasLayerConfiguration conf,
Map<String,Class<? extends KerasLayer>> customLayers,
Map<String,SameDiffLambdaLayer> lambdaLayers,
Map<String,? extends KerasLayer> previousLayers)
Build KerasLayer from a Keras layer configuration.
|
static KerasLayer |
KerasLayerUtils.getKerasLayerFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf,
Map<String,Class<? extends KerasLayer>> customLayers,
Map<String,SameDiffLambdaLayer> lambdaLayers,
Map<String,? extends KerasLayer> previousLayers)
Build KerasLayer from a Keras layer configuration.
|
static IWeightInit |
KerasInitilizationUtils.getWeightInitFromConfig(Map<String,Object> layerConfig,
String initField,
boolean enforceTrainingConfig,
KerasLayerConfiguration conf,
int kerasMajorVersion)
Get weight initialization from Keras layer configuration.
|
static double |
KerasRegularizerUtils.getWeightRegularizerFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf,
String configField,
String regularizerType)
Get weight regularization from Keras weight regularization configuration.
|
static void |
KerasModelUtils.importWeights(Hdf5Archive weightsArchive,
String weightsRoot,
Map<String,KerasLayer> layers,
int kerasVersion,
String backend)
Store weights to import with each associated Keras layer.
|
static LayerConstraint |
KerasConstraintUtils.mapConstraint(String kerasConstraint,
KerasLayerConfiguration conf,
Map<String,Object> constraintConfig)
Map Keras to DL4J constraint.
|
static ILossFunction |
KerasLossUtils.mapLossFunction(String kerasLoss,
KerasLayerConfiguration conf)
Map Keras to DL4J loss functions.
|
static IUpdater |
KerasOptimizerUtils.mapOptimizer(Map<String,Object> optimizerConfig)
Map Keras optimizer to DL4J IUpdater.
|
static Activation |
KerasActivationUtils.mapToActivation(String kerasActivation,
KerasLayerConfiguration conf)
Map Keras to DL4J activation functions.
|
static IActivation |
KerasActivationUtils.mapToIActivation(String kerasActivation,
KerasLayerConfiguration conf)
Map Keras to DL4J activation functions.
|
static IWeightInit |
KerasInitilizationUtils.mapWeightInitialization(String kerasInit,
KerasLayerConfiguration conf,
Map<String,Object> initConfig,
int kerasMajorVersion)
Map Keras to DL4J weight initialization functions.
|
KerasModelBuilder |
KerasModelBuilder.modelHdf5Filename(String modelHdf5Filename)
Set full model HDF5 (architecture, weights and training configuration) by providing the HDF5 filename.
|
Copyright © 2021. All rights reserved.