Algorithm 1 The pseudo-code of the algorithm to convert the cost matrix to multi-label classification cost. C′ denotes the cost matrix specifying the misclassification cost between each pair of categories. Y is the label matrix of the training dataset. c′ contains the derived false positive costs for each category |
= computeFalsePositiveCosts (,)
|
# Normalize the training set labels to
for i 1 to N do
# Calculate the label number of samples i
max(sum(), 1)
# Normalize the training set labels
endfor
# Calculate the misclassification cost of each label on each sample
matrix_multiply (, )
# Mask out the entries with positive labels
# Calculate the mean false positive costs of each label in the training set
for i 1 to m do
endfor
Return
|