Hi Bob,
Apologies, I had a few typos in my code. I have corrected them.
It’s always hard to try and explain in writing, but let me try and explain section by section:
labs=genlab([perclass*ones(1,numberoffeatures)], [1:numberoffeatures]');
The above generates labels for the dataset. Basically these take the form:
1;1;1;1;2;2;2;2;3;3;3;3.....78;78;78;78;79;79;79;79;
Next I take my 632 features. These are made up of 79 unique classes with 8 24-dimensional feature vectors for each. I split this into two giving me a training feature set of 316 x 24 dimensional feature vectors split into 79 unique classes (4 sets of vectors per class for training). I do the same again for testing as shown below:
training_set1=dataset(features_train_set1,labs); %Apply labels to data
testing_set1=dataset(features_test_set1,labs);
Now I have another completely different set of features for the SAME objects. If these were features extracted from photographs of bolts, then we could say set_1 was from a side perspective and set_2 was from a birds eye perspective. Each vector within set 2 is of the same object as set 1 and is handled in exactly the same way:
training_set2=dataset(features_train_set2,labs); %Apply labels to data
testing_set2=dataset(features_test_set2,labs);
At this point I now have four distinct sets of objects. set_1 and set_2 training are used to train two different LDC classifiers as shown below.
Wldc_set1=ldc(training_set1);
Wldc_set2=ldc(training_set2);
Once trained, I then test these classifiers using the test sets of data.
ldc_results_1=(testing_set1*Wldc_set1);
ldc_results_2=(testing_set2*Wldc_set2);
By performing:
testc[ldc_results_1]
testc[ldc_results_2]
I can see my error rates readily.
What I want to do however, is take Wldc_set1 and Wlcd_set2 (my trained classifiers) and feed them into a third classifier that looks at both outputs and forms a decision based on the training data I will supply it.
Then I want to test the system using the test data and see if the overall result improves.
I have no need to create artificial data as the object of these tests are to analyise performance of real data.
Hope that explains what I am trying to achieve a bit better, sorry for the confusion.