find the value/s of the membership function when a crisp value is given???
조회 수: 2 (최근 30일)
이전 댓글 표시
Hi everyone;
I am not that much dealing with Matlab so my knowledge on it is quite limited. I want to work on Long Shor-Term Memory network (lstmlayer) function in matlab that uses for time series classification problems. As I can understand from the given definition of this function, the input is a cell array type and the output is a categorical type. My data is a crisp value (please see the attached mat file) data which contains a numerical data represented as 5 columns. Each column from column one to four representing a feature as; (start time, end time, duration and activity count for each class(column 5)), the last column has the class (output ) that I am going to classify using the LSTM. I did convert it to cell array data for the inputs and categorical data representing the classes in the outputs and used it as inputs and outputs to the lstm and it is working perfectly.
What I am looking for now is to fuzzify these crisp values (in the inputs) and representing them using any of the MFs like "gaussmf" and then use these fuzzified values as an input to the lstm network. Hopefully, by that, I gave you the idea that I want to apply. Please accept my apologies for wasting your time.
Thanks in advance
Gad
댓글 수: 0
답변 (1개)
Sam Chak
2022년 9월 20일
But a data-driven Mamdani Fuzzy System can be generated using the Fuzzy Clustering Method (FCM).
load('set5_v73.mat');
inputData = set5_v73(:, 1:4);
outputData = set5_v73(:, 5);
opt = genfisOptions('FCMClustering', 'FISType', 'mamdani');
fis = genfis(inputData, outputData, opt)
% Plotting Fuzzy Inputs
figure(1)
subplot(2,2,1)
plotmf(fis, 'input', 1)
subplot(2,2,2)
plotmf(fis, 'input', 2)
subplot(2,2,3)
plotmf(fis, 'input', 3)
subplot(2,2,4)
plotmf(fis, 'input', 4)
% Plotting Fuzzy Output
figure(2)
plotmf(fis, 'output', 1)
댓글 수: 0
참고 항목
카테고리
Help Center 및 File Exchange에서 Fuzzy Inference System Modeling에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!