crowsetta.validation

crowsetta.validation#

Module with functions for data validation.

Some utilities adapted from scikit-learn under BSD 3 License scikit-learn/scikit-learn

Functions

check_consistent_length(arrays)

Check that all arrays have consistent first dimensions.

column_or_row_or_1d(y)

Ravel column or row vector or 1d numpy array, else raises an error

validate_ext(file, extension)

Check that a file has a valid extension.