dtreeviz icon indicating copy to clipboard operation
dtreeviz copied to clipboard

Add random forest 2D feature space visualization

Open parrt opened this issue 4 years ago • 4 comments

I added two interesting methods that show the 2D feature space for classifiers associated with one or more trees. One shows the regions fused together, ctreeviz_bivar_fusion(), and the other does a nice tiling to show probabilities or predicted values for the grid, crfviz_bivar().

parrt avatar Feb 06 '21 21:02 parrt

Heh, @tlapusan can you take a look at this and the notebook? This is my first draft at the API but I think it's okay. Would be very happy to hear about recommendations for the interface or its functionality. It has a number of limitations at this point, such as being limited to sklearn or any other model that can answer method predict_proba(). Also assumes continuous class target values 0..k-1.

parrt avatar Feb 06 '21 21:02 parrt

cool, I will take a look soon.

tlapusan avatar Feb 07 '21 15:02 tlapusan

I'm going to leave this alone for a while until I can finish some other projects; let's focus on getting your PR merged and released... I think I'm still behind on your LightGBM PR. going to look for that one now

parrt avatar Mar 15 '21 18:03 parrt

I had a commit that had the rename for _normalize ... just pushed that.

Also I realize that it's actually Pillow not PIL. in fact the documentation for pillow says we need to remove PIL before installing pillow.

parrt avatar Mar 15 '21 18:03 parrt

@tlapusan I think we can close this one right? I think we have the two dimensional future space visualization in.

parrt avatar Oct 29 '22 17:10 parrt

to be honest, I don't remember too much but I see that the code was merged into master. So we should be ok to close it.

tlapusan avatar Nov 03 '22 09:11 tlapusan