Skip to content

Commit

Permalink
fix: new black version
Browse files Browse the repository at this point in the history
omg this is horrible
  • Loading branch information
AzulGarza committed Mar 22, 2024
1 parent 0aa6eb7 commit 0568e04
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions nixtlats/distributed/timegpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def _cotransform(

# %% ../../nbs/distributed.timegpt.ipynb 4
class _DistributedTimeGPT:

def __init__(
self,
token: Optional[str] = None,
Expand Down
10 changes: 7 additions & 3 deletions nixtlats/timegpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@

# %% ../nbs/timegpt.ipynb 6
class _TimeGPTModel:

def __init__(
self,
client: Nixtla,
Expand Down Expand Up @@ -581,9 +582,11 @@ def detect_anomalies(self, df: pd.DataFrame):
y=y,
x=x,
freq=self.freq,
level=[self.level]
if (isinstance(self.level, int) or isinstance(self.level, float))
else [self.level[0]],
level=(
[self.level]
if (isinstance(self.level, int) or isinstance(self.level, float))
else [self.level[0]]
),
clean_ex_first=self.clean_ex_first,
model=self.model,
),
Expand Down Expand Up @@ -1030,6 +1033,7 @@ def plot(

# %% ../nbs/timegpt.ipynb 11
class TimeGPT(_TimeGPT):

def _instantiate_distributed_timegpt(self):
from nixtlats.distributed.timegpt import _DistributedTimeGPT

Expand Down

0 comments on commit 0568e04

Please sign in to comment.