Skip to content

Commit

Permalink
chore: remove match statement to support python3.9 test run
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopa10ko committed Feb 4, 2025
1 parent a57fb7a commit 8363117
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,12 @@ def test_fedot_automl_strategy_fit_predict(task):
data_type=DataTypesEnum.table)

params = OperationParameters(problem=task, timeout=0.1, n_jobs=1)
match task:
case 'classification':
strategy = FedotAutoMLClassificationStrategy(operation_type='fedot_cls', params=params)
case 'regression':
strategy = FedotAutoMLRegressionStrategy(operation_type='fedot_regr', params=params)
case _:
return
if task == 'classification':
strategy = FedotAutoMLClassificationStrategy(operation_type='fedot_cls', params=params)
elif task == 'regression':
strategy = FedotAutoMLRegressionStrategy(operation_type='fedot_regr', params=params)
else:
return

trained_operation = strategy.fit(input_data)

Expand Down

0 comments on commit 8363117

Please sign in to comment.