Skip to content

Add zero check for a value#69

Open
yakov-g wants to merge 1 commit intomasterfrom
yakov/fix_sklearn_restful
Open

Add zero check for a value#69
yakov-g wants to merge 1 commit intomasterfrom
yakov/fix_sklearn_restful

Conversation

@yakov-g
Copy link
Copy Markdown

@yakov-g yakov-g commented Jun 17, 2019

When running sklearn restful serving as standalone component
_total_confidence_metric is None object, as it is not configured with
the configure() which is called from deputy.

When running sklearn restful serving as standalone component
_total_confidence_metric is None object, as it is not configured with
the configure() which is called from deputy.

# 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants