diff --git a/src/phoenix/datasets/fixtures.py b/src/phoenix/datasets/fixtures.py index bbfec448bb..898d54305b 100644 --- a/src/phoenix/datasets/fixtures.py +++ b/src/phoenix/datasets/fixtures.py @@ -21,7 +21,7 @@ class Fixture: reference_schema: Schema -FIXTURE_URL_PREFIX = "https://storage.googleapis.com/arize-assets/phoenix/datasets/" +FIXTURE_URL_PREFIX = "http://storage.googleapis.com/arize-assets/phoenix/datasets/" sentiment_classification_language_drift_schema = Schema( timestamp_column_name="prediction_ts", diff --git a/src/phoenix/metrics/metrics.py b/src/phoenix/metrics/metrics.py index 192cd8a623..440fd4976a 100644 --- a/src/phoenix/metrics/metrics.py +++ b/src/phoenix/metrics/metrics.py @@ -59,7 +59,7 @@ class Mean(UnaryOperator, BaseMetric): def calc(self, dataframe: pd.DataFrame) -> float: data = self.get_operand_column(dataframe) numeric_data = pd.to_numeric(data, errors="coerce") - return numeric_data.mean() + return cast(float, numeric_data.mean()) @dataclass @@ -100,7 +100,7 @@ def calc(self, dataframe: pd.DataFrame) -> float: class PercentEmpty(UnaryOperator, BaseMetric): def calc(self, dataframe: pd.DataFrame) -> float: data = self.get_operand_column(dataframe) - return data.isna().mean() * 100 + return cast(float, data.isna().mean() * 100) @dataclass diff --git a/tutorials/credit_card_fraud_tutorial.ipynb b/tutorials/credit_card_fraud_tutorial.ipynb index 01b1fcd88e..899844eb89 100644 --- a/tutorials/credit_card_fraud_tutorial.ipynb +++ b/tutorials/credit_card_fraud_tutorial.ipynb @@ -62,10 +62,10 @@ "outputs": [], "source": [ "train_df = pd.read_parquet(\n", - " \"https://storage.googleapis.com/arize-assets/phoenix/datasets/structured/credit-card-fraud/credit_card_fraud_train.parquet\",\n", + " \"http://storage.googleapis.com/arize-assets/phoenix/datasets/structured/credit-card-fraud/credit_card_fraud_train.parquet\",\n", ")\n", "prod_df = pd.read_parquet(\n", - " \"https://storage.googleapis.com/arize-assets/phoenix/datasets/structured/credit-card-fraud/credit_card_fraud_production.parquet\",\n", + " \"http://storage.googleapis.com/arize-assets/phoenix/datasets/structured/credit-card-fraud/credit_card_fraud_production.parquet\",\n", ")\n", "train_df.head()" ] diff --git a/tutorials/image_classification_tutorial.ipynb b/tutorials/image_classification_tutorial.ipynb index 7feae26a74..c464fd3d16 100644 --- a/tutorials/image_classification_tutorial.ipynb +++ b/tutorials/image_classification_tutorial.ipynb @@ -78,10 +78,10 @@ "outputs": [], "source": [ "train_df = pd.read_parquet(\n", - " \"https://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_training.parquet\"\n", + " \"http://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_training.parquet\"\n", ")\n", "prod_df = pd.read_parquet(\n", - " \"https://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_production.parquet\"\n", + " \"http://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_production.parquet\"\n", ")" ] }, diff --git a/tutorials/quickstart.ipynb b/tutorials/quickstart.ipynb index b81847cd2f..56b6768bde 100644 --- a/tutorials/quickstart.ipynb +++ b/tutorials/quickstart.ipynb @@ -68,10 +68,10 @@ "outputs": [], "source": [ "train_df = pd.read_parquet(\n", - " \"https://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_training.parquet\"\n", + " \"http://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_training.parquet\"\n", ")\n", "prod_df = pd.read_parquet(\n", - " \"https://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_production.parquet\"\n", + " \"http://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/cv/human-actions/human_actions_production.parquet\"\n", ")" ] }, diff --git a/tutorials/sentiment_classification_tutorial.ipynb b/tutorials/sentiment_classification_tutorial.ipynb index af7ffbc827..ccb1a16843 100644 --- a/tutorials/sentiment_classification_tutorial.ipynb +++ b/tutorials/sentiment_classification_tutorial.ipynb @@ -67,10 +67,10 @@ "outputs": [], "source": [ "train_df = pd.read_parquet(\n", - " \"https://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/nlp/sentiment-classification-language-drift/sentiment_classification_language_drift_training.parquet\",\n", + " \"http://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/nlp/sentiment-classification-language-drift/sentiment_classification_language_drift_training.parquet\",\n", ")\n", "prod_df = pd.read_parquet(\n", - " \"https://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/nlp/sentiment-classification-language-drift/sentiment_classification_language_drift_production.parquet\",\n", + " \"http://storage.googleapis.com/arize-assets/phoenix/datasets/unstructured/nlp/sentiment-classification-language-drift/sentiment_classification_language_drift_production.parquet\",\n", ")" ] },