-- 创建学生信息表CREATETABLE students (
id INTPRIMARYKEYAUTO_INCREMENT,
name VARCHAR(50)NOTNULL,
age INT,
gender ENUM('Male','Female'),
email VARCHAR(100)UNIQUE,
created_at TIMESTAMPDEFAULTCURRENT_TIMESTAMP);
1.1.3 插入数据
-- 插入学生记录INSERTINTO students (name, age, gender, email)VALUES('张三',20,'Male','zhangsan@example.com'),('李四',22,'Female','lisi@example.com');
分类错误率
最小错误率贝叶斯决策
样本 x x x的错误率: 任一决策都可能会有错误。 P ( error ∣ x ) { P ( w 2 ∣ x ) , if we decide x as w 1 P ( w 1 ∣ x ) , if we decide x as w 2 P(\text{error}|\mathbf{x})\begin{cases} P(w_2|\mathbf{x}), &…