Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
returns empty list when prediction interval not present
Browse files Browse the repository at this point in the history
  • Loading branch information
jih147 committed May 13, 2023
1 parent 5d552eb commit 67131f2
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,8 @@ private void fillWithPredictionInterval(
predictionInterval.setRows(getPredictionIntervalRows(mojoFrame, targetIdx));
scoreResponse.setPredictionIntervals(predictionInterval);
} else {
scoreResponse.setPredictionIntervals(new PredictionInterval());
scoreResponse.setPredictionIntervals(
new PredictionInterval().fields(new Row()).rows(Collections.emptyList()));
}
}
}
Expand Down

0 comments on commit 67131f2

Please sign in to comment.