Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def predict(self, url_params, form_params):
.format(pred_probs, pred_index, prediction, prediction_confidence))

# Total confidence
self._total_confidence_metric.increase(prediction_confidence)
if self._total_confidence_metric:
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Following a discussion with Yakov, we've agreed that trying to run the restful components by using the __name__ == __main__ should not be supported anymore. It leads to potential weird and complicated bugs. Currently we support a standalone mode via mlpiper command line tool.

self._total_confidence_metric.increase(prediction_confidence)

if self._num_predictable_classes:
# Prediction confidence per class
Expand Down