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 a user-specified
output_fn() 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.
The output_fn is a function s(A) that takes an activity matrix
A and produces an identically shaped output matrix. The default
is the identity function.
|
|
__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_fn()
methods on every Projection to this Sheet. |
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_offset,
sheet_rows,
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_dynamic_time_fn,
verbose,
warning
Inherited from sheetcoords.SheetCoordinateSystem:
closest_cell_center,
matrix2sheet,
matrixidx2sheet,
sheet2matrix,
sheet2matrixidx,
sheetcoordinates_of_matrixidx
Inherited from object:
__delattr__,
__getattribute__,
__hash__,
__new__,
__reduce__,
__reduce_ex__,
__setattr__
|
|
|
apply_output_fn = param.Boolean(default= True, doc= "Whether t...
Whether to apply the output_fn after computing an Activity matrix.
|
|
|
dest_ports = ['Activity']
list() -> new list
list(sequence) -> new list initialized from sequence's items
|
|
|
divisive_constant = param.Number(default= 1.0, doc= ...
Constant value added to projection activity before combining divisively.
|
|
|
mask = param.Parameter(default= SheetMask(), instantiate= True...
SheetMask object for computing which units need to be computed further.
|
|
|
multiplicative_constant = param.Number(default= 0.0, doc= ...
Constant value added to projection activity before combining multiplicatively.
|
|
|
output_fn = param.ClassSelector(OutputFn, default= IdentityOF(...
Output function to apply (if apply_output_fn is true) to this Sheet's activity.
|
|
|
src_ports = ['Activity']
list() -> new list
list(sequence) -> new list initialized from sequence's items
|
|
Inherited from sheet.Sheet:
layout_location,
nominal_bounds,
nominal_density,
plastic,
precedence
Inherited from param.parameterized.Parameterized:
name,
print_level
|