| Modifier and Type | Method and Description |
|---|---|
void |
KerasLayer.copyWeightsToLayer(Layer layer)
Copy Keras layer weights to DL4J Layer.
|
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.
|
InputPreProcessor |
KerasLayer.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
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.
|
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(...).
|
boolean |
KerasLayer.isValidInboundLayer()
Indicates whether this layer a valid inbound layer.
|
void |
KerasLayer.setWeights(Map<String,INDArray> weights)
Set weights for Keras layer.
|
| Constructor and Description |
|---|
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 |
|---|---|
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(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.
|
| Modifier and Type | Method and Description |
|---|---|
InputType |
KerasELU.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasLeakyReLU.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasPReLU.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasReLU.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasSoftmax.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasThresholdedReLU.getOutputType(InputType... inputType)
Get layer output type.
|
void |
KerasPReLU.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
| 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.
|
INDArray |
KerasConvolution.getConvParameterValues(INDArray kerasParamValue)
Return processed parameter values obtained from Keras convolutional layers.
|
static CNN2DFormat |
KerasConvolutionUtils.getDataFormatFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration layerConfiguration)
Return the
CNN2DFormat
from the configuration . |
static int[] |
KerasConvolutionUtils.getDilationRate(Map<String,Object> layerConfig,
int dimension,
KerasLayerConfiguration conf,
boolean forceDilation)
Get atrous / dilation rate from config
|
InputPreProcessor |
KerasConvolution1D.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
static int[] |
KerasConvolutionUtils.getKernelSizeFromConfig(Map<String,Object> layerConfig,
int dimension,
KerasLayerConfiguration conf,
int kerasMajorVersion)
Get (convolution) kernel size from Keras layer configuration.
|
InputType |
KerasAtrousConvolution1D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasAtrousConvolution2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasConvolution1D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasConvolution2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasConvolution3D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasCropping1D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasCropping2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasCropping3D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasDeconvolution2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasDepthwiseConvolution2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasSeparableConvolution2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasSpaceToDepth.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasUpsampling1D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasUpsampling2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasUpsampling3D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasZeroPadding1D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasZeroPadding2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasZeroPadding3D.getOutputType(InputType... inputType)
Get layer output type.
|
static int[] |
KerasConvolutionUtils.getPaddingFromBorderModeConfig(Map<String,Object> layerConfig,
int dimension,
KerasLayerConfiguration conf,
int kerasMajorVersion)
Get (convolution) padding from Keras layer configuration.
|
static int[] |
KerasConvolutionUtils.getStrideFromConfig(Map<String,Object> layerConfig,
int dimension,
KerasLayerConfiguration conf)
Get (convolution) stride from Keras layer configuration.
|
void |
KerasConvolution.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
void |
KerasConvolution1D.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
void |
KerasDepthwiseConvolution2D.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
void |
KerasSeparableConvolution2D.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
| Constructor and Description |
|---|
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(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(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(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(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(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(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(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(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.
|
| Modifier and Type | Method and Description |
|---|---|
InputPreProcessor |
KerasFlatten.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
InputPreProcessor |
KerasPermute.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
InputPreProcessor |
KerasReshape.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
InputType |
KerasActivation.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasDense.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasDropout.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasFlatten.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasLambda.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasMasking.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasPermute.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasRepeatVector.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasReshape.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasSpatialDropout.getOutputType(InputType... inputType)
Get layer output type.
|
void |
KerasDense.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
| 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(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(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(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.
|
| Modifier and Type | Method and Description |
|---|---|
InputType |
KerasLRN.getOutputType(InputType... inputType)
Get layer output type.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
InputType |
Keras2DEmbedding.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasEmbedding.getOutputType(InputType... inputType)
Get layer output type.
|
void |
Keras2DEmbedding.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
void |
KerasEmbedding.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
| Constructor and Description |
|---|
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(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.
|
| Modifier and Type | Method and Description |
|---|---|
InputType |
KerasLocallyConnected1D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasLocallyConnected2D.getOutputType(InputType... inputType)
Get layer output type.
|
void |
KerasLocallyConnected1D.setWeights(Map<String,INDArray> weights)
Set weights for 1D locally connected layer.
|
void |
KerasLocallyConnected2D.setWeights(Map<String,INDArray> weights)
Set weights for 2D locally connected layer.
|
| Constructor and Description |
|---|
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(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.
|
| Modifier and Type | Method and Description |
|---|---|
InputType |
KerasAlphaDropout.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasGaussianDropout.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasGaussianNoise.getOutputType(InputType... inputType)
Get layer output type.
|
| Constructor and Description |
|---|
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(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(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.
|
| Modifier and Type | Method and Description |
|---|---|
InputType |
KerasBatchNormalization.getOutputType(InputType... inputType)
Get layer output type.
|
void |
KerasBatchNormalization.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
| Constructor and Description |
|---|
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 |
|---|---|
InputPreProcessor |
KerasGlobalPooling.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
InputType |
KerasGlobalPooling.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasPooling1D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasPooling2D.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasPooling3D.getOutputType(InputType... inputType)
Get layer output type.
|
| 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.
|
InputPreProcessor |
KerasLSTM.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
InputPreProcessor |
KerasSimpleRnn.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
InputType |
KerasLSTM.getOutputType(InputType... inputType)
Get layer output type.
|
InputType |
KerasSimpleRnn.getOutputType(InputType... inputType)
Get layer output type.
|
static double |
KerasRnnUtils.getRecurrentDropout(KerasLayerConfiguration conf,
Map<String,Object> layerConfig)
Get recurrent weight dropout from Keras layer configuration.
|
static boolean |
KerasRnnUtils.getUnrollRecurrentLayer(KerasLayerConfiguration conf,
Map<String,Object> layerConfig)
Get unroll parameter to decide whether to unroll RNN with BPTT or not.
|
void |
KerasLSTM.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
void |
KerasSimpleRnn.setWeights(Map<String,INDArray> weights)
Set weights for layer.
|
| Constructor and Description |
|---|
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(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.
|
| Modifier and Type | Method and Description |
|---|---|
InputPreProcessor |
KerasBidirectional.getInputPreprocessor(InputType... inputType)
Gets appropriate DL4J InputPreProcessor for given InputTypes.
|
InputType |
KerasBidirectional.getOutputType(InputType... inputType)
Get layer output type.
|
void |
KerasBidirectional.setWeights(Map<String,INDArray> weights)
Set weights for Bidirectional layer.
|
| Constructor and Description |
|---|
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 |
|---|---|
static TimeSeriesGenerator |
TimeSeriesGenerator.fromJson(String jsonFileName) |
| Constructor and Description |
|---|
TimeSeriesGenerator(INDArray data,
INDArray targets,
int length) |
TimeSeriesGenerator(INDArray data,
INDArray targets,
int length,
int samplingRate,
int stride,
Integer startIndex,
Integer endIndex,
boolean shuffle,
boolean reverse,
int batchSize) |
| Modifier and Type | Method and Description |
|---|---|
static KerasTokenizer |
KerasTokenizer.fromJson(String jsonFileName)
Import Keras Tokenizer from JSON file created with `tokenizer.to_json()` in Python.
|
| 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 Model |
KerasModelUtils.copyWeightsToModel(Model model,
Map<String,KerasLayer> kerasLayers)
Helper function to import weights from nested Map into existing model.
|
static int |
KerasModelUtils.determineKerasMajorVersion(Map<String,Object> modelConfig,
KerasModelConfiguration config)
Determine Keras major version
|
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 String |
KerasLayerUtils.getClassNameFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get Keras layer class name from Keras layer configuration.
|
static LayerConstraint |
KerasConstraintUtils.getConstraintsFromConfig(Map<String,Object> layerConfig,
String constraintField,
KerasLayerConfiguration conf,
int kerasMajorVersion)
Get constraint initialization from Keras layer configuration.
|
static KerasLayer.DimOrder |
KerasLayerUtils.getDimOrderFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get Keras (backend) dimension order from Keras layer configuration.
|
static double |
KerasLayerUtils.getDropoutFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get dropout from Keras layer configuration.
|
static boolean |
KerasLayerUtils.getHasBiasFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Determine if layer should be instantiated with bias
|
static IActivation |
KerasActivationUtils.getIActivationFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get activation function from Keras layer configuration.
|
static Map<String,Object> |
KerasLayerUtils.getInnerLayerConfigFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get inner layer config from Keras layer configuration.
|
static int[] |
KerasLayerUtils.getInputShapeFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get Keras input shape 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 String |
KerasLayerUtils.getLayerNameFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get layer name from Keras layer configuration.
|
static double |
KerasLayerUtils.getMaskingValueFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get mask value
|
static Integer |
KerasLayerUtils.getNInFromInputDim(Map<String,Object> layerConfig,
KerasLayerConfiguration conf) |
static int |
KerasLayerUtils.getNOutFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get number of outputs from Keras layer configuration.
|
static Map<String,Object> |
KerasLayerUtils.getTimeDistributedLayerConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Extract inner layer config from TimeDistributed configuration and merge
it into the outer config.
|
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 boolean |
KerasLayerUtils.getZeroMaskingFromConfig(Map<String,Object> layerConfig,
KerasLayerConfiguration conf)
Get zero masking flag
|
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 IUpdater |
KerasOptimizerUtils.mapOptimizer(Map<String,Object> optimizerConfig)
Map Keras optimizer to DL4J IUpdater.
|
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.
|
static Map<String,Object> |
KerasModelUtils.parseModelConfig(String modelJson,
String modelYaml)
Parse Keras model configuration from JSON or YAML string representation
|
Copyright © 2021. All rights reserved.