Does test file in weka requires same or less number of features as train?

后端 未结 3 2021
慢半拍i
慢半拍i 2020-12-21 12:22

I have prepared two different .arff files from two different datasets one for testing and other for training. Each of them have equal instances but different features chang

3条回答
  •  时光取名叫无心
    2020-12-21 12:57

    How do I divide a dataset into training and test set?

    You can use the RemovePercentage filter (package weka.filters.unsupervised.instance).

    In the Explorer just do the following:

    training set:

    -Load the full dataset

    -select the RemovePercentage filter in the preprocess panel

    -set the correct percentage for the split

    -apply the filter

    -save the generated data as a new file

    test set:

    -Load the full dataset (or just use undo to revert the changes to the dataset)

    -select the RemovePercentage filter if not yet selected

    -set the invertSelection property to true

    -apply the filter

    -save the generated data as new file

提交回复
热议问题