DeepLearning/DenseLayer - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : DeepLearning/DenseLayer

DeepLearning

  

DenseLayer

  

create dense layer

 

Calling Sequence

Parameters

Options

Description

Details

Compatibility

Calling Sequence

DenseLayer(units,opts)

Parameters

units

-

list of feature columns

Options

• 

hidden_units : list of nonnegative integers

  

Specifies the number of hidden nodes in the neural network at each level.

• 

num_classes : nonnegative integer

  

Specifies the number of distinct classes into which the data should be classified.

• 

optimizer : function or Optimizer object

  

Specifies the optimizer to use to train the model. The default is the Adagrad optimizer.

Description

• 

The DenseLayer(units, opts) command creates a dense neural network layer with units units.

• 

This function is part of the DeepLearning package, so it can be used in the short form DenseLayer(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[DenseLayer](..).

Details

• 

The implementation of DenseLayer uses tf.keras.layers.Dense from the TensorFlow Python API. Consult the TensorFlow Python API documentation for tf.keras.layers.Dense for more information.

Compatibility

• 

The DeepLearning[DenseLayer] command was introduced in Maple 2021.

• 

For more information on Maple 2021 changes, see Updates in Maple 2021.

See Also

DeepLearning Overview