generatePolicyFunction
Create function that evaluates trained policy of reinforcement learning agent
Description
generatePolicyFunction(
creates a
function that evaluates the learned policy of the specified agent using the default function
name, policy name, and data file name. After generating the policy evaluation function, you
can:agent
)
Generate code for the function using MATLAB® Coder™ or GPU Coder™. For more information, see Deploy Trained Reinforcement Learning Policies.
Simulate the trained agent in Simulink® using a MATLAB Function (Simulink) block.
generatePolicyFunction(
specifies the function name, policy name, and data file name using one or more name-value
pair arguments.agent
,Name,Value
)