early_vision_toolbox.interface¶
interfaces defined for many functions in the toolbox
-
class
early_vision_toolbox.interface.NeuronBank[source]¶ Bases:
objectabstract class for a bank of neurons.
Attributes
n_neuronnumber of neurons rf_sizesize of RF Methods
predict(imgs[, neuron_idx])get neuron response to images -
n_neuron¶ number of neurons
Returns: number of neurons.
-
predict(imgs, neuron_idx=None)[source]¶ get neuron response to images
Parameters: imgs: iterable
an interable, each one being an image which the neuron can give response.
Returns: a 2d ndarray each row being a neuron’s response to each image.
-
rf_size¶ size of RF
Returns: size of filter, in (height, width).
-