Skip to content

Commit

Permalink
Fix 2
Browse files Browse the repository at this point in the history
  • Loading branch information
nicl-nno committed Jul 2, 2024
1 parent df022e3 commit 930976e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion fedot/api/time.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ def launch_assumption_fit(self, n_folds: int):
starting_time_for_assumption_fit = datetime.datetime.now()
yield
self.assumption_fit_spend_time_single_fold = \
(datetime.datetime.now() - starting_time_for_assumption_fit) * n_folds
(datetime.datetime.now() - starting_time_for_assumption_fit)
if n_folds is None:
n_folds = 1
self.assumption_fit_spend_time = self.assumption_fit_spend_time_single_fold * n_folds

def determine_resources_for_tuning(self):
Expand Down
2 changes: 1 addition & 1 deletion test/unit/optimizer/test_external.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_external_static_optimizer(data_fixture, request):
preset='fast_train',
with_tuning=False,
optimizer=partial(StaticOptimizer, node_name='logit'),
pop_size=2)
pop_size=2, cv_folds=None)
obtained_pipeline = automl.fit(train_data)
automl.predict(test_data)

Expand Down

0 comments on commit 930976e

Please sign in to comment.