itca.BFSearch¶
- class itca.BFSearch(class_type='nominal', metric=<function itca>)¶
Search the class combination map that maximizes s-ITCA by breadth-first search algorithm.
- __init__(class_type='nominal', metric=<function itca>)¶
Searching strategy.
- Parameters
class_type ({"nominal", "ordinal", "tree"}) – Type of classes.
Methods
__init__([class_type, metric])Searching strategy.
combine_i_j(i, j, mapping)Combine (merged) class labels i and j in mapping.
compute_itca(X, y, clf, mapping[, kfolds, …])Given the data and a classifier, compute ITCA through cross validation.
next_mappings(mapping, class_type)Generate mappings considered in the next round of search.
next_mappings_pruned(mapping, class_type, …)Generate mappings considered in the next round of search.
search(X, y, clf[, kfolds, verbose, early_stop])