-
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.
- Loading branch information
v1docq
committed
Apr 16, 2024
1 parent
fc49e56
commit 79f75bb
Showing
10 changed files
with
108 additions
and
80 deletions.
There are no files selected for viewing
54 changes: 0 additions & 54 deletions
54
examples/automl_example/api_example/advanced_example/explainability/advanced_example.py
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
...example/api_example/advanced_example/explainability/optimisation_history_visualisation.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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
from fedot_ind.api.utils.path_lib import PROJECT_PATH | ||
from fedot_ind.tools.example_utils import industrial_common_modelling_loop | ||
|
||
if __name__ == "__main__": | ||
return_history = True | ||
opt_hist = PROJECT_PATH + '/examples/data/forecasting/D1679_opt_history/' | ||
dataset_name = 'Lightning7' | ||
finetune = False | ||
metric_names = ('f1', 'accuracy', 'precision', 'roc_auc') | ||
api_config = dict(problem='classification', | ||
metric='f1', | ||
timeout=5, | ||
pop_size=10, | ||
with_tuning=False, | ||
n_jobs=2, | ||
logging_level=10) | ||
|
||
industrial, labels, metrics = industrial_common_modelling_loop(api_config=api_config, | ||
dataset_name=dataset_name, | ||
finetune=finetune) | ||
if return_history: | ||
opt_hist = industrial.save_optimization_history(return_history=True) | ||
else: | ||
# tutorial sample of opt history | ||
opt_hist = PROJECT_PATH + '/examples/data/forecasting/D1679_opt_history/' | ||
opt_hist = industrial.vis_optimisation_history(opt_history_path=opt_hist, return_history=True) | ||
|
17 changes: 17 additions & 0 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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from fedot_ind.api.main import FedotIndustrial | ||
from fedot_ind.tools.loader import DataLoader | ||
|
||
dataset_name = 'Lightning7' | ||
metric_names = ('f1', 'accuracy', 'precision', 'roc_auc') | ||
api_config = dict(problem='classification', | ||
metric='f1', | ||
timeout=5, | ||
n_jobs=2, | ||
industrial_strategy='federated_automl', | ||
industrial_strategy_params={}, | ||
logging_level=20) | ||
train_data, test_data = DataLoader(dataset_name).load_data() | ||
industrial = FedotIndustrial(**api_config) | ||
industrial.fit(train_data) | ||
predict = industrial.predict(test_data) | ||
_ = 1 |
17 changes: 17 additions & 0 deletions
17
...ml_example/api_example/advanced_example/specific_strategy/forecasting_strategy_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 |
---|---|---|
@@ -0,0 +1,17 @@ | ||
from fedot_ind.api.main import FedotIndustrial | ||
from fedot_ind.tools.loader import DataLoader | ||
|
||
dataset_name = 'Lightning7' | ||
metric_names = ('f1', 'accuracy', 'precision', 'roc_auc') | ||
api_config = dict(problem='ts_forecasting', | ||
metric='rmse', | ||
timeout=15, | ||
with_tuning=False, | ||
industrial_strategy='forecasting_assumptions', | ||
industrial_strategy_params={}, | ||
logging_level=20) | ||
train_data, test_data = DataLoader(dataset_name).load_data() | ||
industrial = FedotIndustrial(**api_config) | ||
industrial.fit(train_data) | ||
predict = industrial.predict(test_data) | ||
_ = 1 |
File renamed without changes.
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