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: Copy all params defined on the class to current object.
docstr_tok: ["Copy","all","params","defined","on","the","class","to","current","object","."]
code: def _copy_params(self) -> None:
      """
      Copy all params defined on the class to current object.
      """
      cls = type(self)
      src_name_attrs = [(x, getattr(cls, x)) for x in dir(cls)]
      src_params = list(
          filter(
              lambda nameAttr: isinstance(nameAttr[1], Param),
              src_name_attrs,
          )
      )
      for name, param in src_params:
          setattr(self, name, param._copy_new_parent(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 2 for calling the Params obj's underlying member method code with example usage: obj._copy_params() without return types