Weka的主成分分析 [英] Principal Component Analysis on Weka

查看:407
本文介绍了Weka的主成分分析的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在训练集中计算了PCA,Weka用选择和计算新属性的方式向我返回了新属性. 现在,我想使用这些数据构建一个模型,然后在测试集上使用该模型.

I have just computed PCA on a training set and Weka returned me the new attributes with the way in which they were selected and computed. Now, I want to build a model using these data and then use the model on a test set.

您知道是否有一种方法可以根据新的属性类型自动修改测试集吗?

Do you know if there is a way to automatically modify the test set according to the new type of attributes?

推荐答案

您是否需要主要成分进行分析或仅将其输入分类器?如果不是,则仅使用Meta-> FilteredClassifier分类器.将过滤器设置为PrincipalComponents,将分类器设置为要使用的任何分类器.在未转换训练集中对其进行训练,您将能够将其输入未转换的测试集中.

Do you need the principal components for analysis or just to feed into the classifier? If not just use the Meta->FilteredClassifier classifier. Set the filter to PrincipalComponents and and the classifier to whatever classifier you want to use. Train it on the un-transformed training set and you'll be able to just feed it the untransformed test set.

如果您确实需要修改后的测试集,我建议您使用知识流工具进行如下操作:

If you really need the modified test set I'd recommend using the knowledge flow tool to make something like this:

这篇关于Weka的主成分分析的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆