Skip to content

Commit

Permalink
chore: remove federated_automl from strategies test
Browse files Browse the repository at this point in the history
  • Loading branch information
Lopa10ko committed Feb 3, 2025
1 parent c2c3a85 commit e07347d
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions tests/unit/api/utils/test_industrial_strategy.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,13 @@
INDUSTRIAL_PARAMS = get_industrial_params()
DEFAULT_AUTOML_LEARNING_CONFIG['timeout'] = 0.1

CONFIGS = {'federated_automl': {'industrial_config': {'problem': 'classification',
'strategy': 'federated_automl',
'strategy_params': INDUSTRIAL_PARAMS},
'learning_config': DEFAULT_CLF_LEARNING_CONFIG,
'automl_config': DEFAULT_CLF_AUTOML_CONFIG,
'compute_config': DEFAULT_COMPUTE_CONFIG},
CONFIGS = {
# 'federated_automl': {'industrial_config': {'problem': 'classification',
# 'strategy': 'federated_automl',
# 'strategy_params': INDUSTRIAL_PARAMS},
# 'learning_config': DEFAULT_CLF_LEARNING_CONFIG,
# 'automl_config': DEFAULT_CLF_AUTOML_CONFIG,
# 'compute_config': DEFAULT_COMPUTE_CONFIG},

'lora_strategy': {'industrial_config': {'problem': 'classification',
'strategy': 'lora_strategy',
Expand All @@ -42,14 +43,15 @@
# 'compute_config': DEFAULT_COMPUTE_CONFIG},

# 'forecasting_exogenous': {}
}
}


@pytest.mark.parametrize('strategy', STRATEGY)
def test_custom_strategy(strategy):
if strategy in CONFIGS.keys():
cnfg = CONFIGS[strategy]
train_data, test_data = get_data_by_task(cnfg['industrial_config']['problem'])
train_data, test_data = map(lambda x: (x[0].values, x[1]),
get_data_by_task(cnfg['industrial_config']['problem']))
n_samples = train_data[0].shape[0]

industrial = FedotIndustrial(**cnfg)
Expand Down

0 comments on commit e07347d

Please sign in to comment.