Skip to content

Commit

Permalink
test: fix integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
DRMPN committed Aug 26, 2024
1 parent f3fc0ca commit b7466e0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fedot/api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,9 @@ def fit(self,
self.train_data = self.data_processor.fit_transform(self.train_data)

init_asm = self.params.data.get('initial_assumption')
if (predefined_model is None) and init_asm and ("atomized" in init_asm.descriptive_id):
predefined_model = init_asm
if (predefined_model is None):
if isinstance(init_asm, Pipeline) and ("atomized" in init_asm.descriptive_id):
predefined_model = init_asm

with fedot_composer_timer.launch_fitting():
if predefined_model is not None:
Expand Down

0 comments on commit b7466e0

Please sign in to comment.