I am training a 4-class neural network classifier. The details of my data are:
featurelength = 280
training testing
---------------------------------------------
no. samples 438 250
samples class1 203 135
samples class2 19 10
samples class3 16 5
samples class4 200 100
After I train the neural network.
The confusion matrices are as follows:
203 0 0 0
19 0 0 0
16 0 0 0
200 0 0 0
Similarly for test data too. All the data is predicted to be of class 1.
How can I debug this issue? What is the reason behind such performance? In addition to this, no. of samples for class 2 and class 3 are very less. How can I make sure that they are not dominated?
Mean Diag train: 0.894766 Mean Diag test: 0.416521 Confusion matrix training: [ 148 0 0 55; 0 19 0 0; 0 0 16 0; 44 0 1 255]
– Swagatika Apr 23 '13 at 10:39[coeffs, scores, variances, t2] = princomp(trainData); testDataMapped = coeffs * testData'; testDataMapped = testDataMapped';
testDataPCA = testDataMapped(:, 1 : THRESH); %%%% Is this the right way to perform PCA? When I combined all the data and performed PCA, I got infinity values for variance.
– Swagatika Apr 26 '13 at 15:56