Skip to content

rename labels for performance increase #38

@kjgm

Description

@kjgm

MurTree internally uses a vector of instances for each possible label. This creates issues, for example, when the two possible labels are 1000 and 2000. MurTree now assumes there are 2001 unique labels, which significantly impacts performance.

Therefore, labels should be renamed to the 0...num_labels range before being passed to the c++ solver.

Preferably, the transformation is stored and the original labels are used when exporting the tree with export_tree or export_dot

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions