Skip to content

Commit

Permalink
make black format adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinnglabs committed Jan 12, 2024
1 parent 913830b commit ca11a91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions orbit/diagnostics/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -797,8 +797,8 @@ def residual_diagnostic_plot(
ax=ax[1, 0],
color=palette.OrbitPalette.BLUE.value,
label="residual",
edgecolor= "white",
alpha= 0.5,
edgecolor="white",
alpha=0.5,
facecolor=palette.OrbitPalette.BLUE.value,
)
ax[1, 0].set_title("Residual Distribution")
Expand Down
3 changes: 2 additions & 1 deletion orbit/utils/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import numpy as np
from datetime import datetime


def load_iclaims(end_date="2018-06-24", transform=True):
"""Load iclaims dataset
Expand All @@ -24,7 +25,7 @@ def load_iclaims(end_date="2018-06-24", transform=True):
https://finance.yahoo.com/
"""
url = "https://raw.githubusercontent.com/uber/orbit/master/examples/data/iclaims_example.csv"
df = pd.read_csv(url, parse_dates=["week"],date_format="%m/%d/%y")
df = pd.read_csv(url, parse_dates=["week"], date_format="%m/%d/%y")
df = df[df["week"] <= end_date]

# standardize the regressors by mean; equivalent to subtracting mean after np.log
Expand Down

0 comments on commit ca11a91

Please sign in to comment.