Research Article

Research and Implementation of Colour Optimal Matching Model for Art Design Based on Bayesian Decision-Making

Table 1

Pseudocode of Bayesian decision theory for feature selection algorithm.

InputThe sample set S, the label value Y corresponding to the sample, feature set F

OutputNew feature set
1Function Bayes risk (S, F)
2Obtain the corresponding metric matrix M for a given feature set
3For each
4Calculate R(i) = input(i) (1 a P(C) | ai)
5End for
6
7
8End function