0

我正在尝试在 Weka 中使用 InfoGainAttributeEval 进行特征选择,如何保存结果?我尝试保存它,但似乎我的 weka 只是保存了我的输入数据,而不是特征选择的结果。

4

2 回答 2

0

Welcome to SO. As far as I understand you want to get the ranked values of the attributes. To do this, right click on the "Ranker + InfoGainAttributeEval" statement in the "Result List" section. Select "Save result buffer". You can see the results in programs such as notepad. You can also import it into "Excel" and create it in the chart. I think you selected "Ranker" in the Search Method section. I think it is an image as seen in the figure below.

weka_result_buffer_screen

After selecting and running "InfoGainAttributeEval" and "Ranker" it will give you a "ranked" list (Use full training set). Right click and select "Save Reduced Data" then save. Open the file in notepad as well. Open in Weka too. Select the ones whose Rank value is 0 in Weka and delete them with "Remove". Let those with rank value be left. Now you can get the same result reduced with these features. Save in .arff format. Now you have acquired Reduced data.

于 2020-07-07T07:50:40.337 回答
0

如果“保存减少的数据”对您不起作用,这是另一种方法。

属性选择可以在Preprocess选项卡中完成。顶部附近有一个用于过滤数据的栏。单击“选择”按钮。下Filters->Supervised->Attribute你会发现AttributeSelection。选择那个。

AttributeSelection 过滤器的选择

在过滤器栏中显示“AttributeSelection”后,您可以单击该栏以选择选择方法和搜索方法,并为这些选择设置参数。

选择属性选择算法

为特征选择算法做出选择后,单击Apply过滤器栏右侧的 ,以便将过滤器实际应用于数据。数据现在应该具有简化的特征集。所以你需要做的就是点击右上角的 Save按钮来保存它。

应用过滤器并保存

这应该保存减少的数据集。

于 2020-08-25T13:47:54.023 回答