class_docstr: Components that take parameters. This also provides an internal
  param map to store parameter values attached to the instance.
  
  .. versionadded:: 1.3.0
docstr: Sets a parameter in the embedded param map.
docstr_tok: ["Sets","a","parameter","in","the","embedded","param","map","."]
code: def set(self, param: Param, value: Any) -> None:
      """
      Sets a parameter in the embedded param map.
      """
      self._shouldOwn(param)
      try:
          value = param.typeConverter(value)
      except ValueError as e:
          raise ValueError(
              'Invalid param value given for param "%s". %s'
              % (param.name, e)
          )
      self._paramMap[param] = value
  
imports: import array
  from abc import ABCMeta
  import copy
  from typing import Any, Callable, Generic, List, Optional, overload, TypeVar, Union, TYPE_CHECKING
  import numpy
  from py4j.java_gateway import JavaObject
  from pyspark.ml.linalg import DenseVector, Vector, Matrix
  from pyspark.ml.util import Identifiable
label_desc: Use image node_id 16 for calling the Params obj's underlying member method code with example usage: obj.set(param, value) without return types