validateEnvironment
Validate custom reinforcement learning environment
Syntax
Description
validateEnvironment(
validates a
reinforcement learning environment. This function is useful when:env
)
You create a custom environment from a template class using
rlCreateEnvTemplate
.You create a custom Simulink® environment using
rlSimulinkEnv
orcreateIntegratedEnv
.
When you create a custom environment using rlFunctionEnv
or
rlNeuralNetworkEnvironment
, the software runs
validateEnvironment
automatically after creating the environment
object.
validateEnvironment
resets the environment, generates an initial
observation and action, and simulates the environment for one or two steps (see Algorithms). If there are no errors
during these operations, validation is successful, and
validateEnvironment
returns no result. If errors occur, these errors
appear in the MATLAB® command window. Use the errors to determine what to change in your observation
specification, action specification, custom functions, or Simulink model.
Examples
Input Arguments
Algorithms
Version History
Introduced in R2019a