scikit-learn(工程中用的相对较多的模型介绍):1.14. Semi-Supervised

scikit-learn的semi_supervised模块包含LabelPropagation和LabelSpreading,利用未标记数据改进模型,适用于少量标记样本和大量未标记样本场景。LabelPropagation采用硬夹紧,而LabelSpreading通过损失函数对噪声更鲁棒。两种模型都可以使用核方法,RBF核可能导致运行时间较长,KNN核则更节省内存。示例展示了它们在Iris数据集和手写数字识别中的应用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

参考:http://scikit-learn.org/stable/modules/label_propagation.html



The semi-supervised estimators insklearn.semi_supervised are able to make use of this additional unlabeled data to better capture the shape of the underlying data distribution and generalize better to new samples. These algorithms can perform well when we have a very small amount of labeled points and a large amount of unlabeled points.


Unlabeled entries in yIt is important to assign an identifier to unlabeled points along with the labeled data when training the model with the fit method. The identifier that this implementation uses is the integer value 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值