Skip to content

Commit

Permalink
Removing redundant if check in IterativeAlgorithm._transform_parameters.
Browse files Browse the repository at this point in the history
  • Loading branch information
freddyaboulton committed Nov 23, 2020
1 parent 73299fe commit 33a3faa
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions evalml/automl/automl_algorithm/iterative_algorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,8 @@ def _transform_parameters(self, pipeline_class, proposed_parameters):
if 'number_features' in init_params:
component_parameters['number_features'] = self.number_features
# Pass the pipeline params to the components that need them
if self._pipeline_params:
for param_name, value in self._pipeline_params.items():
if param_name in init_params:
component_parameters[param_name] = value
for param_name, value in self._pipeline_params.items():
if param_name in init_params:
component_parameters[param_name] = value
parameters[component_class.name] = component_parameters
return parameters

0 comments on commit 33a3faa

Please sign in to comment.