create dense layer
list of feature columns
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.
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](..).
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.
The DeepLearning[DenseLayer] command was introduced in Maple 2021.
For more information on Maple 2021 changes, see Updates in Maple 2021.
Download Help Document
What kind of issue would you like to report? (Optional)