w,让两类在这条线上分得更开。在仅使用 numpy/pandas 的前提下,手写实现 Flsher 线性判别分析 (Linear Dscrimlnant Analysis, LDA) 用于二分类;并对调试样本输出预测标签。
1.读取数据
train:二维列表;最后一列为标签 y∈[0,1],前m 列为数值待征,m≥1
test:二维列表;仅含特征,与训练集同维度
Scan the QR code below with WeChat to sign in
First-time scan will create your account automatically
请使用微信扫描下方二维码完成注册