MCPcopy 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
38def is_number(a):
39 """Check that a value `a` is numeric"""
40 return isinstance(a, numbers.Number)
41
42
43def is_one_hot(x):

Callers 4

__init__Method · 0.90
fitMethod · 0.90
fitMethod · 0.90
_initialize_paramsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected