Skip to main content

Module utils

Module utils 

Source

Functions§

build_labels_count_distribution_matrix
Class counts for every pair of candidates: matrix[i][j] counts the instances in the right branch of both candidates[i] and candidates[j], and matrix[i][i] those in the right branch of candidates[i]. Every other leaf of a depth-2 tree follows by subtraction.
deduce_sibling_error
Class counts of a child’s sibling: the parent’s counts minus the child’s.
deduce_sibling_error_with_buffer
deduce_sibling_error writing into buffer.
find_valid_split_attributes
The features, among candidates (all of them when None) and other than previous, that leave at least min_sup instances on each side.