Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion bigml/anomalyscorehandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(self):
instantiated independently.

"""
self.anomaly_score_url = self.url + ANOMALY_SCORE_PATH
self.anomaly_score_url = self.prediction_base_url + ANOMALY_SCORE_PATH

def create_anomaly_score(self, anomaly, input_data=None,
args=None, wait_time=3, retries=10):
Expand Down
3 changes: 2 additions & 1 deletion bigml/batchpredictionhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def __init__(self):
instantiated independently.

"""
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 ?

BATCH_PREDICTION_PATH)

def create_batch_prediction(self, model, dataset,
args=None, wait_time=3, retries=10):
Expand Down
4 changes: 2 additions & 2 deletions bigml/bigmlconnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ def __init__(self, username=None, api_key=None, dev_mode=False,
self.verify = None
self.verify_prediction = None
self.url = None
self.prediction_url = None
self.prediction_base_url = None

self._set_api_urls(domain=domain)

Expand Down Expand Up @@ -276,7 +276,7 @@ def _set_api_urls(self, dev_mode=False, domain=None):
self.verify = domain.verify
self.verify_prediction = domain.verify_prediction
self.url = BIGML_URL % (BIGML_PROTOCOL, self.general_domain)
self.prediction_url = BIGML_URL % (
self.prediction_base_url = BIGML_URL % (
self.prediction_protocol, self.prediction_domain)


Expand Down
2 changes: 1 addition & 1 deletion bigml/centroidhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self):
instantiated independently.

"""
self.centroid_url = self.url + CENTROID_PATH
self.centroid_url = self.prediction_base_url + CENTROID_PATH

def create_centroid(self, cluster, input_data=None,
args=None, wait_time=3, retries=10):
Expand Down
2 changes: 1 addition & 1 deletion bigml/forecasthandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def __init__(self):
instantiated independently.

"""
self.forecast_url = self.url + FORECAST_PATH
self.forecast_url = self.prediction_base_url + FORECAST_PATH

def create_forecast(self, time_series, input_data=None,
args=None, wait_time=3, retries=10):
Expand Down
2 changes: 1 addition & 1 deletion bigml/predictionhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self):
instantiated independently.

"""
self.prediction_url = self.prediction_url + PREDICTION_PATH
self.prediction_url = self.prediction_base_url + PREDICTION_PATH

def create_prediction(self, model, input_data=None,
args=None, wait_time=3, retries=10):
Expand Down
2 changes: 1 addition & 1 deletion bigml/projectionhandler.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def __init__(self):
instantiated independently.

"""
self.projection_url = self.url + PROJECTION_PATH
self.projection_url = self.prediction_base_url + PROJECTION_PATH

def create_projection(self, pca, input_data=None,
args=None, wait_time=3, retries=10):
Expand Down