class_docstr: Cap parameter range(s) to given values. Expects a configuration of form
  { parameter_name -> new_upper_range_value }.
  
  This transform only transforms the search space.
class_docstr_tok: ["Cap","parameter","range","(","s",")","to","given","values",".","Expects","a","configuration","of","form","{","parameter_name","-",">","new_upper_range_value","}",".","This","transform","only","transforms","the","search","space","."]
code: def __init__(
      self,
      search_space: Optional[SearchSpace] = None,
      observations: Optional[List[Observation]] = None,
      modelbridge: Optional[
          "modelbridge_module.base.ModelBridge"
      ] = None,
      config: Optional[TConfig] = None,
  ) -> None:
      # pyre-fixme[4]: Attribute must be annotated.
      self.config = config or {}
      assert (
          search_space is not None
      ), "CapParameter requires search space"
      # pyre-fixme[4]: Attribute must be annotated.
      self.transform_parameters = (
          {  # Only transform parameters in config.
              p_name
              for p_name in search_space.parameters
              if p_name in self.config
          }
      )
  
file_path: Ax/ax/modelbridge/transforms/cap_parameter.py
imports: from typing import List, Optional, TYPE_CHECKING
  from ax.core.observation import Observation
  from ax.core.parameter import RangeParameter
  from ax.core.search_space import SearchSpace
  from ax.modelbridge.transforms.base import Transform
  from ax.models.types import TConfig
  from ax.utils.common.typeutils import checked_cast
label_desc: Use image node_id 1 to create a new CapParameter object from inherited base classes: Transform with example: obj = CapParameter(search_space, observations, modelbridge, config)