Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: change https to http for downloading fixtures and example datasets #589

Merged
merged 3 commits into from
Apr 13, 2023
Merged
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 src/phoenix/datasets/fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/phoenix/metrics/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tutorials/credit_card_fraud_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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()"
]
Expand Down
4 changes: 2 additions & 2 deletions tutorials/image_classification_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
")"
]
},
Expand Down
4 changes: 2 additions & 2 deletions tutorials/quickstart.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
")"
]
},
Expand Down
4 changes: 2 additions & 2 deletions tutorials/sentiment_classification_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
")"
]
},
Expand Down