You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ENH: Add Koparkar 2024 chunking model of Bengalese finch song syntax #200
I talked some with @MizukiFujibayashi who kindly offered to work on contributing this. @avanikop let us know her lab has done some work translating it as well. We could have other lab members start a pull request with what they have so far and then @MizukiFujibayashi could evolve it from there. Or if it's largely written, another option would be to ask @MizukiFujibayashi to review and make sure that someone besides Avani's group and I can run the code, this would also be very valuable feedback to have.
Some initial thoughts that we can follow up on later:
probably best to start with a more-or-less literal translation from the Matlab code in a Jupyter notebook, with Markdown narrative around it that explains step-by-step how the model works
then we can iterate from there
In terms of how this will go into VocalPy, I think we will want a vocalpy.syntax module. And then I think we should implement the model as a class, e.g. KoparkarEtAl2024 with fit and generate methods? But we can figure all that out later, I'm just thinking out loud for now
we'll of course want to add citations to the 2024 paper as well as relevant lit like the Okanoya 2010 paper that introduced the idea of chunking (IIRC)
the goal is to add an initial vocalpy.syntax module that will have a class e.g. vocalpy.syntax.Koparkar2024Chunk with fit, transform, and fit_transform methods. You fit a list of strings (syllable labels from bouts) and transform it to a new list that is chunks.
we will get there by first writing it all out in functions. @JacquelineGoe started a PR in vocalpy.syntax #203 that adds the translation she's been working on, we'll iterate on that
Activity
NickleDave commentedon Dec 18, 2024
Updating here after a meeting with @avanikop @MizukiFujibayashi and @JacquelineGoe:
vocalpy.syntaxmodule that will have a class e.g.vocalpy.syntax.Koparkar2024Chunkwithfit,transform, andfit_transformmethods. Youfita list of strings (syllable labels from bouts) andtransformit to a new list that is chunks.