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

[Question] Multiple receptors for a single neuron #707

Open
2 tasks done
alexfanqi opened this issue Dec 15, 2024 · 1 comment
Open
2 tasks done

[Question] Multiple receptors for a single neuron #707

alexfanqi opened this issue Dec 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@alexfanqi
Copy link

alexfanqi commented Dec 15, 2024

Please:

  • Check for duplicate requests.
  • Describe your goal, and if possible provide a code snippet with a motivating example.

Hi,

I would like to model a neuron that has a fixed number of receptors with same synaptic dynamics model, but different parameters. These receptors are AlignPost. I considered splitting out connection matrix for each receptor, or alternatively having dummy neuron groups. But they seem less convenient. So right now, I flatten out receptors and post neurons, and use something like this,

class CUBAMultiReceptor(bp.dyn.CUBA):
    def __init__(
        self,
        n_receptors: int = 1,
        name: Optional[str] = None,
        scaling: Optional[bm.Scaling] = None,
    ):
        super().__init__(name=name, scaling=scaling)
        self.n_receptors = n_receptors

    def update(self, conductance, potential=None):
        conductance = super().update(conductance, potential)
        return bm.ein_reduce(
            conductance,
            "... (neuron receptor) -> ... neuron",
            receptor=self.n_receptors,
            reduction="sum",
        )

This will require STDP_Song2000 to be modified accordingly to propagate post spikes. I wonder if there are better solutions?

@alexfanqi alexfanqi added the enhancement New feature or request label Dec 15, 2024
@alexfanqi
Copy link
Author

alexfanqi commented Dec 15, 2024

Maybe another question, are there ways to let two Projections use the same instance of SynOut and SynDyn? ie two current=comm(pre) within different Projections go into same SynDyn instance.

@alexfanqi alexfanqi changed the title Multiple receptors for a single neuron [Question] Multiple receptors for a single neuron Dec 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant