lda 协方差矩阵_R: LDA

1e738818a7374043b13976f75f5b5d8e.png

LDA函数

873614d854e75b696a99cc80c8a43eb2.png

Arguments

formula:判别的公式,例如groups ~ x1 + x2 + …

data:指出数据集

prior:先验概率。如果没有指明,就用training set的比例。???

tol:判断协方差矩阵是否是奇异阵的一个标准,如果有方差小于了tol^2,就认为协方差矩阵是奇异阵,这样就不能进行判别了。

subset:指定哪些数据是用来train model的

na.action:对缺失值的处理

method:估计协方差矩阵的方法。"moment" for standard estimators of the mean and variance, "mle" for MLEs, "mve" to use cov.mve, or "t" for robust estimates based on a t distribution.

CV:不是很懂 If true, returns results (classes and posterior probabilities) for leave-one-out cross-validation. Note that if the prior is estimated, the proportions in the whole dataset are used.

nu:degrees of freedom for method = "t".

1179b872cf590803923ad7c997d5c1f4.png

预测 predict.lda

7f99a5829afdb4e207837343ea4caca8.png
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值