-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FI-60] Unit and Integration tests improvement (#145)
- Loading branch information
1 parent
d5ff39d
commit 7a4843c
Showing
75 changed files
with
1,477 additions
and
1,030 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 11 additions & 6 deletions
17
...automl_example/api_example/advanced_example/specific_strategy/federated_automl_example.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
from fedot_ind.api.main import FedotIndustrial | ||
from fedot_ind.tools.loader import DataLoader | ||
from fedot_ind.tools.synthetic.ts_datasets_generator import TimeSeriesDatasetsGenerator | ||
|
||
dataset_name = 'Lightning7' | ||
metric_names = ('f1', 'accuracy', 'precision', 'roc_auc') | ||
api_config = dict(problem='classification', | ||
metric='f1', | ||
timeout=5, | ||
timeout=0.1, | ||
n_jobs=2, | ||
industrial_strategy='federated_automl', | ||
industrial_strategy_params={}, | ||
logging_level=20) | ||
train_data, test_data = DataLoader(dataset_name).load_data() | ||
|
||
# Huge synthetic dataset for experiment | ||
train_data, test_data = TimeSeriesDatasetsGenerator(num_samples=1800, | ||
task='classification', | ||
max_ts_len=50, | ||
binary=True, | ||
test_size=0.5, | ||
multivariate=False).generate_data() | ||
|
||
industrial = FedotIndustrial(**api_config) | ||
industrial.fit(train_data) | ||
predict = industrial.predict(test_data) | ||
_ = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.