Skip to main content

Module validation

Module validation 

Source
Expand description

Common input validation helpers.

These utilities centralise the dimension-checking boilerplate that recurs across regression, classification, depth, and alignment entry points.

Functionsยง

validate_dist_mat
Validate that a distance matrix is square and optionally matches an expected size.
validate_fdata
Validate functional data dimensions.
validate_labels
Validate class labels match data dimensions and have at least min_classes classes.
validate_ncomp
Validate and clamp the ncomp parameter.
validate_response
Validate that a response vector matches the data row count.