Skip to content

Use prediction_domain for all prediction methods#284

Closed
cheesinglee wants to merge 1 commit intobigmlcom:masterfrom
cheesinglee:next
Closed

Use prediction_domain for all prediction methods#284
cheesinglee wants to merge 1 commit intobigmlcom:masterfrom
cheesinglee:next

Conversation

@cheesinglee
Copy link
Copy Markdown
Contributor

Currently, when the api is instantiated with a value for prediction_domain, that value is only used for calls to create_prediction, and not other prediction-like methods such as create_batch_prediction, create_centroid, create_anomaly_score, etc.

This PR changes the handlers for those methods to use the value for prediction_domain.


"""
self.batch_prediction_url = self.url + BATCH_PREDICTION_PATH
self.batch_prediction_url = (self.prediction_base_url +
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I don't think the predict server does batch predictions... does it? @sdesimone ?

@sdesimone
Copy link
Copy Markdown

sdesimone commented Nov 19, 2019 via email

@mmerce
Copy link
Copy Markdown
Member

mmerce commented Nov 19, 2019

Oh, and only batch predictions? no batch anomaly scores, bathc centroids...?

@sdesimone
Copy link
Copy Markdown

sdesimone commented Nov 19, 2019 via email

@mmerce
Copy link
Copy Markdown
Member

mmerce commented Nov 19, 2019

Great, so we should change them too to be able to use this prediction_base_url too

@mmerce
Copy link
Copy Markdown
Member

mmerce commented Nov 19, 2019

I'm closing the PR and adding it to #285 @cheesinglee

@mmerce mmerce closed this Nov 19, 2019
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.

3 participants