Research on Application of Naive Bayes Algorithm Based on Attribute Correlation to Unmanned Driving Ethical Dilemma
Table 4
ACNB description.
ACNB algorithm
Input: Training set data D
Output: ACNB network G
(1) calculating the prior probability p(xi|Cj) between attribute xi and class cj
(2) calculating correlation coefficient between attributes and constructing correlation coefficient matrix.
(3) solving maximum correlation coefficient between attributes in a test dilemma.
(4) solving the posterior probability of the straight being protector or sacrificer by NB and multiplied by the maximum correlation coefficient in the test dilemma
(5) making a decision by comparing the products of posterior probability and correlation coefficient.