Skip to content

Commit

Permalink
fix: fix AlgorithmEstimator init
Browse files Browse the repository at this point in the history
  • Loading branch information
pitt-liang committed Jul 11, 2024
1 parent e27d1e7 commit 63b8191
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pai/estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -1164,9 +1164,9 @@ def _get_hyperparameters(
if hps_def:
# Get default hyperparameters.
for hp in hps_def:
hp_name = hp.get("Name")
hp_value = hp.get("DefaultValue", "")
hp_type = hp.get("Type", "String")
hp_name = hp.name
hp_value = hp.default_value
hp_type = hp.type or "String"
# For hyperparameters with type INT or FLOAT, if the default value is
# empty, skip it.
if (
Expand Down

0 comments on commit 63b8191

Please sign in to comment.