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 user-supplied params.
docstr_tok: ["Sets","user-supplied","params","."]
code: def _set(self: P, **kwargs: Any) -> P:
      """
      Sets user-supplied params.
      """
      for param, value in kwargs.items():
          p = getattr(self, param)
          if value is not None:
              try:
                  value = p.typeConverter(value)
              except TypeError as e:
                  raise TypeError(
                      'Invalid param value given for param "%s". %s'
                      % (p.name, e)
                  )
          self._paramMap[p] = value
      return self
  
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 21 for calling the Params obj's underlying member method code with example usage: obj._set() and returns: self