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

ENH optimize & add treeple tutorial figures #260

Merged
merged 11 commits into from
Apr 24, 2024
Merged

ENH optimize & add treeple tutorial figures #260

merged 11 commits into from
Apr 24, 2024

Conversation

PSSF23
Copy link
Member

@PSSF23 PSSF23 commented Apr 19, 2024

  • Reorder by single view and multiview
  • Optimize figure style to be consistent with paper using: 1d & 2d
  • Add mutual information difference figure
  • Select thumbnail for specific tutorials
  • Output all statistics
  • Add hellinger distance tutorial
  • Add 2d plots for permuted 2-view data
  • Change text color in the note box to blue

@PSSF23 PSSF23 closed this Apr 19, 2024
@PSSF23 PSSF23 reopened this Apr 19, 2024
@PSSF23 PSSF23 marked this pull request as ready for review April 19, 2024 20:01
Copy link

codecov bot commented Apr 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.04%. Comparing base (638dd7c) to head (f1509bd).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #260   +/-   ##
=======================================
  Coverage   90.04%   90.04%           
=======================================
  Files          54       54           
  Lines        5105     5105           
=======================================
  Hits         4597     4597           
  Misses        508      508           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Treeple tutorial for calculating CMI
====================================
=====================
2-1b: Calculating CMI
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't think most ppl will know the order of our figures. Can we remove the numbering in the title? We can still order the sphinx examples as how it shows up tho.

Copy link
Member Author

Choose a reason for hiding this comment

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

This is not related to the figures, just to separate single view and multiview. If we can order them with other methods, that would be great.

Copy link
Collaborator

Choose a reason for hiding this comment

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

https://sphinx-gallery.github.io/stable/gen_modules/sphinx_gallery.sorting.html

We can prolly just rename the filenames and apply a sorting based on that if we want the titles to be more specific.

E.g. FileNameSortKey

from scipy.stats import entropy

from sktree.datasets import make_trunk_classification
from sktree.ensemble import HonestForestClassifier
from sktree.stats import build_hyppo_oob_forest
from sktree.tree import MultiViewDecisionTreeClassifier

sns.set(color_codes=True, style="white", context="talk", font_scale=1.5)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add a comment above stating we are using some formatting to make the figure look as close to "TODO" insert citation to the paper.

Copy link
Member Author

Choose a reason for hiding this comment

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

I don't feel that's necessary. It's just a figure style? Definitely agree on citing the paper somewhere when it's out.

Copy link
Member Author

@PSSF23 PSSF23 left a comment

Choose a reason for hiding this comment

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

The images generated by sphinx has the axis labels cut off. Trying to resolve.

@PSSF23 PSSF23 merged commit 920a819 into main Apr 24, 2024
29 checks passed
@PSSF23 PSSF23 deleted the tutorial_optimize branch April 24, 2024 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants