Skip to content

Commit 5f7b1f0

Browse files
authored
Fix ETS refit params (Issue #78). (#79)
* Fix ETS refit params (Issue #78). * Add apt-get update to CI.
1 parent adb73c1 commit 5f7b1f0

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ jobs:
2323
python-version: '3.9'
2424
- name: Install dependencies
2525
run: |
26+
sudo apt-get update -y
27+
sudo apt-get install openjdk-11-jre-headless pandoc --fix-missing
2628
python -m pip install --upgrade pip setuptools wheel
27-
sudo apt-get install openjdk-11-jdk
28-
sudo apt-get install pandoc
2929
- name: Build Sphinx docs
3030
run: |
3131
docs/build_docs.sh

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424

2525
- name: Install Merlion
2626
run: |
27+
sudo apt-get update -y
28+
sudo apt-get install bc openjdk-11-jre-headless -y --fix-missing
2729
python -m pip install --upgrade pip setuptools wheel build
2830
python -m pip install pytest coverage
29-
sudo apt-get install bc openjdk-11-jdk
3031
python -m build
3132
for f in dist/*.whl; do pip install $f[all]; done
3233
pip install -e ts_datasets/

merlion/models/forecast/ets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def forecast(
207207
val_prev,
208208
error=self.error,
209209
trend=self.trend,
210-
seasonal=self.seasonal,
210+
seasonal=None if self.seasonal_periods is None else self.seasonal,
211211
damped_trend=self.damped_trend,
212212
seasonal_periods=self.seasonal_periods,
213213
)

0 commit comments

Comments
 (0)