fatf.utils.array.tools.get_invalid_indices

fatf.utils.array.tools.get_invalid_indices(array: numpy.ndarray, indices: numpy.ndarray) → numpy.ndarray[source]

Returns a numpy array with column indices that the input array is missing.

Parameters
arraynumpy.ndarray

A 2-dimensional array to be checked.

indicesnumpy.ndarray

A 1-dimensional array of indices corresponding to columns in the input array.

Returns
invalid_indicesnumpy.ndarray

A sorted array of indices that were not found in the input array.

Raises
TypeError

Either of the input arrays is not a numpy array-like object.

IncorrectShapeError

The input array is not 2-dimensional or the indices arrays in not 1-dimensional.