Skip to content

Commit

Permalink
Merge pull request #1202 from mindsdb/fix/1040
Browse files Browse the repository at this point in the history
[fix] Check horizon in SkTime mixer
  • Loading branch information
paxcema authored Jan 22, 2024
2 parents 5409551 + bf440f6 commit b3515c8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lightwood/mixer/sktime.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,9 @@ def __init__(
:param use_stl: Whether to use de-trenders and de-seasonalizers fitted in the timeseries analysis phase.
""" # noqa
super().__init__(stop_after)

assert ts_analysis['tss'].horizon > 1, log.error("Horizon must be greater than 1 when using the SkTime Mixer!")

self.stable = False
self.prepared = False
self.supports_proba = False
Expand Down

0 comments on commit b3515c8

Please sign in to comment.