MATLAB Answers

Error using genfis function in Grid Partitioning

4 views (last 30 days)
Hello guys,
I am trying to conduct a Time Series Prediction using ANFIS.
When I use the genfis function, I get the following error when I work with both Grid Partitioning and Substractive Clustering FIS:
Error using genfis>validateXin (line 90)
Expected Xin to be finite.
Error in genfis (line 49)
validateXin(Xin);
My input is formed by 8 variables with 52584 observations each. I have read that this error may be caused by lack of memory in the computer.
I would highly appreciate it if anyone knew if the problem may be caused by something else, or how could I solve it. I am learning to use Fuzzy Logic in Matlab and I would be grateful for any help.
I have the Fuzzy Logic Designer and Neuro-Fuzzy Designer Toolboxes.
Many thanks,
Natalia

  0 Comments

Sign in to comment.

Accepted Answer

Dhananjay Kumar
Dhananjay Kumar on 31 Mar 2020
Check with this function to check if the issue is related to the data: mustBeFinite

  3 Comments

NATALIA ARREGUI GONZALEZ
NATALIA ARREGUI GONZALEZ on 31 Mar 2020
Hello,
First, many thanks for your response.
So, the solution would be to eliminate all the rows that don't have finite elements (such as NaN)?
Or where do you suggest to use the function mustBeFinite?
The function I am using is
fis = genfis(Inputs,Targets);
Many thanks again,
Natalia
Dhananjay Kumar
Dhananjay Kumar on 1 Apr 2020
Hi Natalia,
You can check the finiteness with mustBeFinite function like this:
>> a = mustBeFinite(Inputs)
Then value of a will be either true or false depending on the data in the Inputs.

Sign in to comment.

More Answers (0)