class_docstr: An algorithm hyperparameter with optional validation.
  
  Implemented as a python descriptor object.
class_docstr_tok: ["An","algorithm","hyperparameter","with","optional","validation",".","Implemented","as","a","python","descriptor","object","."]
docstr: Validate the supplied value and set this hyperparameter to value
  
  Args:
      obj:
      value:
docstr_tok: ["Validate","the","supplied","value","and","set","this","hyperparameter","to","value","Args",":","obj",":","value",":"]
code: def __set__(self, obj, value):
      """Validate the supplied value and set this hyperparameter to value
  
      Args:
          obj:
          value:
      """
      value = None if value is None else self.data_type(value)
      self.validate(value)
      if "_hyperparameters" not in dir(obj):
          obj._hyperparameters = dict()
      obj._hyperparameters[self.name] = value
  
file_path: sagemaker-python-sdk/src/sagemaker/amazon/hyperparameter.py
imports: from __future__ import absolute_import
  import json
  from sagemaker.workflow import is_pipeline_variable
label_desc: Use image node_id 4 for calling the Hyperparameter obj's underlying member method code with example usage: obj.__set__(obj, value) without return types