LDA showed probability problems in calculating probability of labels

1 次查看(过去 30 天)
data = importdata('LDA data.mat')
features=data(:,1:end-1); %split data without labels
lable=data(:,end); %get the labels
W=LDA(features,lable); %perform LDA on data
L = [ones(170884,1) features] * W';
P = exp(L) ./ repmat(sum(exp(L),1),[170884 1]);
handles.features = features;
guidata(hObject, handles);
Problem: Assuming I have seven data sets in columns to compare and a last column being label. I perform a simple LDA on it. Thing is, P gave me all the example, 0.0000079.... when its supposed to be 0.021. When all the rows add up, they equal to 1 so that probability of labels can be caluclated. Need help please!!!

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Statistics and Machine Learning Toolbox 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by