Package topo :: Package analysis :: Module featureresponses :: Class FeatureMaps
[hide private]
[frames] | no frames]

Class FeatureMaps

source code


Measures and collects the responses to a set of features for calculating feature maps.

For each feature and each sheet, the results are stored as a preference matrix and selectivity matrix in the sheet's sheet_views; these can then be plotted as preference or selectivity maps.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, features, **params)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
collect_feature_responses(self, pattern_presenter, param_dict, display, weighted_average=True)
Present the given input patterns and collate the responses.
source code

Inherited from FeatureResponses: initialize_featureresponses, measure_responses, present_permutation, sheets_to_measure

Inherited from FeatureResponses (private): _update

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, script_repr, set_default, set_dynamic_time_fn, set_param, state_pop, state_push, verbose, warning

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __setattr__, __sizeof__, __subclasshook__

Class Methods [hide private]

Inherited from param.parameterized.Parameterized: params, print_param_defaults

Class Variables [hide private]
  selectivity_multiplier = param.Number(default= 17, bounds= (0....
Factor by which to multiply the calculated selectivity values before plotting them.
  sheet_views_prefix = param.String(default= "", doc= ...
Prefix to add to the name under which results are stored in sheet_views.
  name = <param.parameterized.String object at 0xb2052ec>
String identifier for this object.

Inherited from FeatureResponses: repetitions

Inherited from FeatureResponses (private): _fullmatrix

Inherited from base.functionfamily.PatternDrivenAnalysis: post_analysis_session_hooks, post_presentation_hooks, pre_analysis_session_hooks, pre_presentation_hooks

Inherited from param.parameterized.Parameterized: print_level

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, features, **params)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

collect_feature_responses(self, pattern_presenter, param_dict, display, weighted_average=True)

source code 

Present the given input patterns and collate the responses.

If weighted_average is True, the feature responses are calculated from a weighted average of the values of each bin in the distribution, rather than simply using the actual value of the parameter for which response was maximal (the discrete method). Such a computation will generally produce much more precise maps using fewer test stimuli than the discrete method. However, weighted_average methods generally require uniform and full-range sampling, as described below, which is not always feasible.

For measurements at evenly-spaced intervals over the full range of possible parameter values, weighted_averages are a good measure of the underlying continuous-valued parameter preference, assuming that neurons are tuned broadly enough (and/or sampled finely enough) that they respond to at least two of the tested parameter values. This method will not usually give good results when those criteria are not met, i.e. if the sampling is too sparse, not at evenly-spaced intervals, or does not cover the full range of possible values. In such cases weighted_average should be set to False, and the number of test patterns will usually need to be increased instead.


Class Variable Details [hide private]

selectivity_multiplier

Factor by which to multiply the calculated selectivity values before plotting them. Usually set much greater than 1.0 to highlight particularly unselective areas, especially when combining selectivity with other plots as when using Confidence subplots.
Value:
param.Number(default= 17, bounds= (0.0, None), doc= """
        Factor by which to multiply the calculated selectivity values
        before plotting them.  Usually set much greater than 1.0 to
        highlight particularly unselective areas, especially when
        combining selectivity with other plots as when using Confidence
        subplots.""")

sheet_views_prefix

Prefix to add to the name under which results are stored in sheet_views.
Value:
param.String(default= "", doc= """
        Prefix to add to the name under which results are stored in
        sheet_views.""")