Research Article
Paddy Crop and Weed Discrimination: A Multiple Classifier System Approach
Algorithm 1
Algorithm for calculating weights of each class of each classifier.
| (1) | Input | | (2) | Train set-1 Train data set with class labels | | (3) | Test-set Test data | | (4) | k Number of classes | | (5) | n Number of classifiers | | (6) | Output | | (7) | W[n][k] Weight of each class of each classifier | | (8) | X_train, X_ ⟵ weight divide the Train set-1 into two sets in the ratio of 80 : 20 | | (9) | len ⟵ length of X_weight | | (10) | for i 1 ⟵ to n do | | (11) | Train Ci on X_train | | (12) | Predict using Ci on X_weight | | (13) | for j ⟵ 0 to k − 1 do | | (14) | W[i][j] ⟵ (number of samples that belong to j class that were correctly classified by classifier Ci)/len | | (15) | end for | | (16) | end for |
|