caf.toolkit.math_utils#

A toolbox of useful math related functionality.

Most will be used elsewhere in the codebase too

Functions

check_numeric(check_dict)

Check if check_dict values are numeric.

clip_small_non_zero(array, min_val)

Clip all small, non-zero values in an array up to a minimal value.

curve_convergence(target, achieved)

Calculate the convergence between two curves.

is_almost_equal(val1, val2[, rel_tol, abs_tol])

Check if two values are similar.

list_is_almost_equal(vals[, rel_tol, abs_tol])

Check if a list of values are similar.

nan_report_with_input(array, input_dict)

Create a report of NaN values in relative matrix locations.

root_mean_squared_error(targets, achieved)

Calculate the root-mean-squared error between targets and achieved.

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.