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!