early_vision_toolbox.interface

interfaces defined for many functions in the toolbox

class early_vision_toolbox.interface.NeuronBank[source]

Bases: object

abstract class for a bank of neurons.

Attributes

n_neuron number of neurons
rf_size size 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).