How to make it finite?
Show older comments
I want to know the way to fix the erorr.
The error masage said that make the value finite.
There are four input state variables.
How can I fix it?
function set.State(this,state)
validateattributes(state,{'numeric'},{'finite','real','vector','numel',4},'','State');
this.State = double(state(:));
notifyEnvUpdated(this);
end
5 Comments
Gargi Patil
on 11 Aug 2021
Hi! Can you share the code for state as it is difficult to determine the cause of the error without knowing its values? You can use the function isfinite to find out which value(s) in state is(are) not finite and fix it accordingly.
ryunosuke tazawa
on 12 Aug 2021
Gargi Patil
on 12 Aug 2021
Hi! Can you kindly share the workflow or the parameter values that throw this error?
ryunosuke tazawa
on 13 Aug 2021
Gargi Patil
on 13 Aug 2021
Hi, a new question can be created for further queries about the results of the learning.
Answers (0)
Categories
Find more on Reinforcement Learning Toolbox in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!