LDA showed probability problems in calculating probability of labels

1 回表示 (過去 30 日間)
Lester Lim
Lester Lim 2013 年 1 月 28 日
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 Center および File ExchangeStatistics 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