Skip to content

Commit d155fb4

Browse files
Improve AttributeError message in PredictionAlgorithmSettings.strategy setter
Co-authored-by: Adrien Lavoillotte <adrien.lavoillotte@dataiku.com>
1 parent 57710fc commit d155fb4

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dataikuapi/dss/ml.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -974,9 +974,9 @@ def strategy(self):
974974

975975
@strategy.setter
976976
def strategy(self, _):
977-
raise AttributeError("The strategy must be set at the MLTask level.\n"
978-
"To update the search strategy, please use the setter of the HyperparameterSearchSettings "
979-
"object obtained with DSSPredictionMLTaskSettings.get_hyperparameter_search_settings method")
977+
raise AttributeError("The strategy must be set at the MLTask settings level.\n"
978+
"To update the search strategy, use <HyperparameterSearchSettings object>.strategy = ..., "
979+
"obtained with <DSSPredictionMLTaskSettings object>.get_hyperparameter_search_settings()")
980980

981981
class RandomForestSettings(PredictionAlgorithmSettings):
982982

0 commit comments

Comments
 (0)