Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ddbourgin/numpy-ml
/ is_number
Function
is_number
numpy_ml/utils/testing.py:38–40 ·
view source on GitHub ↗
Check that a value `a` is numeric
(a)
Source
from the content-addressed store, hash-verified
36
37
38
def
is_number(a):
39
""
"Check that a value `a` is numeric"
""
40
return
isinstance(a, numbers.Number)
41
42
43
def
is_one_hot(x):
Callers
4
__init__
Method · 0.90
fit
Method · 0.90
fit
Method · 0.90
_initialize_params
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected