MCPcopy
hub / github.com/scikit-learn/scikit-learn / _ensure_no_complex_data

Function _ensure_no_complex_data

sklearn/utils/validation.py:660–667  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

658
659
660def _ensure_no_complex_data(array):
661 if (
662 hasattr(array, "dtype")
663 and array.dtype is not None
664 and hasattr(array.dtype, "kind")
665 and array.dtype.kind == "c"
666 ):
667 raise ValueError("Complex data not supported\n{}\n".format(array))
668
669
670def _check_estimator_name(estimator):

Callers 2

check_arrayFunction · 0.85
_check_yFunction · 0.85

Calls 1

formatMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…