kapelner / bartMachine

An R-Java Bayesian Additive Regression Trees implementation
MIT License
62 stars 27 forks source link

How to use printTreeIllustations #15

Closed MinLiang1 closed 7 years ago

MinLiang1 commented 8 years ago

I would like to plot some sample trees in the BART model. Is "printTreeIllustations" used for visualizing trees?

I uncommented ".jcall(java_bart_machine, "V", "printTreeIllustations")" in "build_bart_machine". However, when I ran it, there is an error: method printTreeIllustations with signature ()V not found.

How can I fix it? Or is there other function to visualize sample trees?

Thanks!

Min

kapelner commented 8 years ago

Haha I think I commented it out in the Java. If I fix it, could you clone, compile Java via ant and reinstall the package via R CMD INSTALL? On Oct 11, 2016 1:49 PM, "Min Liang" notifications@github.com wrote:

I would like to plot some sample trees in the BART model. Is "printTreeIllustations" used for visualizing trees?

I uncommented ".jcall(java_bart_machine, "V", "printTreeIllustations")" in "build_bart_machine". However, when I ran it, there is an error: method printTreeIllustations with signature ()V not found.

How can I fix it? Or is there other function to visualize sample trees?

Thanks!

Min

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/kapelner/bartMachine/issues/15, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoK-NlwzELfPPW_aBvWQS7LRO89sWifks5qy8wTgaJpZM4KT6Xu .

MinLiang1 commented 8 years ago

Yeah, sure! I could re-install bartMachine from source. Will the sample trees be plotted automatically? Or should I use something like bart_machine$printTreeIllustations?

Haha I think I commented it out in the Java. If I fix it, could you clone, compile Java via ant and reinstall the package via R CMD INSTALL? …

On Oct 11, 2016 1:49 PM, "Min Liang" _@_.***> wrote: I would like to plot some sample trees in the BART model. Is "printTreeIllustations" used for visualizing trees?

I uncommented ".jcall(java_bart_machine, "V", "printTreeIllustations")" in "build_bart_machine". However, when I ran it, there is an error: method printTreeIllustations with signature ()V not found.

How can I fix it? Or is there other function to visualize sample trees?

Thanks!

Min

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#15>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoK-NlwzELfPPW_aBvWQS7LRO89sWifks5qy8wTgaJpZM4KT6Xu .

kapelner commented 8 years ago

It's reenabled. You may want to alter the Java code a bit to add/subtract info. Here's an example of what happens (when there is one tree).

[image: Inline image 1]

On Tue, Oct 11, 2016 at 2:50 PM, Min Liang notifications@github.com wrote:

Yeah, sure! I could re-install bartMachine from source. Will the sample trees be plotted automatically? Or should I use something like bart_machine$printTreeIllustations?

Haha I think I commented it out in the Java. If I fix it, could you clone, compile Java via ant and reinstall the package via R CMD INSTALL? …

On Oct 11, 2016 1:49 PM, "Min Liang" @.***> wrote: I would like to plot some sample trees in the BART model. Is "printTreeIllustations" used for visualizing trees?

I uncommented ".jcall(java_bart_machine, "V", "printTreeIllustations")" in "build_bart_machine". However, when I ran it, there is an error: method printTreeIllustations with signature ()V not found.

How can I fix it? Or is there other function to visualize sample trees?

Thanks!

Min

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#15 https://github.com/kapelner/bartMachine/issues/15>, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoK-NlwzELfPPW_ aBvWQS7LRO89sWifks5qy8wTgaJpZM4KT6Xu .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/kapelner/bartMachine/issues/15#issuecomment-253009397, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoK-F6LmHHfR2VxXETC5s7XidLJ_WLVks5qy9qSgaJpZM4KT6Xu .

Adam Kapelner, Ph.D. Assistant Professor of Mathematics Queens College, City University of New York 65-30 Kissena Blvd., Kiely Hall Room 604 Flushing, NY, 11367 M: 516-435-6795 kapelner.com (scholar https://scholar.google.com/citations?user=TzgMmnoAAAAJ|research gate http://www.researchgate.net/profile/Adam_Kapelner2|publons https://publons.com/author/431881/adam-kapelner#profile)