Skip to content

AttributeError: 'RCTree' object has no attribute 'codisp_with_cut_dimension' #105

@duarteharris

Description

@duarteharris

Hi.

I'm following the example to obtain feature importance here, and even copying and running the code there as is, I get the following error:

AttributeError: 'RCTree' object has no attribute 'codisp_with_cut_dimension'

referring to the line:

   for tree in forest:
       for leaf in tree.leaves:
-->        codisp,cutdim = tree.codisp_with_cut_dimension(leaf)

Any ideia why might that be?

Thank you,

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