How to test existing model with new instance in weka, using java code?

后端 未结 2 1470
醉酒成梦
醉酒成梦 2020-12-28 10:48

I have a .model file of one of the classifier which I got through Weka GUI. Now I would like to test this model on some instance. Can anyone tell me how to do this ?

2条回答
  •  萌比男神i
    2020-12-28 11:01

    you shoud train your filter too if you want to predict new instances without rebuild /retrain your classifier / filter you shoud: 1) train both of them 2) save them with weka.core.SerializationHelper 3) reload them in your application and make prediction

提交回复
热议问题