IndexOutOfBoundsException when trying to add more instances to training set using Weka

不羁岁月 提交于 2019-12-02 08:26:40
xro7

After some searching i realize that there is something wrong with the addAll function. One reason i can think of is that addAll just adds references of instances and that is an issue when i try to use them with the filter . Instead, i used the merge function proposed here https://stackoverflow.com/a/12359788/3923800 ,so i replaced trainSet.addAll(data2); with Instances newTrainSettrainSet = merge(trainSet,data2); and everything works fine.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!