diff --git a/bigml/anomalyscorehandler.py b/bigml/anomalyscorehandler.py index 57167b0c..3101d4c0 100644 --- a/bigml/anomalyscorehandler.py +++ b/bigml/anomalyscorehandler.py @@ -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): diff --git a/bigml/batchpredictionhandler.py b/bigml/batchpredictionhandler.py index ccd7e427..4bae407e 100644 --- a/bigml/batchpredictionhandler.py +++ b/bigml/batchpredictionhandler.py @@ -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 + + BATCH_PREDICTION_PATH) def create_batch_prediction(self, model, dataset, args=None, wait_time=3, retries=10): diff --git a/bigml/bigmlconnection.py b/bigml/bigmlconnection.py index 12cb6ae9..c9a98528 100644 --- a/bigml/bigmlconnection.py +++ b/bigml/bigmlconnection.py @@ -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) @@ -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) diff --git a/bigml/centroidhandler.py b/bigml/centroidhandler.py index 2ea78bc6..84eb4327 100644 --- a/bigml/centroidhandler.py +++ b/bigml/centroidhandler.py @@ -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): diff --git a/bigml/forecasthandler.py b/bigml/forecasthandler.py index 5b755159..a999e8ea 100644 --- a/bigml/forecasthandler.py +++ b/bigml/forecasthandler.py @@ -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): diff --git a/bigml/predictionhandler.py b/bigml/predictionhandler.py index 28e72cb0..cb9bfdd9 100644 --- a/bigml/predictionhandler.py +++ b/bigml/predictionhandler.py @@ -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): diff --git a/bigml/projectionhandler.py b/bigml/projectionhandler.py index 278047c2..c11710de 100644 --- a/bigml/projectionhandler.py +++ b/bigml/projectionhandler.py @@ -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):