Added bokeh implementation of view_quilt #1365
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
This PR adds the function
nb_view_quilt()
which is a 1:1 implementation of theview_quilt()
function in Bokeh. The demo_pipeline notebook referred to an interactive version of the view_quilt function but I was unable to find it. The view_quilt function had a todo for implanting a bokeh version.When this function is evoked, it shows the quilt plot with 2 sliders for changing the
rf
andstride
parameters. I opted for modifying the underlaying parameters with the sliders instead of the patch size and overlap, because some width values are impossible to use. For example, the patches can never have a size of 22 because of the formulapatch size = (rf * 2) + 1
.The demo_pipeline notebook was also modified to use the Bokeh version.
Has your PR been tested?
caimanmanager demotest
ran without any issues.caimanmanager test
failed atcaiman.tests.test_sbx...
but had no other issues.The
nb_view_quilt()
have also been manually tested and it always produced the exact same output asview_quilt()
, given identical inputs.