ANFIS EDIT out of memory

3 views (last 30 days)
Antonio Abela
Antonio Abela on 29 Feb 2024
Commented: Sam Chak on 1 Mar 2024
I am currently uploading some training data, which includes 10 inputs and 1 output. The data consists of the following variables: day, time, water heater temperature, water heater flow rate, and the frequency of switching on and off hourly. The output variable is the predicted flow rate for the next week. In total, I have data for 4 weeks and corresponding predicted flow rates.
However, when running the ANFIS, I am encountering an 'out of memory' error. I am also uploading the data here what could lead to this. Perhaps I am missing something.
Thank you.
  2 Comments
Walter Roberson
Walter Roberson on 29 Feb 2024
It would help to have your code.
Antonio Abela
Antonio Abela on 1 Mar 2024
I am using the ANFISEDIT tool. Is there any possibility that I can code it?

Sign in to comment.

Answers (1)

Sam Chak
Sam Chak on 1 Mar 2024
You mentioned that there are 10 inputs and 1 output. However, in the CSV file, there are 15 columns, with each column containing 168 rows. It seems that you may have selected 11 columns out of the total.
If you utilize the grid partitioning method and uniformly assign 5 membership functions {VeryLow, Low, Medium, High, VeryHigh} to each input, you will end up with approximately 10 million rules. Consequently, when the ANFIS attempts to undergo training, the extensive data allocation can lead to "out-of-memory" issues.
num_MFs = 5;
num_Input = 10;
num_Rules = num_MFs^num_Input
num_Rules = 9765625
  4 Comments
Antonio Abela
Antonio Abela on 1 Mar 2024
Hello @Sam Chak,
No, I just want to have an accurate prediction; the rules are not very important. Could you kindly provide me with more insight on this? If possible, could you share some examples or explain how I can approach this? Your assistance would be greatly appreciated.
Sam Chak
Sam Chak on 1 Mar 2024
Since you have the data points collected over time, you can apply a deep learning-based time series forecasting technique by using past observations of time-dependent variables to make predictions about future values of the desired variable.
I recommend reading this article on time series forecasting using deep learning:
It provides detailed explanations and examples to help you understand the concept. Once you have gone through the material, feel free to share your code and discuss it here.

Sign in to comment.

Categories

Find more on Matrix Computations in Help Center and File Exchange

Tags

Products


Release

R2020a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!