-
Notifications
You must be signed in to change notification settings - Fork 86
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
Conversation
test/unit/pipelines/test_pipeline.py
Outdated
@@ -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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfit перед повторными fit не нужен
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unfit перед повторными fit не нужен
Убрал
c765a31
to
8fefc5a
Compare
Fixed occasional test error when computational time of pipeline with higher time constraint was lower than computational time with less time constraint
8fefc5a
to
13793c2
Compare
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
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