Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix test_pipeline_fit_time_constraint #633

Merged
merged 1 commit into from
Apr 11, 2022

Conversation

andreygetmanov
Copy link
Collaborator

@andreygetmanov andreygetmanov commented Apr 11, 2022

Fixed occasional test error when computational time of pipeline with higher time constraint was lower than computational time with less time constraint
Time constraint affects fit time, but fit time also fluctuates because of internal hardware reasons. The dispersion of this fluctuation seems to be constant. Therefore, if fit process is optimized, the fit time of both time constraint values in test is reduced, but dispersion remains the same. This raises the probability of dispersions' overlay and, hence, the test fail. Change of timeouts to 1 and 5 seconds provides stable work of test

@andreygetmanov andreygetmanov self-assigned this Apr 11, 2022
@@ -391,7 +391,7 @@ def test_pipeline_fit_time_constraint(data_fixture, request):
computation_time_first = test_pipeline_first.computation_time
assert type(received_ex) is TimeoutError
comp_time_proc_with_first_constraint = (time.time() - process_start_time)
time_constraint = datetime.timedelta(seconds=2)
time_constraint = datetime.timedelta(seconds=3)
test_pipeline_first.unfit(unfit_preprocessor=True)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfit перед повторными fit не нужен

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unfit перед повторными fit не нужен

Убрал

@andreygetmanov andreygetmanov force-pushed the fix_test_pipeline_fit_time_constraint branch from c765a31 to 8fefc5a Compare April 11, 2022 18:07
Fixed occasional test error when computational time of pipeline with higher time constraint was lower than computational time with less time constraint
@andreygetmanov andreygetmanov force-pushed the fix_test_pipeline_fit_time_constraint branch from 8fefc5a to 13793c2 Compare April 11, 2022 18:11
@codecov
Copy link

codecov bot commented Apr 11, 2022

Codecov Report

Merging #633 (13793c2) into master (2209d02) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #633      +/-   ##
==========================================
- Coverage   86.58%   86.55%   -0.03%     
==========================================
  Files         153      153              
  Lines       11246    11246              
==========================================
- Hits         9737     9734       -3     
- Misses       1509     1512       +3     
Impacted Files Coverage Δ
fedot/core/validation/compose/time_series.py 86.36% <0.00%> (-13.64%) ⬇️
fedot/core/composer/gp_composer/gp_composer.py 85.83% <0.00%> (-2.50%) ⬇️
fedot/core/optimisers/gp_comp/evaluating.py 68.25% <0.00%> (-1.59%) ⬇️
...edot/core/optimisers/gp_comp/operators/mutation.py 93.95% <0.00%> (-0.47%) ⬇️
...lementations/data_operations/ts_transformations.py 73.85% <0.00%> (+0.25%) ⬆️
fedot/core/pipelines/pipeline.py 97.28% <0.00%> (+2.17%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 2209d02...13793c2. Read the comment docs.

@andreygetmanov andreygetmanov merged commit 96eb8a9 into master Apr 11, 2022
@andreygetmanov andreygetmanov deleted the fix_test_pipeline_fit_time_constraint branch April 13, 2022 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants