From 3c0941205567254b09c5fa564695d2f22bf7b79d Mon Sep 17 00:00:00 2001 From: nirupa-kumar Date: Tue, 24 Jul 2018 09:25:40 -0700 Subject: [PATCH] Updates after review comments --- .../com/google/cloud/vision/samples/automl/PredictionApi.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vision/automl/src/main/java/com/google/cloud/vision/samples/automl/PredictionApi.java b/vision/automl/src/main/java/com/google/cloud/vision/samples/automl/PredictionApi.java index a76c3f40caf..6a6a2b50460 100644 --- a/vision/automl/src/main/java/com/google/cloud/vision/samples/automl/PredictionApi.java +++ b/vision/automl/src/main/java/com/google/cloud/vision/samples/automl/PredictionApi.java @@ -89,7 +89,7 @@ public static void predict( // Additional parameters that can be provided for prediction e.g. Score Threshold Map params = new HashMap<>(); if (scoreThreshold != null) { - params.put("scoreThreshold", scoreThreshold); + params.put("score_threshold", scoreThreshold); } // Perform the AutoML Prediction request PredictResponse response = predictionClient.predict(name, examplePayload, params);