pulse2percept.topography.cortex

CorticalMap, Polimeni2006Map

Classes

CorticalMap(**params) Template class for V1/V2/V3 visuotopic maps
Polimeni2006Map(**params) Polimeni visual mapping
class pulse2percept.topography.cortex.CorticalMap(**params)[source]

Template class for V1/V2/V3 visuotopic maps

build(**build_params)[source]

Build the model

Every model must have a `build method, which is meant to perform all expensive one-time calculations. You must call build before calling predict_percept.

Important

Don’t override this method if you are building your own model. Customize _build instead.

Parameters:build_params (additional parameters to set) – You can overwrite parameters that are listed in get_default_params. Trying to add new class attributes outside of that will cause a FreezeError. Example: model.build(param1=val)
dva_to_v1(x, y)[source]

Convert degrees visual angle (dva) to V1 coordinates (um)

dva_to_v2(x, y)[source]

Abstract Method: Convert degrees visual angle (dva) to V2 coordinates (um)

dva_to_v3(x, y)[source]

Abstract Method: Convert degrees visual angle (dva) to V3 coordinates (um)

from_dva()[source]

Returns a dict containing the region(s) that this visuotopy maps to, and the corresponding mapping function(s).

get_default_params()[source]

Required to inherit from BaseModel

is_built

A flag indicating whether the model has been built

set_params(**params)[source]

Set the parameters of this model

to_dva()[source]

Returns a dict containing the region(s) that this visuotopy maps from, and the corresponding inverse mapping function(s). This transform is optional for most models.

v1_to_dva(x, y)[source]

Convert V1 coordinates (um) to degrees visual angle (dva)

v2_to_dva(x, y)[source]

Convert V2 coordinates (um) to degrees visual angle (dva)

v3_to_dva(x, y)[source]

Convert V3 coordinates (um) to degrees visual angle (dva)

class pulse2percept.topography.cortex.Polimeni2006Map(**params)[source]

Polimeni visual mapping

build(**build_params)[source]

Build the model

Every model must have a `build method, which is meant to perform all expensive one-time calculations. You must call build before calling predict_percept.

Important

Don’t override this method if you are building your own model. Customize _build instead.

Parameters:build_params (additional parameters to set) – You can overwrite parameters that are listed in get_default_params. Trying to add new class attributes outside of that will cause a FreezeError. Example: model.build(param1=val)
dva_to_v1(x, y)[source]

Convert degrees visual angle (dva) to V1 coordinates (um)

dva_to_v2(x, y)[source]

Abstract Method: Convert degrees visual angle (dva) to V2 coordinates (um)

dva_to_v3(x, y)[source]

Abstract Method: Convert degrees visual angle (dva) to V3 coordinates (um)

from_dva()[source]

Returns a dict containing the region(s) that this visuotopy maps to, and the corresponding mapping function(s).

get_default_params()[source]

Required to inherit from BaseModel

is_built

A flag indicating whether the model has been built

set_params(**params)[source]

Set the parameters of this model

to_dva()[source]

Returns a dict containing the region(s) that this visuotopy maps from, and the corresponding inverse mapping function(s). This transform is optional for most models.

v1_to_dva(x, y)[source]

Convert V1 coordinates (um) to degrees visual angle (dva)

v2_to_dva(x, y)[source]

Convert V2 coordinates (um) to degrees visual angle (dva)

v3_to_dva(x, y)[source]

Convert V3 coordinates (um) to degrees visual angle (dva)