私はwekaデータセットを持っています:
@attribute uid numeric
@attribute itemid numeric
@attribute rating numeric
@attribute timestamp numeric
@data
196 242 3 881250949
186 302 3 891717742
22 377 1 878887116
196 51 5 881250949
244 51 2 880606923
次のように新しいインスタンスを追加したい場合:
244 59 2 880606923
どうすればできますか?
このようなもの ?
Instances newData = arffLoader.getDataSet();
for (int i = 0; i < newData.numInstances(); i++) {
Instance one = newData.instance(i);
one.setDataset(data);
data.add(one);
}