neuroprob/likelihoods.py
def sample_helper(self, h, b, neuron, samples):
        """
        NLL helper function for MC sample evaluation.
        """ 
        rates = self.f(h) # watch out for underflow or overflow here
        spikes = self.spikes[b][:, neuron, self.filter_len-1:].to(self.tbin.device)
        return rates, spikes

        NLL helper function for MC sample evaluation.
        
NLL helper function for MC sample evaluation.
NLL helper function for MC sample evaluation .
def sample_helper(self, h, b, neuron, samples):
        rates = self.f(h) 
        spikes = self.spikes[b][:, neuron, self.filter_len-1:].to(self.tbin.device)
        return rates, spikes
def sample_helper ( self , h , b , neuron , samples ) : rates = self . f ( h ) spikes = self . spikes [ b ] [ : , neuron , self . filter_len - 1 : ] . to ( self . tbin . device ) return rates , spikes
NLL helper function for MC sample evaluation.
NLL helper function for MC sample evaluation .
"""
        NLL helper function for MC sample evaluation.
        """ # watch out for underflow or overflow here
self
h
b
neuron
samples