Skip to content

Commit

Permalink
fix: convert operation params to dict, preserve kwargs in industrial …
Browse files Browse the repository at this point in the history
…decorator signature
  • Loading branch information
Lopa10ko committed Jul 17, 2024
1 parent d094221 commit ec7a3de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions fedot_ind/core/architecture/abstraction/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def decorated_func(self, *args, **kwargs):


def use_industrial_fedot_client(func):
def decorated_func(self, *args):
def decorated_func(self, *args, **kwargs):
repo = IndustrialModels()
result = func(self, *args)
result = func(self, *args, **kwargs)
repo.setup_repository()
return result

Expand Down
2 changes: 1 addition & 1 deletion fedot_ind/core/models/automl/fedot_implementation.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def __init__(self, params: Optional[OperationParameters] = None):
super().__init__(params)
if 'available_operations' not in self.params.keys():
self.params.update({'available_operations': self.AVAILABLE_OPERATIONS})
self.model = Fedot(**self.params)
self.model = Fedot(**self.params.to_dict())

def fit(self, input_data: InputData):
self.model.fit(input_data)
Expand Down

0 comments on commit ec7a3de

Please sign in to comment.