-
Notifications
You must be signed in to change notification settings - Fork 720
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
Figure/plot file format and quality #475
Comments
Hi Kaushik,
Apologies for the brevity, I’m on my phone. You can use the .visualize() function to extract the plotly image of a specific graph out of the explanation objects (eg ebm_global.visualize(0) gets the plotly figure for the overall feature importance).
You can then use the ‘kaleido’ library (pip install kaleido) from Plotly to save the image with custom dpi, resolution, height/width, etc.
Should be something like:
ebm_global = ebm.explain_global()
plot_fig = ebm_global.visualize(0)
plot_fig.write_image(…)
I’d check the plotly write_fig and kaleido docs. Hope this helps!
Get Outlook for iOS<https://aka.ms/o0ukef>
…________________________________
From: KaushikBabu10 ***@***.***>
Sent: Saturday, September 9, 2023 7:04:47 AM
To: interpretml/interpret ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [interpretml/interpret] Figure/plot file format and quality (Issue #475)
In EBM there is only one option to download plot as PNG format. How can I download in other formats? How can I improve resolution (dpi) of the plots? Because when I am adding it in word file report, the quality is degraded.
Please suggest working solutions. If possible, make some improvement in the package.
—
Reply to this email directly, view it on GitHub<#475> or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABIOOZ6PRVBZFUQ6UD5ELILXZRZQBBFKMF2HI4TJMJ2XIZLTSOBKK5TBNR2WLJDUOJ2WLJDOMFWWLO3UNBZGKYLEL5YGC4TUNFRWS4DBNZ2F6YLDORUXM2LUPGBKK5TBNR2WLJLJONZXKZNENZQW2ZNLORUHEZLBMRPXI6LQMWBKK5TBNR2WLJDUOJ2WLJDOMFWWLLTXMF2GG2C7MFRXI2LWNF2HTLDTOVRGUZLDORPXI6LQMWSUS43TOVS2M5DPOBUWG44SQKSHI6LQMWVHEZLQN5ZWS5DPOJ42K5TBNR2WLKJRHA2DOMBUHEYDHAVEOR4XAZNFNFZXG5LFUV3GC3DVMWVDCOBYHA3TKNRQG4YKO5DSNFTWOZLSUZRXEZLBORSQ>.
You are receiving this email because you are subscribed to this thread.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In EBM there is only one option to download plot as PNG format. How can I download in other formats? How can I improve resolution (dpi) of the plots? Because when I am adding it in word file report, the quality is degraded.
Please suggest working solutions. If possible, make some improvement in the package.
The text was updated successfully, but these errors were encountered: