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

Class FeatureCurves

source code


Measures and collects the responses to a set of features, for calculating tuning and similar curves.

These curves represent the response of a Sheet to patterns that are controlled by a set of features. This class can collect data for multiple curves, each with the same x axis. The x axis represents the main feature value that is being varied, such as orientation. Other feature values can also be varied, such as contrast, which will result in multiple curves (one per unique combination of other feature values).

The sheet responses used to construct the curves will be stored in a dictionary curve_dict kept in the Sheet of interest. A particular set of patterns is then constructed using a user-specified PatternPresenter by adding the parameters determining the curve (curve_param_dict) to a static list of parameters (param_dict), and then varying the specified set of features. The results can be accessed in the curve_dict, indexed by the curve_label and feature value.

Nested Classes [hide private]

Inherited from param.parameterized.Parameterized: __metaclass__

Instance Methods [hide private]
 
__init__(self, features, sheet, x_axis)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
sheets_to_measure(self)
Return a list of the Sheets in the current simulation for which to collect responses.
source code
 
collect_feature_responses(self, features, pattern_presenter, param_dict, curve_label, display) source code

Inherited from FeatureResponses: initialize_featureresponses, measure_responses, present_permutation

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]
  post_collect_responses_hook = param.HookList(default= [], inst...
List of callable objects to be run at the end of collect_feature_responses function.
  name = <param.parameterized.String object at 0xb20546c>
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, sheet, x_axis)
(Constructor)

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

sheets_to_measure(self)

source code 
Return a list of the Sheets in the current simulation for which to collect responses.
Overrides: FeatureResponses.sheets_to_measure
(inherited documentation)

Class Variable Details [hide private]

post_collect_responses_hook

List of callable objects to be run at the end of collect_feature_responses function. The functions should accept three parameters: FullMatrix, curve label, sheet
Value:
param.HookList(default= [], instantiate= False, doc= """
        List of callable objects to be run at the end of collect_feature_responses\
 function.
        The functions should accept three parameters: FullMatrix, curve label, she\
et""")