discriminant_analysis.LinearDiscriminantAnalysis 的Shrinkage参数

1.当样本数(sample)小于特性数(feature)时用于提高预测协方差矩阵的工具。
2.只有当solver 为 ‘lsqr’ 或 ‘eigen’时可用。
3.值在0-1之间:
当为0时,即没有shrinkage;当为1时,意味着用方差的对角阵来评估协方差矩阵(which means that the diagonal matrix of variances will be used as an estimate for the covariance matrix)。
链接:https://scikit-learn.org/stable/modules/lda_qda.html#lda-qda

猜你喜欢

转载自blog.csdn.net/weixin_43055882/article/details/87348410