Skip to content

Commit

Permalink
migrate core processing to utilsforecast (#656)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoralez authored Nov 13, 2023
1 parent 5cef382 commit 34b0d79
Show file tree
Hide file tree
Showing 11 changed files with 580 additions and 1,226 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Clone repo
uses: actions/checkout@v3
Expand All @@ -70,7 +70,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
python-version: [3.7, 3.8, 3.9, '3.10', '3.11']
python-version: ['3.8', '3.9', '3.10', '3.11']
steps:
- name: Clone repo
uses: actions/checkout@v3
Expand All @@ -83,7 +83,7 @@ jobs:
cache-environment: true

- name: Install pip requirements
run: pip install ./
run: pip install ./

- name: Run tests
run: nbdev_test --skip_file_re '(distributed).*.ipynb' --pause 1.0
Expand Down
4 changes: 2 additions & 2 deletions action_files/test_fit_predict.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

def get_data():
df2 = df.copy(deep=True)
df2['unique_id'] = 'AirPassengers2'
df2['unique_id'] = 2.0
df2['y'] *= 2
return pd.concat([df, df2])

Expand Down Expand Up @@ -47,4 +47,4 @@ def test_fit_predict(n_jobs):
df_fcst = sf.forecast(df=AirPassengersPanel[['unique_id', 'ds', 'y']], h=7)
sf.fit(df=AirPassengersPanel[['unique_id', 'ds', 'y']])
df_predict = sf.predict(h=7)
pd.testing.assert_frame_equal(df_fcst, df_predict)
pd.testing.assert_frame_equal(df_fcst, df_predict)
2 changes: 1 addition & 1 deletion dev/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ dependencies:
- statsmodels>=0.13.2
- tabulate
- plotly
- utilsforecast>=0.0.5
- pip:
- fugue[dask,ray]
- nbdev
- plotly-resampler
- polars
- supersmoother
- tqdm
- utilsforecast>=0.0.14
2 changes: 1 addition & 1 deletion dev/local_environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ dependencies:
- statsmodels>=0.13.2
- tabulate
- plotly
- utilsforecast>=0.0.5
- pip:
- nbdev
- plotly-resampler
- polars
- supersmoother
- tqdm
- utilsforecast>=0.0.14
Loading

0 comments on commit 34b0d79

Please sign in to comment.