w,让两类在这条线上分得更开。在仅使用 numpy/pandas 的前提下,手写实现 Flsher 线性判别分析 (Linear Dscrimlnant Analysis, LDA) 用于二分类;并对调试样本输出预测标签。
1.读取数据
train:二维列表;最后一列为标签 y∈[0,1],前m 列为数值待征,m≥1
test:二维列表;仅含特征,与训练集同维度
By signing up a CodeFun2000 universal account, you can submit code and join discussions in all online judging services provided by us.