Skip to content

Commit

Permalink
Merge branch 'fix-integration' of https://github.com/aimclub/Fedot.In…
Browse files Browse the repository at this point in the history
…dustrial into fix-integration
  • Loading branch information
leostre committed Jul 30, 2024
2 parents 99b1044 + 55c88bb commit 134c230
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: poetry install

- name: Bump up FEDOT to a stable revision (temporary)
run: poetry add git+https://github.com/aimclub/FEDOT.git@master
run: poetry add git+https://github.com/aimclub/FEDOT.git@e0b4ee7
- name: Run tests with pytest
run: poetry run pytest --cov=fedot_ind -s tests/integration

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/poetry_unit_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: poetry install

- name: Bump up FEDOT to a stable revision (temporary)
run: poetry add git+https://github.com/aimclub/FEDOT.git@master
run: poetry add git+https://github.com/aimclub/FEDOT.git@e0b4ee7

- name: Run tests with pytest
run: poetry run pytest --cov=fedot_ind --cov-report xml:coverage.xml tests/unit
Expand Down
1 change: 0 additions & 1 deletion tests/integration/integration_test_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
from fedot_ind.tools.loader import DataLoader
from fedot_ind.api.main import FedotIndustrial

from fedot.core.pipelines.pipeline_builder import PipelineBuilder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'multivariate': 'Epilepsy'
}


@pytest.mark.parametrize('type_', ['univariate', 'multivariate'])
def test_basic_clf_test(type_):
probs = basic_launch(TASK, *data(DATASETS[type_]))[1]
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/ts_forecast/test_forecast_advanced.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,15 +56,15 @@ def test_forecasting_exogenous():
api_config = dict(problem=TASK,
metric='rmse',
timeout=0.05,
task_params={'forecast_length': FORECAST_LENGTH, 'data_type': 'time_series',
task_params={'forecast_length': FORECAST_LENGTH, 'data_type': 'time_series',
'supplementary_data': {'feature_name': exog_var}},
n_jobs=-1,
industrial_strategy='forecasting_exogenous',
initial_assumption=INITIAL_ASSUMPTIONS[assumption],
industrial_strategy_params={'exog_variable': exog_ts, 'data_type': 'time_series',
'supplementary_data': {'feature_name': exog_var}},
logging_level=0)

industrial = FedotIndustrial(**api_config)
industrial.fit(input_data)
assert not np.isnan(industrial.predict(input_data)).any()
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@
'multivariate': 'EthereumSentiment'
}
STRATEGIES = [
'kernel_automl',
'kernel_automl',
'federated_automl'
]


@pytest.mark.parametrize('type_,strategy', list((product(DATASETS.keys(), STRATEGIES))))
def test_regr_advanced(type_, strategy):
launch_api(TASK, strategy, DATASETS[type_])


Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
'multivariate': 'EthereumSentiment'
}


@pytest.mark.parametrize('type_', ['univariate', 'multivariate'])
def test_basic_reg_test(type_):
train_data, test_data = data(DATASETS[type_])
Expand Down

0 comments on commit 134c230

Please sign in to comment.