-
Notifications
You must be signed in to change notification settings - Fork 288
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into python_3_11
- Loading branch information
Showing
33 changed files
with
57,857 additions
and
40,258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ docs/_site | |
build | ||
dist | ||
.vscode | ||
.idea | ||
*.gif | ||
*.csv | ||
*/data/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,24 @@ | ||
import dask.dataframe as dd | ||
import pytest | ||
|
||
from statsforecast.utils import generate_series | ||
from .utils import pipeline | ||
from .utils import pipeline, pipeline_with_level | ||
|
||
def test_dask_flow(): | ||
n_series = 2 | ||
horizon = 7 | ||
@pytest.fixture() | ||
def n_series(): | ||
return 2 | ||
|
||
@pytest.fixture() | ||
def sample_data(n_series): | ||
series = generate_series(n_series).reset_index() | ||
series['unique_id'] = series['unique_id'].astype(str) | ||
series = dd.from_pandas(series, npartitions=2) | ||
pipeline(series, n_series, horizon) | ||
return series | ||
|
||
def test_dask_flow(sample_data, n_series): | ||
horizon = 7 | ||
pipeline(sample_data, n_series, horizon) | ||
|
||
def test_dask_flow_with_level(sample_data, n_series): | ||
horizon = 7 | ||
pipeline_with_level(sample_data, n_series, horizon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
import pytest | ||
import ray | ||
|
||
from statsforecast.utils import generate_series | ||
from .utils import pipeline | ||
from .utils import pipeline, pipeline_with_level | ||
|
||
def test_ray_flow(): | ||
n_series = 2 | ||
horizon = 7 | ||
@pytest.fixture() | ||
def n_series(): | ||
return 2 | ||
|
||
@pytest.fixture() | ||
def sample_data(n_series): | ||
series = generate_series(n_series).reset_index() | ||
series['unique_id'] = series['unique_id'].astype(str) | ||
ctx = ray.data.context.DatasetContext.get_current() | ||
ctx.use_streaming_executor = False | ||
series = ray.data.from_pandas(series).repartition(2) | ||
pipeline(series, n_series, horizon) | ||
return series | ||
|
||
def test_ray_flow(sample_data, n_series): | ||
horizon = 7 | ||
pipeline(sample_data, n_series, horizon) | ||
|
||
def test_ray_flow_with_level(sample_data, n_series): | ||
horizon = 7 | ||
pipeline_with_level(sample_data, n_series, horizon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,26 @@ | ||
import pytest | ||
from pyspark.sql import SparkSession | ||
|
||
from statsforecast.utils import generate_series | ||
from .utils import pipeline | ||
from .utils import pipeline, pipeline_with_level | ||
|
||
def test_spark_flow(): | ||
@pytest.fixture() | ||
def n_series(): | ||
return 2 | ||
|
||
@pytest.fixture() | ||
def sample_data(n_series): | ||
n_series = 2 | ||
horizon = 7 | ||
series = generate_series(n_series).reset_index() | ||
series['unique_id'] = series['unique_id'].astype(str) | ||
spark = SparkSession.builder.getOrCreate() | ||
series = spark.createDataFrame(series).repartition(2, 'unique_id') | ||
pipeline(series, n_series, horizon) | ||
return series | ||
|
||
def test_spark_flow(sample_data, n_series): | ||
horizon = 7 | ||
pipeline(sample_data, n_series, horizon) | ||
|
||
def test_spark_flow_with_level(sample_data, n_series): | ||
horizon = 7 | ||
pipeline_with_level(sample_data, n_series, horizon) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
/.quarto/ | ||
|
||
lightning_logs/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.