A Sheet whose activity is computed using Projections from other sheets.
A standard ProjectionSheet expects its input to be generated from
other Sheets. Upon receiving an input event, the ProjectionSheet
interprets the event data to be (a copy of) an activity matrix
from another sheet. The ProjectionSheet provides a copy of this
matrix to each Projection from that input Sheet, asking each one
to compute their own activity in response. The same occurs for
any other pending input events.
After all events have been processed for a given time, the
ProjectionSheet computes its own activity matrix using its
activate() method, which by default sums all its Projections'
activity matrices and passes the result through user-specified
output_fns() before sending it out on the default output port.
The activate() method can be overridden to sum some of the
projections, multiply that by the sum of other projections, etc.,
to model modulatory or other more complicated types of connections.
|
|
__init__(self,
**params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature |
source code
|
|
|
|
_dest_connect(self,
conn)
See EventProcessor's _dest_connect(); raises an error if conn is not
a Projection. |
source code
|
|
|
|
|
|
|
_port_match(self,
key,
portlist)
Returns True if the given key matches any port on the given list. |
source code
|
|
|
|
activate(self)
Collect activity from each projection, combine it to calculate
the activity for this sheet, and send the result out. |
source code
|
|
|
|
|
|
|
learn(self)
By default, call the learn() and apply_learn_output_fns()
methods on every Projection to this Sheet. |
source code
|
|
|
|
n_bytes(self)
Estimate the memory bytes taken by this Sheet and its Projections. |
source code
|
|
|
|
n_conns(self)
Count the total size of all incoming projections, in number of connections. |
source code
|
|
|
|
|
|
|
present_input(self,
input_activity,
conn)
Provide the given input_activity to each in_projection that has a dest_port
equal to the specified port, asking each one to compute its activity. |
source code
|
|
|
|
|
|
|
projections(self,
name=None)
Return either a named input p, or a dictionary
{projection_name, projection} of all the in_connections for
this ProjectionSheet. |
source code
|
|
|
|
|
|
Inherited from sheet.Sheet:
activity_len,
release_sheet_view,
row_col_sheetcoords,
sheet_cols,
sheet_rows,
sheetcoords_of_idx_grid,
state_pop,
state_push
Inherited from simulation.EventProcessor:
script_repr,
send_output,
start
Inherited from param.parameterized.Parameterized:
__getstate__,
__repr__,
__setstate__,
__str__,
debug,
defaults,
force_new_dynamic_value,
get_param_values,
get_value_generator,
inspect_value,
message,
print_param_values,
set_default,
set_dynamic_time_fn,
set_param,
verbose,
warning
Inherited from sheetcoords.SheetCoordinateSystem:
closest_cell_center,
matrix2sheet,
matrixidx2sheet,
sheet2matrix,
sheet2matrixidx,
sheetcoordinates_of_matrixidx
Inherited from object:
__delattr__,
__format__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__,
__sizeof__,
__subclasshook__
|
|
|
allow_skip_non_responding_units = param.Boolean(default= True,...
If true, then units that are inactive after the response
function has been called can be skipped in subsequent
processing.
|
|
|
dest_ports = ['Activity']
list() -> new list
list(sequence) -> new list initialized from sequence's items
|
|
|
mask = param.Parameter(default= SheetMask(), instantiate= True...
SheetMask object for computing which units need to be computed further.
|
|
|
name = <param.parameterized.String object at 0xa9aad6c>
String identifier for this object.
|
|
|
src_ports = ['Activity']
list() -> new list
list(sequence) -> new list initialized from sequence's items
|
|
Inherited from sheet.Sheet:
apply_output_fns,
layout_location,
nominal_bounds,
nominal_density,
output_fns,
plastic,
precedence,
row_precedence
Inherited from param.parameterized.Parameterized:
print_level
|