Skip to content

export_text() function in tcdt.py seems to be broken #2

@AkashCherukuri

Description

@AkashCherukuri

Basically the title, return value of export_text() in example.py is an empty string.
I think replacing line 429 with report = print_tree_recurse(self.root, report) fixes this, but I'm not sure.

Moreover, printing the decision tree before and after updating the rules by calling tcdt.update() for the given example yields the same tree.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions