Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tf catvars from tlapusan #265

Merged
merged 34 commits into from
Feb 20, 2023
Merged

Tf catvars from tlapusan #265

merged 34 commits into from
Feb 20, 2023

Conversation

parrt
Copy link
Owner

@parrt parrt commented Feb 17, 2023

Starting from @tlapusan, raising exceptions when categorical variable's are used in feature space. I just don't know how to display that at the moment. Popping the version to 2.2.0 to incorporate categorical vars.

Derived from #263

We still need to test the decision notes more, such as when there are lots of levels in the catvars.

@parrt parrt added the enhancement New feature or request label Feb 17, 2023
@parrt parrt added this to the 2.2.0 milestone Feb 17, 2023
Copy link
Collaborator

@mepland mepland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code looks good to me, besides one print statement. I don't see text axis tick labels in either of the demo notebooks though? sex_label is still 0 or 1.

dtreeviz/trees.py Outdated Show resolved Hide resolved
@parrt
Copy link
Owner Author

parrt commented Feb 18, 2023

The code looks good to me, besides one print statement. I don't see text axis tick labels in either of the demo notebooks though? sex_label is still 0 or 1.

We have an updated the notebooks yet but I do have tutorial I'm working on that uses categoricals. Take a look at testing/tf-catvars.py for some playing around.

I need to fix testing/tf-catvars2.py... Working on that now hi cardinality categorical fails.

tlapusan and others added 11 commits February 20, 2023 10:46
…ered set: can't show avg lines as we can for numeric X values"

This reverts commit 6bb0806.
Signed-off-by: Terence Parr <parrt@antlr.org>
Signed-off-by: Terence Parr <parrt@antlr.org>
Signed-off-by: Terence Parr <parrt@antlr.org>
…one value not multiple; normalize to list

Signed-off-by: Terence Parr <parrt@antlr.org>
Signed-off-by: Terence Parr <parrt@antlr.org>
Signed-off-by: Terence Parr <parrt@antlr.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants