Toggle Menu
Prev Up Next

scikit-learn 1.3.2
Other versions

Please cite us if you use the software.

# `sklearn.exceptions`.DataDimensionalityWarning

class sklearn.exceptions.DataDimensionalityWarning

  Custom warning to notify potential issues with data dimensionality.

  For example, in random projection, this warning is raised when the number of components, which quantifies the dimensionality of the target projection space, is higher than the number of features, which quantifies the dimensionality of the original source space, to imply that the dimensionality of the problem will not be reduced.

  Changed in version 0.18: Moved from sklearn.utils.

  Attributes:
    args

  Methods

  `add_note` | Exception.add_note(note) -- add a note to the exception
  `with_traceback` | Exception.with_traceback(tb) -- set self.__traceback__ to tb and return self.

  add_note()

    Exception.add_note(note) – add a note to the exception

  with_traceback()

    Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.