0

I have created a regression model and wanted to update some data using Predicion.update api for machine learning purpose.

The java api doc for update class "setOutput function" is not very clear for me. It says output value as "regression or class label". Does that mean that for regression model, I should call the setOutPut("regression")?.

Also, how can I verify if my update is successful?. Thanks.

Sukumar
  • 1,303
  • 10
  • 15

2 Answers2

0

prediction.trainedmodels.get,check the modelInfo/numberInstances,is the number add 1?

lxc
  • 1
  • 2
0

It should be the output value of your training instance.

for example if you have a movie rating instance like:

Rating Genre Title 10 Crime Godfather

The output should be 10 and the rest should go in the csvInstance.

Javad
  • 11
  • 3