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

Function _is_xp_namespace

sklearn/utils/_array_api.py:736–741  ·  view source on GitHub ↗
(xp, name)

Source from the content-addressed store, hash-verified

734
735
736def _is_xp_namespace(xp, name):
737 return xp.__name__ in (
738 name,
739 f"array_api_compat.{name}",
740 f"sklearn.externals.array_api_compat.{name}",
741 )
742
743
744def _max_precision_float_dtype(xp, device):

Callers 2

balanced_accuracy_scoreFunction · 0.90
_convert_to_numpyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…