MCPcopy Index your code
hub / github.com/scikit-learn/scikit-learn / _is_numpy_namespace

Function _is_numpy_namespace

sklearn/utils/_array_api.py:267–269  ·  view source on GitHub ↗

Return True if xp is backed by NumPy.

(xp)

Source from the content-addressed store, hash-verified

265
266
267def _is_numpy_namespace(xp):
268 """Return True if xp is backed by NumPy."""
269 return xp.__name__ in _NUMPY_NAMESPACE_NAMES
270
271
272def supported_float_dtypes(xp, device=None):

Callers 15

fitMethod · 0.90
row_normsFunction · 0.90
softmaxFunction · 0.90
_determine_key_typeFunction · 0.90
compute_class_weightFunction · 0.90
unique_labelsFunction · 0.90
check_arrayFunction · 0.90
test_ravelFunction · 0.90

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…