You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am getting below error when trying to predict for single example on binary classifier model.
java.lang.IllegalStateException: Can't invoke predictSingle() because this model outputs multiple values: 0
Below is code :
Predictor predictor = new Predictor(
new java.io.FileInputStream("path-to-model-file"));
// Create feature vector from sparse representation by map
FVec fVecSparse = FVec.Transformer.fromMap(
new java.util.HashMap<Integer, Double>() {{
put(49722683, 0.);
put(123455, 1.);
put(50000001, 1.3979400086720377);
}});
double pred = predictor.predictSingle(fVecSparse);
The text was updated successfully, but these errors were encountered:
I am getting below error when trying to predict for single example on binary classifier model.
java.lang.IllegalStateException: Can't invoke predictSingle() because this model outputs multiple values: 0
Below is code :
Predictor predictor = new Predictor(
new java.io.FileInputStream("path-to-model-file"));
// Create feature vector from sparse representation by map
FVec fVecSparse = FVec.Transformer.fromMap(
new java.util.HashMap<Integer, Double>() {{
put(49722683, 0.);
put(123455, 1.);
put(50000001, 1.3979400086720377);
The text was updated successfully, but these errors were encountered: