scalingLayer
Scaling layer for actor or critic network
Description
A scaling layer linearly scales and biases an input array U
, giving an output Y = Scale.*U + Bias
. You can incorporate this layer into the deep neural networks you define for actors or critics in reinforcement learning agents. This layer is useful for scaling and shifting the outputs of nonlinear layers, such as tanhLayer
and sigmoid.
For instance, a tanhLayer
gives bounded output that falls between –1 and
1. If your actor network output has different bounds (as defined in the actor specification),
you can include a ScalingLayer
as an output to scale and shift the actor
network output appropriately.
The parameters of a ScalingLayer
object are not learnable.
Creation
Description
creates a scaling
layer with default property values.sLayer
= scalingLayer
sets properties using
name-value pairs. For example, sLayer
= scalingLayer(Name,Value
)scalingLayer('Scale',0.5)
creates a
scaling layer that scales its input by 0.5. Enclose each property name in quotes.
Properties
Examples
Extended Capabilities
Version History
Introduced in R2019a