v1.11.1
New plotting functions and demo focussing on head direction
Head direction selectivity can be plotted for all cells.
Env = Environment()
Ag = Agent(Env)
HDCs = HeadDirectionCells(Ag, params={'n':3,'color':'C5'}) #or any other
HDCs.plot_angular_rate_map()
Spatial rate maps can be plotted averaged over all head directions (for use in instances where rate maps may be position and head direction selective).
This is supported by a new internal function get_head_direction_averaged_state()
which calculates the state at all head direction 0 --> 2pi and then averages over these return the spatial receptive field.
Env = Environment()
Ag = Agent(Env)
GCs = GridCells(Ag, params={'n':3}) #or any other.
GCs.plot_rate_map(method="groundtruth_headdirectionaveraged")
(in this case its actually redundant because grid cells have no head direction selectivity but in this demo we show a more involved use case
New Conjunctive grid cells demo
In this demo we showcase FeedForwardLayer
in probably its most simple use-case. Combining head direction cells and grid cells non-linearly to make head direction selective grid cells (conjunctive grid cells)