Skip to content

Commit

Permalink
Update tsa.py
Browse files Browse the repository at this point in the history
  • Loading branch information
oualib committed Nov 8, 2023
1 parent 214602d commit 174e7f4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion verticapy/machine_learning/vertica/tsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ def predict(
vDataFrame
a new object.
"""
ar_ma = False
if self._model_type in (
"AR",
"MA",
Expand All @@ -480,6 +481,7 @@ def predict(
ts = self.ts
if isinstance(y, NoneType):
y = self.y
ar_ma = True
if isinstance(start, (int, float)):
start_predict = int(start + 1)
else:
Expand All @@ -505,7 +507,7 @@ def predict(
j = j + start
elif not (isinstance(start, NoneType)):
j = start
if (output_standard_errors or output_estimated_ts):
if (output_standard_errors or output_estimated_ts) and not (ar_ma):
if not (output_standard_errors):
stde_out = ""
else:
Expand Down

0 comments on commit 174e7f4

Please sign in to comment.