check_numeric#
- caf.toolkit.math_utils.check_numeric(check_dict)[source]#
Check if check_dict values are numeric.
Numeric values are counted as anything that is float or int.
- Parameters:
check_dict (dict[str, Any]) – A dictionary of argument names and argument values to check. The names are used for the error if the value isn’t a numeric.
- Raises:
ValueError – If any of the parameters aren’t floats or ints, includes the parameter name in the message.
- Return type:
None