次のフィルターをデータに適用しています。
string[] options = new string[2];
options[0] = "-R";
options[1] = "1-2";
Remove remove = new Remove(); // new instance of filter
remove.setOptions(options);
remove.setInputFormat(train);
train = Filter.useFilter(train, remove);
unlabeled = Filter.useFilter(unlabeled, remove);
ただし、最後にラベル付きデータを印刷するときに、削除されたフィールドを追加したいと思います。
列を再度追加するにはどうすればよいですか?
ありがとう
PS>. もう 1 つ質問があります。フィールドを削除するのではなく、無視することはできますか?