FeatureResponses and associated functions and classes.
These classes implement map and tuning curve measurement based on measuring responses while varying features of an input pattern.
Bases: param.parameterized.Parameterized
params(name=String)
Maintains a matrix of Distributions (each of which is a dictionary of (feature value: activity) pairs).
The matrix contains one Distribution for each unit in a rectangular matrix (given by the matrix_shape constructor argument). The contents of each Distribution can be updated for a given bin value all at once by providing a matrix of new values to update().
The results can then be accessed as a matrix of weighted averages (which can be used as a preference map) and/or a selectivity map (which measures the peakedness of each distribution).
[0m Object has no parameters.
Apply the given dsf DistributionStatisticFn on each element of the distribution_matrix
Return a dictionary of dictionaries, with the same structure of the called DistributionStatisticFn, but with matrices as values, instead of scalars
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: param.parameterized.Parameterized
params(name=String)
Records the output of every unit in a sheet, for every combination of feature values. Useful for collecting data for later analysis while presenting many input patterns.
[0m Object has no parameters.
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Add a new matrix of histogram values for a given bin value.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.__init__.PatternDrivenAnalysis
params(cmd_overrides=Dict, durations=List, inputs=List, measurement_prefix=String, measurement_storage_hook=Callable, metadata_fns=HookList, metafeature_fns=HookList, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, repetitions=Integer, static_features=Dict, store_responses=Boolean, post_analysis_session_hooks=HookList, post_presentation_hooks=HookList, pre_analysis_session_hooks=HookList, pre_presentation_hooks=HookList, name=String)
Systematically vary input pattern feature values and collate the responses.
A DistributionMatrix for each measurement source and feature is created. The DistributionMatrix stores the distribution of activity values for that feature. For instance, if the features to be tested are orientation and phase, we will create a DistributionMatrix for orientation and a DistributionMatrix for phase for each measurement source. The orientation and phase of the input are then systematically varied (when measure_responses is called), and the responses of all units from a measurement source to each pattern are collected into the DistributionMatrix.
The resulting data can then be used to plot feature maps and tuning curves, or for similar types of feature-based analyses.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
cmd_overrides {} Dict V RW durations [1.0] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW measurement_storage_hook None Callable V RW AN metadata_fns [] HookList (0, None) V RW metafeature_fns [] HookList (0, None) V RW outputs [] List (0, None) V RW pattern_generator None Callable V RW AN pattern_response_fn None Callable V RW AN post_analysis_session_hooks [] HookList (0, None) V RW post_presentation_hooks [] HookList (0, None) V RW pre_analysis_session_hooks [] HookList (0, None) V RW pre_presentation_hooks [] HookList (0, None) V RW repetitions 1 Integer (1, None) V RW static_features {} Dict V RW store_responses False Boolean (0, 1) V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcmd_overrides: Dictionary used to overwrite parameters on the pattern_response_fn.[0m [1;31mdurations: Times after presentation,[0m [1;31m when a measurement is taken.[0m [1;34minputs: Names of the input supplied to[0m [1;34m the metadata_fns to filter out desired inputs.[0m [1;31mmeasurement_prefix: Prefix to add to the name under which results are stored.[0m [1;34mmeasurement_storage_hook: Interface to store measurements after they have been completed.[0m [1;31mmetadata_fns: Interface functions for metadata. Should return a dictionary that at a[0m [1;31m minimum must contain the name and dimensions of the inputs and outputs[0m [1;31m for pattern presentation and response measurement.[0m [1;34mmetafeature_fns: Metafeature functions can be used to coordinate lower level features[0m [1;34m across input devices or depending on a metafeature set on the function[0m [1;34m itself.[0m [1;31moutputs: Names of the output source supplied to metadata_fns to filter out[0m [1;31m desired outputs.[0m [1;34mpattern_generator: Defines the input pattern to be presented.[0m [1;31mpattern_response_fn: Presenter command responsible for presenting the input patterns provided[0m [1;31m to it and returning the response for the requested measurement sources.[0m [1;34mpost_analysis_session_hooks: List of callable objects to be run after an analysis session ends.[0m [1;31mpost_presentation_hooks: List of callable objects to be run after each pattern is presented.[0m [1;34mpre_analysis_session_hooks: List of callable objects to be run before an analysis session begins.[0m [1;31mpre_presentation_hooks: List of callable objects to be run before each pattern is presented.[0m [1;34mrepetitions: How many times each stimulus will be presented.[0m [1;34m [0m [1;34m Each stimulus is specified by a particular feature combination, and[0m [1;34m need only be presented once if the network has no other source of[0m [1;34m variability. If results differ for each presentation of an identical[0m [1;34m stimulus (e.g. due to intrinsic noise), then this parameter can be[0m [1;34m increased so that results will be an average over the specified number[0m [1;34m of repetitions.[0m [1;31mstatic_features: Dictionary containing name value pairs of a feature, which is to be[0m [1;31m varied across measurements.[0m [1;34mstore_responses: Determines whether or not to return the full set of responses to the[0m [1;34m presented patterns.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.__init__.FeatureResponses
params(continue_measurement=Boolean, roi=NumericTuple, cmd_overrides=Dict, durations=List, inputs=List, measurement_prefix=String, measurement_storage_hook=Callable, metadata_fns=HookList, metafeature_fns=HookList, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, repetitions=Integer, static_features=Dict, store_responses=Boolean, post_analysis_session_hooks=HookList, post_presentation_hooks=HookList, pre_analysis_session_hooks=HookList, pre_presentation_hooks=HookList, name=String)
Calculate the receptive fields for all neurons using reverse correlation.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
cmd_overrides {} Dict V RW continue_measurement True Boolean (0, 1) V RW durations [1.0] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW measurement_storage_hook None Callable V RW AN metadata_fns [] HookList (0, None) V RW metafeature_fns [] HookList (0, None) V RW outputs [] List (0, None) V RW pattern_generator None Callable V RW AN pattern_response_fn None Callable V RW AN post_analysis_session_hooks [] HookList (0, None) V RW post_presentation_hooks [] HookList (0, None) V RW pre_analysis_session_hooks [] HookList (0, None) V RW pre_presentation_hooks [] HookList (0, None) V RW repetitions 1 Integer (1, None) V RW roi (0, 0, 0, 0) NumericTuple V RW static_features {} Dict V RW store_responses False Boolean (0, 1) V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcmd_overrides: Dictionary used to overwrite parameters on the pattern_response_fn.[0m [1;31mcontinue_measurement: < No docstring available >[0m [1;34mdurations: Times after presentation,[0m [1;34m when a measurement is taken.[0m [1;31minputs: Names of the input supplied to[0m [1;31m the metadata_fns to filter out desired inputs.[0m [1;34mmeasurement_prefix: Prefix to add to the name under which results are stored.[0m [1;31mmeasurement_storage_hook: Interface to store measurements after they have been completed.[0m [1;34mmetadata_fns: Interface functions for metadata. Should return a dictionary that at a[0m [1;34m minimum must contain the name and dimensions of the inputs and outputs[0m [1;34m for pattern presentation and response measurement.[0m [1;31mmetafeature_fns: Metafeature functions can be used to coordinate lower level features[0m [1;31m across input devices or depending on a metafeature set on the function[0m [1;31m itself.[0m [1;34moutputs: Names of the output source supplied to metadata_fns to filter out[0m [1;34m desired outputs.[0m [1;31mpattern_generator: Defines the input pattern to be presented.[0m [1;34mpattern_response_fn: Presenter command responsible for presenting the input patterns provided[0m [1;34m to it and returning the response for the requested measurement sources.[0m [1;31mpost_analysis_session_hooks: List of callable objects to be run after an analysis session ends.[0m [1;34mpost_presentation_hooks: List of callable objects to be run after each pattern is presented.[0m [1;31mpre_analysis_session_hooks: List of callable objects to be run before an analysis session begins.[0m [1;34mpre_presentation_hooks: List of callable objects to be run before each pattern is presented.[0m [1;31mrepetitions: How many times each stimulus will be presented.[0m [1;31m [0m [1;31m Each stimulus is specified by a particular feature combination, and[0m [1;31m need only be presented once if the network has no other source of[0m [1;31m variability. If results differ for each presentation of an identical[0m [1;31m stimulus (e.g. due to intrinsic noise), then this parameter can be[0m [1;31m increased so that results will be an average over the specified number[0m [1;31m of repetitions.[0m [1;34mroi: If non-zero, specifies the subregion to perform reverse correlation[0m [1;34m on.[0m [1;31mstatic_features: Dictionary containing name value pairs of a feature, which is to be[0m [1;31m varied across measurements.[0m [1;34mstore_responses: Determines whether or not to return the full set of responses to the[0m [1;34m presented patterns.[0m
param Boolean continue_measurement (allow_None=False, bounds=(0, 1), constant=False, default=True, instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.__init__.FeatureResponses
params(preference_fn=ClassSelector, selectivity_multiplier=Number, cmd_overrides=Dict, durations=List, inputs=List, measurement_prefix=String, measurement_storage_hook=Callable, metadata_fns=HookList, metafeature_fns=HookList, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, repetitions=Integer, static_features=Dict, store_responses=Boolean, post_analysis_session_hooks=HookList, post_presentation_hooks=HookList, pre_analysis_session_hooks=HookList, pre_presentation_hooks=HookList, name=String)
Measure and collect the responses to a set of features, for calculating feature maps.
For each feature and each measurement source, 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.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
cmd_overrides {} Dict V RW durations [1.0] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW measurement_storage_hook None Callable V RW AN metadata_fns [] HookList (0, None) V RW metafeature_fns [] HookList (0, None) V RW outputs [] List (0, None) V RW pattern_generator None Callable V RW AN pattern_response_fn None Callable V RW AN post_analysis_session_hooks [] HookList (0, None) V RW post_presentation_hooks [] HookList (0, None) V RW pre_analysis_session_hooks [] HookList (0, None) V RW pre_presentation_hooks [] HookList (0, None) V RW preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW repetitions 1 Integer (1, None) V RW selectivity_multiplier 17.0 Number V RW static_features {} Dict V RW store_responses False Boolean (0, 1) V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcmd_overrides: Dictionary used to overwrite parameters on the pattern_response_fn.[0m [1;31mdurations: Times after presentation,[0m [1;31m when a measurement is taken.[0m [1;34minputs: Names of the input supplied to[0m [1;34m the metadata_fns to filter out desired inputs.[0m [1;31mmeasurement_prefix: Prefix to add to the name under which results are stored.[0m [1;34mmeasurement_storage_hook: Interface to store measurements after they have been completed.[0m [1;31mmetadata_fns: Interface functions for metadata. Should return a dictionary that at a[0m [1;31m minimum must contain the name and dimensions of the inputs and outputs[0m [1;31m for pattern presentation and response measurement.[0m [1;34mmetafeature_fns: Metafeature functions can be used to coordinate lower level features[0m [1;34m across input devices or depending on a metafeature set on the function[0m [1;34m itself.[0m [1;31moutputs: Names of the output source supplied to metadata_fns to filter out[0m [1;31m desired outputs.[0m [1;34mpattern_generator: Defines the input pattern to be presented.[0m [1;31mpattern_response_fn: Presenter command responsible for presenting the input patterns provided[0m [1;31m to it and returning the response for the requested measurement sources.[0m [1;34mpost_analysis_session_hooks: List of callable objects to be run after an analysis session ends.[0m [1;31mpost_presentation_hooks: List of callable objects to be run after each pattern is presented.[0m [1;34mpre_analysis_session_hooks: List of callable objects to be run before an analysis session begins.[0m [1;31mpre_presentation_hooks: List of callable objects to be run before each pattern is presented.[0m [1;34mpreference_fn: Function for computing a scalar-valued preference, selectivity,[0m [1;34m etc. from the distribution of responses. Note that this default[0m [1;34m is overridden by specific functions for individual features, if[0m [1;34m specified in the Feature objects.[0m [1;31mrepetitions: How many times each stimulus will be presented.[0m [1;31m [0m [1;31m Each stimulus is specified by a particular feature combination, and[0m [1;31m need only be presented once if the network has no other source of[0m [1;31m variability. If results differ for each presentation of an identical[0m [1;31m stimulus (e.g. due to intrinsic noise), then this parameter can be[0m [1;31m increased so that results will be an average over the specified number[0m [1;31m of repetitions.[0m [1;34mselectivity_multiplier: Scaling of the feature selectivity values, applied in all[0m [1;34m feature dimensions. The multiplier sets the output scaling.[0m [1;34m The precise value is arbitrary, and set to match historical[0m [1;34m usage.[0m [1;31mstatic_features: Dictionary containing name value pairs of a feature, which is to be[0m [1;31m varied across measurements.[0m [1;34mstore_responses: Determines whether or not to return the full set of responses to the[0m [1;34m presented patterns.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.__init__.FeatureResponses
params(x_axis=String, cmd_overrides=Dict, durations=List, inputs=List, measurement_prefix=String, measurement_storage_hook=Callable, metadata_fns=HookList, metafeature_fns=HookList, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, repetitions=Integer, static_features=Dict, store_responses=Boolean, post_analysis_session_hooks=HookList, post_presentation_hooks=HookList, pre_analysis_session_hooks=HookList, pre_presentation_hooks=HookList, name=String)
Measures and collects the responses to a set of features, for calculating tuning and similar curves.
These curves represent the response of a measurement source 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).
A particular set of patterns is constructed using a user-specified pattern_generator 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 input patterns will then be passed to the pattern_response_fn, which should return the measured responses for each of the requested sheets. Once the responses to all feature permutations has been accumulated, the measured curves are passed to the storage_fn and are finally returned.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
cmd_overrides {} Dict V RW durations [1.0] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW measurement_storage_hook None Callable V RW AN metadata_fns [] HookList (0, None) V RW metafeature_fns [] HookList (0, None) V RW outputs [] List (0, None) V RW pattern_generator None Callable V RW AN pattern_response_fn None Callable V RW AN post_analysis_session_hooks [] HookList (0, None) V RW post_presentation_hooks [] HookList (0, None) V RW pre_analysis_session_hooks [] HookList (0, None) V RW pre_presentation_hooks [] HookList (0, None) V RW repetitions 1 Integer (1, None) V RW static_features {} Dict V RW store_responses False Boolean (0, 1) V RW x_axis None String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcmd_overrides: Dictionary used to overwrite parameters on the pattern_response_fn.[0m [1;31mdurations: Times after presentation,[0m [1;31m when a measurement is taken.[0m [1;34minputs: Names of the input supplied to[0m [1;34m the metadata_fns to filter out desired inputs.[0m [1;31mmeasurement_prefix: Prefix to add to the name under which results are stored.[0m [1;34mmeasurement_storage_hook: Interface to store measurements after they have been completed.[0m [1;31mmetadata_fns: Interface functions for metadata. Should return a dictionary that at a[0m [1;31m minimum must contain the name and dimensions of the inputs and outputs[0m [1;31m for pattern presentation and response measurement.[0m [1;34mmetafeature_fns: Metafeature functions can be used to coordinate lower level features[0m [1;34m across input devices or depending on a metafeature set on the function[0m [1;34m itself.[0m [1;31moutputs: Names of the output source supplied to metadata_fns to filter out[0m [1;31m desired outputs.[0m [1;34mpattern_generator: Defines the input pattern to be presented.[0m [1;31mpattern_response_fn: Presenter command responsible for presenting the input patterns provided[0m [1;31m to it and returning the response for the requested measurement sources.[0m [1;34mpost_analysis_session_hooks: List of callable objects to be run after an analysis session ends.[0m [1;31mpost_presentation_hooks: List of callable objects to be run after each pattern is presented.[0m [1;34mpre_analysis_session_hooks: List of callable objects to be run before an analysis session begins.[0m [1;31mpre_presentation_hooks: List of callable objects to be run before each pattern is presented.[0m [1;34mrepetitions: How many times each stimulus will be presented.[0m [1;34m [0m [1;34m Each stimulus is specified by a particular feature combination, and[0m [1;34m need only be presented once if the network has no other source of[0m [1;34m variability. If results differ for each presentation of an identical[0m [1;34m stimulus (e.g. due to intrinsic noise), then this parameter can be[0m [1;34m increased so that results will be an average over the specified number[0m [1;34m of repetitions.[0m [1;31mstatic_features: Dictionary containing name value pairs of a feature, which is to be[0m [1;31m varied across measurements.[0m [1;34mstore_responses: Determines whether or not to return the full set of responses to the[0m [1;34m presented patterns.[0m [1;31mx_axis: Parameter to use for the x axis of tuning curves.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: holoviews.core.dimension.Dimension
params(compute_fn=Callable, offset=Number, preference_fn=ClassSelector, steps=Integer, cyclic=Boolean, range=Tuple, soft_range=Tuple, type=Parameter, unit=String, value_format=Callable, values=ClassSelector, name=String)
Specifies several parameters required for generating a map of one input feature.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
compute_fn None Callable V RW AN cyclic False Boolean (0, 1) V RW offset 0.0 Number V RW preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW AN range (None, None) Tuple V RW soft_range (None, None) Tuple V RW steps 0 Integer V RW type None Parameter V RW AN unit None String V RW AN value_format None Callable V RW AN values [] ClassSelector V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcompute_fn: If non-None, a function that when given a list of other parameter[0m [1;34m values, computes and returns the value for this feature.[0m [1;31mcyclic: Whether the range of this feature is cyclic such that the[0m [1;31m maximum allowed value (defined by the range parameter) is[0m [1;31m continuous with the minimum allowed value.[0m [1;34moffset: Offset to add to the values for this feature[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit response[0m [1;31m to this feature.[0m [1;34mrange: Specifies the minimum and maximum allowed values for a[0m [1;34m Dimension. None is used to represent an unlimited bound.[0m [1;31msoft_range: Specifies a minimum and maximum reference value, which[0m [1;31m may be overridden by the data.[0m [1;34msteps: Number of steps, between lower and upper range value, to be presented.[0m [1;31mtype: Optional type associated with the Dimension values. The type[0m [1;31m may be an inbuilt constructor (such as int, str, float) or a[0m [1;31m custom class object.[0m [1;34munit: Optional unit string associated with the Dimension. For[0m [1;34m instance, the string ‘m’ may be used represent units of meters[0m [1;34m and ‘s’ to represent units of seconds.[0m [1;31mvalue_format: Formatting function applied to each value before display.[0m [1;34mvalues: Optional set of allowed values for the dimension that can also[0m [1;34m be used to retain a categorical ordering. Setting values to[0m [1;34m ‘initial’ indicates that the values will be added during construction.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
The pretty-printed label string for the Dimension
Applies the defined formatting to the value.
Pretty prints the dimension name and value using the global title_format variable, including the unit string (if set). Numeric types are printed to the stated rounding level.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
User-level measurement commands, typically for measuring or generating SheetViews.
The file defines base classes for defining measurements and a large set of predefined measurement commands.
Some of the commands are ordinary Python functions, but the rest are ParameterizedFunctions, which act like Python functions but support Parameters with defaults, bounds, inheritance, etc. These commands are usually grouped together using inheritance so that they share a set of parameters and some code, and only the bits that are specific to that particular plot or analysis appear below. See the superclasses for the rest of the parameters and code.
Bases: featuremapper.command.PositionMeasurementCommand
params(angle_0=Number, angle_1=Number, num_angle=Integer, num_or=Integer, positions=Integer, divisions=Integer, size=Number, x_range=NumericTuple, y_range=NumericTuple, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String) Generate the preference map for angle shapes, by collating the response to patterns. [1;32mParameters of ‘measure_corner_angle_pref’ ========================================= [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
angle_0 0.7853981633974483 Number (0.0, 3.14159265359) V RW angle_1 2.356194490192345 Number (0.0, 3.14159265359) V RW divisions 7 Integer (1, None) V RW durations [1.0] Parameter V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_angle 4 Integer (1,[1;36m 12[0m) V RW num_or 4 Integer (1,[1;36m 24[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator GaussiansCorner(angle=1.5707963267948... Callable V RW pattern_response_fn None Callable V RW AN positions 7 Integer V RW preference_fn DSF_MaxValue(name=’DSF_MaxValue01117’... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 1.0 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.2 Number (0, None) V RW static_parameters [‘size’, ‘scale’, ‘offset’] List (0, None) V RW subplot ‘’ String V RW x_range (-1.0, 1.0) NumericTuple V RW y_range (-1.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mangle_0: First angle to test.[0m [1;31mangle_1: Last angle to test.[0m [1;34mdivisions: The number of different positions to measure in X and in Y.[0m [1;31mdurations: Times after presentation[0m [1;31m begins at which to record a measurement.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_angle: Number of angles to test.[0m [1;34mnum_or: Number of orientations to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Callable object that will present a parameter-controlled[0m [1;31m pattern to a set of Sheets. For measuring position, the[0m [1;31m pattern_presenter should be spatially localized, yet also able[0m [1;31m to activate the appropriate neurons reliably.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpositions: < No docstring available >[0m [1;34mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;34m responses.[0m [1;31mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;34mscale: Multiplicative strength of input pattern.[0m [1;31msize: The size of the pattern to present.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m [1;34mx_range: The range of X values to test.[0m [1;31my_range: The range of Y values to test.[0m
param Integer positions (allow_None=False, bounds=None, constant=False, default=7, inclusive_bounds=(True, True), instantiate=False, pickle_default_value=True, precedence=None, readonly=False, time_dependent=False, time_fn=<Time Time00001>)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.PositionMeasurementCommand
params(num_orientation=Integer, divisions=Integer, size=Number, x_range=NumericTuple, y_range=NumericTuple, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String) Measure a corner preference map by collating the response to patterns. [1;32mParameters of ‘measure_corner_or_pref’ ====================================== [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
divisions 11 Integer (1, None) V RW durations [1.0] Parameter V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_orientation 4 Integer (1,[1;36m 24[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator Composite(bounds=BoundingBox(radius=0... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_MaxValue(name=’DSF_MaxValue01117’... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 1.0 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.5 Number (0, None) V RW static_parameters [‘scale’, ‘offset’] List (0, None) V RW subplot ‘’ String V RW x_range (-1.2, 1.2) NumericTuple V RW y_range (-1.2, 1.2) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdivisions: The number of different positions to measure in X and in Y.[0m [1;31mdurations: Times after presentation[0m [1;31m begins at which to record a measurement.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34moffset: Additive offset to input pattern.[0m [1;31moutputs: Name of output sources supplied[0m [1;31m to metadata_fns to filter out desired output.[0m [1;34mpattern_generator: Callable object that will present a parameter-controlled[0m [1;34m pattern to a set of Sheets. For measuring position, the[0m [1;34m pattern_presenter should be spatially localized, yet also able[0m [1;34m to activate the appropriate neurons reliably.[0m [1;31mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;31m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;31m The attributes duration and apply_output_fns (if non-None) will[0m [1;31m be set on this object, and it should respect those if possible.[0m [1;34mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;34m responses.[0m [1;31mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;34mscale: Multiplicative strength of input pattern.[0m [1;31msize: The size of the pattern to present.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m [1;34mx_range: The range of X values to test.[0m [1;31my_range: The range of Y values to test.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.SinusoidalMeasureResponseCommand
params(max_speed=Number, num_direction=Integer, num_speeds=Integer, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String) Measure a direction preference map by collating the response to patterns. [1;32mParameters of ‘measure_dr_pref’ =============================== [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW max_speed 0.08333333333333333 Number (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_direction 6 Integer (1,[1;36m 48[0m) V RW num_orientation 4 Integer (1,[1;36m 24[0m) V RW num_phase 12 Integer (1,[1;36m 48[0m) V RW num_speeds 4 Integer (0,[1;36m 10[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [‘scale’, ‘offset’] List (0, None) V RW subplot ‘Direction’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmax_speed: The maximum speed to measure (with zero always the minimum).[0m [1;34mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;34m part of a measurement response.[0m [1;31mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;31m coordinated changes to a set of inputs based on some parameter or feature[0m [1;31m value. Can be used to present different patterns to different inputs or[0m [1;31m to control complex features like contrast.[0m [1;34mnum_direction: Number of directions to test.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31mnum_speeds: Number of speeds to test (where zero means only static patterns).[0m [1;34moffset: Additive offset to input pattern.[0m [1;31moutputs: Name of output sources supplied[0m [1;31m to metadata_fns to filter out desired output.[0m [1;34mpattern_generator: Pattern to be presented on the inputs.[0m [1;31mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;31m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;31m The attributes duration and apply_output_fns (if non-None) will[0m [1;31m be set on this object, and it should respect those if possible.[0m [1;34mpreference_fn: Function that will be used to analyze the distributions of[0m [1;34m unit responses. Sets value_scale to normalize direction[0m [1;34m preference values.[0m [1;31mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;34mscale: Multiplicative strength of input pattern.[0m [1;31mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;31m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;31m to a single value during measurement.[0m [1;34msubplot: Name of map to register as a subplot, if any.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.SinusoidalMeasureResponseCommand
params(num_hue=Integer, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String) Measure a hue preference map by collating the response to patterns. [1;32mParameters of ‘measure_hue_pref’ ================================ [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_hue 8 Integer (1,[1;36m 48[0m) V RW num_orientation 4 Integer (1,[1;36m 24[0m) V RW num_phase 12 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [] List (0, None) V RW subplot ‘Hue’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_hue: Number of hues to test.[0m [1;34mnum_orientation: Number of orientations to test.[0m [1;31mnum_phase: Number of phases to test.[0m [1;34moffset: Additive offset to input pattern.[0m [1;31moutputs: Name of output sources supplied[0m [1;31m to metadata_fns to filter out desired output.[0m [1;34mpattern_generator: Pattern to be presented on the inputs.[0m [1;31mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;31m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;31m The attributes duration and apply_output_fns (if non-None) will[0m [1;31m be set on this object, and it should respect those if possible.[0m [1;34mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;34m responses.[0m [1;31mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;34mscale: Multiplicative strength of input pattern.[0m [1;31mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;31m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;31m to a single value during measurement.[0m [1;34msubplot: Name of map to register as a subplot, if any.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.SinusoidalMeasureResponseCommand
params(frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measure an ocular dominance preference map by collating the response to patterns.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_orientation 4 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [‘scale’, ‘offset’] List (0, None) V RW subplot ‘’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.SinusoidalMeasureResponseCommand
params(frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String) Measure an orientation preference map by collating the response to patterns. [1;32mParameters of ‘measure_or_pref’ =============================== [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_orientation 4 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [‘scale’, ‘offset’] List (0, None) V RW subplot ‘Orientation’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.SinusoidalMeasureResponseCommand
params(num_disparity=Integer, orientation=Number, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measure a phase disparity preference map by collating the response to patterns.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_disparity 12 Integer (1,[1;36m 48[0m) V RW num_orientation 4 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW orientation 1.5707963267948966 Number ([1;36m0.0[0m,[1;36m 6.28318530718[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [‘orientation’, ‘scale’, ‘offset’] List (0, None) V RW subplot ‘’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_disparity: Number of disparity values to test.[0m [1;34mnum_orientation: Number of orientations to test.[0m [1;31mnum_phase: Number of phases to test.[0m [1;34moffset: Additive offset to input pattern.[0m [1;31morientation: Orientation of the test pattern; typically vertical to measure[0m [1;31m horizontal disparity.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.FeatureResponses
params(input_patterns=Dict, cmd_overrides=Dict, durations=List, inputs=List, measurement_prefix=String, measurement_storage_hook=Callable, metadata_fns=HookList, metafeature_fns=HookList, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, repetitions=Integer, static_features=Dict, store_responses=Boolean, post_analysis_session_hooks=HookList, post_presentation_hooks=HookList, pre_analysis_session_hooks=HookList, pre_presentation_hooks=HookList, name=String) [1;32mParameters of ‘measure_response’ ================================ [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
cmd_overrides {} Dict V RW durations [1.0] List (0, None) V RW input_patterns {} Dict V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW measurement_storage_hook None Callable V RW AN metadata_fns [] HookList (0, None) V RW metafeature_fns [] HookList (0, None) V RW outputs [] List (0, None) V RW pattern_generator Gaussian(aspect_ratio=3.2258064516129... Callable V RW pattern_response_fn None Callable V RW AN post_analysis_session_hooks [] HookList (0, None) V RW post_presentation_hooks [] HookList (0, None) V RW pre_analysis_session_hooks [] HookList (0, None) V RW pre_presentation_hooks [] HookList (0, None) V RW repetitions 1 Integer (1, None) V RW static_features {} Dict V RW store_responses False Boolean (0, 1) V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcmd_overrides: Dictionary used to overwrite parameters on the pattern_response_fn.[0m [1;31mdurations: Times after presentation,[0m [1;31m when a measurement is taken.[0m [1;34minput_patterns: Assigns patterns to different inputs overriding the[0m [1;34m pattern_generator parameter. If all inputs have not been[0m [1;34m assigned a pattern, remaining inputs will be presented a[0m [1;34m blank pattern.[0m [1;31minputs: Names of the input supplied to[0m [1;31m the metadata_fns to filter out desired inputs.[0m [1;34mmeasurement_prefix: Prefix to add to the name under which results are stored.[0m [1;31mmeasurement_storage_hook: Interface to store measurements after they have been completed.[0m [1;34mmetadata_fns: Interface functions for metadata. Should return a dictionary that at a[0m [1;34m minimum must contain the name and dimensions of the inputs and outputs[0m [1;34m for pattern presentation and response measurement.[0m [1;31mmetafeature_fns: Metafeature functions can be used to coordinate lower level features[0m [1;31m across input devices or depending on a metafeature set on the function[0m [1;31m itself.[0m [1;34moutputs: Names of the output source supplied to metadata_fns to filter out[0m [1;34m desired outputs.[0m [1;31mpattern_generator: Callable object that will generate input patterns coordinated[0m [1;31m using a list of meta parameters.[0m [1;34mpattern_response_fn: Presenter command responsible for presenting the input patterns provided[0m [1;34m to it and returning the response for the requested measurement sources.[0m [1;31mpost_analysis_session_hooks: List of callable objects to be run after an analysis session ends.[0m [1;34mpost_presentation_hooks: List of callable objects to be run after each pattern is presented.[0m [1;31mpre_analysis_session_hooks: List of callable objects to be run before an analysis session begins.[0m [1;34mpre_presentation_hooks: List of callable objects to be run before each pattern is presented.[0m [1;31mrepetitions: How many times each stimulus will be presented.[0m [1;31m [0m [1;31m Each stimulus is specified by a particular feature combination, and[0m [1;31m need only be presented once if the network has no other source of[0m [1;31m variability. If results differ for each presentation of an identical[0m [1;31m stimulus (e.g. due to intrinsic noise), then this parameter can be[0m [1;31m increased so that results will be an average over the specified number[0m [1;31m of repetitions.[0m [1;34mstatic_features: Dictionary containing name value pairs of a feature, which is to be[0m [1;34m varied across measurements.[0m [1;31mstore_responses: Determines whether or not to return the full set of responses to the[0m [1;31m presented patterns.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.SingleInputResponseCommand
params(presentations=Number, roi=NumericTuple, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Map receptive fields by reverse correlation.
Presents a large collection of input patterns, typically white noise, keeping track of which units in the specified input_sheet were active when each unit in other Sheets in the simulation was active. This data can then be used to plot receptive fields for each unit. Note that the results are true receptive fields, not the connection fields usually presented in lieu of receptive fields, because they take all circuitry in between the input and the target unit into account.
Note also that it is crucial to set the scale parameter properly when using units with a hard activation threshold (as opposed to a smooth sigmoid), because the input pattern used here may not be a very effective way to drive the unit to activate. The value should be set high enough that the target units activate at least some of the time there is a pattern on the input.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
durations [1.0] Parameter V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW offset 0.5 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator UniformRandom(bounds=BoundingBox(radi... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_MaxValue(name=’DSF_MaxValue01117’... ClassSelector V RW preference_lookup_fn None Callable V RW AN presentations 100 Number V RW roi (0, 0, 0, 0) NumericTuple V RW scale 30.0 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [‘scale’, ‘offset’] List (0, None) V RW subplot ‘’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31minputs: Name of input supplied to the[0m [1;31m metadata_fns to filter out desired input.[0m [1;34mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;34m part of a measurement response.[0m [1;31mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;31m coordinated changes to a set of inputs based on some parameter or feature[0m [1;31m value. Can be used to present different patterns to different inputs or[0m [1;31m to control complex features like contrast.[0m [1;34moffset: Additive offset to input pattern.[0m [1;31moutputs: Name of output sources supplied[0m [1;31m to metadata_fns to filter out desired output.[0m [1;34mpattern_generator: Presented pattern for reverse correlation, usually white noise.[0m [1;31mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;31m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;31m The attributes duration and apply_output_fns (if non-None) will[0m [1;31m be set on this object, and it should respect those if possible.[0m [1;34mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;34m responses.[0m [1;31mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;34mpresentations: Number of presentations to run the reverse correlation for.[0m [1;31mroi: If non-zero ROI bounds is specified only the RFs in that[0m [1;31m subregion are recorded.[0m [1;34mscale: Multiplicative strength of input pattern.[0m [1;31mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;31m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;31m to a single value during measurement.[0m [1;34msubplot: Name of map to register as a subplot, if any.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.SinusoidalMeasureResponseCommand
params(true_peak=Boolean, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String) Measure the secondary orientation preference maps. [1;32mParameters of ‘measure_second_or_pref’ ====================================== [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_orientation 16 Integer (1,[1;36m 64[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [‘scale’, ‘offset’] List (0, None) V RW subplot ‘Second Orientation’ String V RW true_peak True Boolean (0, 1) V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m [1;34mtrue_peak: If set the second[0m [1;34m orientation response is computed on the true second mode of the[0m [1;34m orientation distribution, otherwise is just the second maximum[0m [1;34m response[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.SinusoidalMeasureResponseCommand
params(max_speed=Number, num_direction=Integer, num_disparity=Integer, num_hue=Integer, num_ocularity=Integer, num_speeds=Integer, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measure preferences for sine gratings in various combinations. Can measure orientation, spatial frequency, spatial phase, ocular dominance, horizontal phase disparity, color hue, motion direction, and speed of motion.
In practice, this command is useful for any subset of the possible combinations, but if all combinations are included, the number of input patterns quickly grows quite large, much larger than the typical number of patterns required for an entire simulation. Thus typically this command will be used for the subset of dimensions that need to be evaluated together, while simpler special-purpose routines are provided below for other dimensions (such as hue and disparity).
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW max_speed 0.08333333333333333 Number (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_direction 0 Integer (0,[1;36m 48[0m) V RW num_disparity 1 Integer (1,[1;36m 48[0m) V RW num_hue 1 Integer (1,[1;36m 48[0m) V RW num_ocularity 1 Integer (1,[1;36m 3[0m) V RW num_orientation 4 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW num_speeds 4 Integer (0,[1;36m 10[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [‘scale’, ‘offset’] List (0, None) V RW subplot ‘Orientation’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmax_speed: The maximum speed to measure (with zero always the minimum).[0m [1;34mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;34m part of a measurement response.[0m [1;31mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;31m coordinated changes to a set of inputs based on some parameter or feature[0m [1;31m value. Can be used to present different patterns to different inputs or[0m [1;31m to control complex features like contrast.[0m [1;34mnum_direction: Number of directions to test. If nonzero, overrides num_orientation,[0m [1;34m because the orientation is calculated to be perpendicular to the direction.[0m [1;31mnum_disparity: Number of disparity values to test; set to 1 to disable or e.g. 12 to enable.[0m [1;34mnum_hue: Number of hues to test; set to 1 to disable or e.g. 8 to enable.[0m [1;31mnum_ocularity: Number of ocularity values to test; set to 1 to disable or 2 to enable.[0m [1;34mnum_orientation: Number of orientations to test.[0m [1;31mnum_phase: Number of phases to test.[0m [1;34mnum_speeds: Number of speeds to test (where zero means only static patterns).[0m [1;34m Ignored when num_direction=0.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.UnitCurveCommand
params(relative_orientations=List, coords=List, size=Number, contrasts=List, x_axis=String, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measures contrast response curves for a particular unit.
Uses a circular sine grating stimulus at the preferred orientation and retinal position of the specified unit. Orientation and position preference must be calulated before measuring contrast response.
The curve can be plotted at various different values of the contrast (or actually any other parameter) of the stimulus. If using contrast and the network contains an LGN layer, then one would usually specify weber_contrast as the contrast_parameter. If there is no explicit LGN, then scale (offset=0.0) can be used to define the contrast. Other relevant contrast definitions (or other parameters) can also be used, provided they are defined in CoordinatedPatternGenerator and the units parameter is changed as appropriate.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
contrasts [10, 20, 30, 40, 50, 60, 70, 80, 90, ... List (0, None) V RW coords [(0, 0)] List (0, None) V RW durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [contrast2scale(contrast_parameter=’w... HookList (0, None) V RW num_orientation 12 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN relative_orientations [0.0, 0.5235987755982988, 0.785398163... List (0, None) V RW scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.5 Number (0, None) V RW static_parameters [‘size’, ‘x’, ‘y’] List (0, None) V RW subplot ‘’ String V RW x_axis ‘contrast’ String C RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrasts: < No docstring available >[0m [1;31mcoords: List of coordinates of units to measure.[0m [1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mrelative_orientations: < No docstring available >[0m [1;34mscale: Multiplicative strength of input pattern.[0m [1;31msize: The size of the pattern to present.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m [1;34mx_axis: Parameter to use for the x axis of tuning curves.[0m
param List relative_orientations (allow_None=False, bounds=(0, None), constant=False, default=[0.0, 0.5235987755982988, 0.7853981633974483, 1.5707963267948966], instantiate=True, pickle_default_value=True, precedence=None, readonly=False)
param List contrasts (allow_None=False, bounds=(0, None), constant=False, default=[10, 20, 30, 40, 50, 60, 70, 80, 90, 100], instantiate=True, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.UnitCurveCommand
params(max_freq=Number, num_freq=Integer, coords=List, size=Number, contrasts=List, x_axis=String, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measure spatial frequency preference of one unit of a sheet.
Uses an constant circular sine grating stimulus at the preferred with varying spatial frequency orientation and retinal position of the specified unit. Orientation and position preference must be calulated before measuring size response.
The curve can be plotted at various different values of the contrast (or actually any other parameter) of the stimulus. If using contrast and the network contains an LGN layer, then one would usually specify weber_contrast as the contrast_parameter. If there is no explicit LGN, then scale (offset=0.0) can be used to define the contrast. Other relevant contrast definitions (or other parameters) can also be used, provided they are defined in one of the appropriate metaparameter_fns.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
contrasts [30, 60, 80, 90] List (0, None) V RW coords [(0, 0)] List (0, None) V RW durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW max_freq 10.0 Number (0.1,[1;36m 50[0m) V RW measurement_prefix ‘’ String V RW metafeature_fns [contrast2scale(contrast_parameter=’w... HookList (0, None) V RW num_freq 21 Integer (1,[1;36m 50[0m) V RW num_orientation 12 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.5 Number (0, None) V RW static_parameters [‘orientation’, ‘x’, ‘y’] List (0, None) V RW subplot ‘’ String V RW x_axis ‘frequency’ String C RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrasts: < No docstring available >[0m [1;31mcoords: List of coordinates of units to measure.[0m [1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmax_freq: Maximum extent of the grating[0m [1;34mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;34m part of a measurement response.[0m [1;31mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;31m coordinated changes to a set of inputs based on some parameter or feature[0m [1;31m value. Can be used to present different patterns to different inputs or[0m [1;31m to control complex features like contrast.[0m [1;34mnum_freq: Number of different sizes to test.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34msize: The size of the pattern to present.[0m [1;31mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;31m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;31m to a single value during measurement.[0m [1;34msubplot: Name of map to register as a subplot, if any.[0m [1;31mx_axis: Parameter to use for the x axis of tuning curves.[0m
param List contrasts (allow_None=False, bounds=(0, None), constant=False, default=[30, 60, 80, 90], instantiate=True, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.UnitCurveCommand
params(coords=List, size=Number, contrasts=List, x_axis=String, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measures orientation tuning curve(s) of a particular unit.
Uses a circular sine grating patch as the stimulus on the retina.
The curve can be plotted at various different values of the contrast (or actually any other parameter) of the stimulus. If using contrast and the network contains an LGN layer, then one would usually specify weber_contrast as the contrast_parameter. If there is no explicit LGN, then scale (offset=0.0) can be used to define the contrast. Other relevant contrast definitions (or other parameters) can also be used, provided they are defined in CoordinatedPatternGenerator and the units parameter is changed as appropriate.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
contrasts [30, 60, 80, 90] List (0, None) V RW coords [(0, 0)] List (0, None) V RW durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [contrast2scale(contrast_parameter=’w... HookList (0, None) V RW num_orientation 12 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.5 Number (0, None) V RW static_parameters [‘size’, ‘x’, ‘y’] List (0, None) V RW subplot ‘’ String V RW x_axis ‘orientation’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrasts: < No docstring available >[0m [1;31mcoords: List of coordinates of units to measure.[0m [1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34msize: The size of the pattern to present.[0m [1;31mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;31m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;31m to a single value during measurement.[0m [1;34msubplot: Name of map to register as a subplot, if any.[0m [1;31mx_axis: Parameter to use for the x axis of tuning curves.[0m
param List contrasts (allow_None=False, bounds=(0, None), constant=False, default=[30, 60, 80, 90], instantiate=True, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.FeatureCurveCommand
params(coords=Parameter, contrasts=List, x_axis=String, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measures orientation tuning curve(s) of a particular unit using a full-field sine grating stimulus.
The curve can be plotted at various different values of the contrast (or actually any other parameter) of the stimulus. If using contrast and the network contains an LGN layer, then one would usually specify michelson_contrast as the contrast_parameter. If there is no explicit LGN, then scale (offset=0.0) can be used to define the contrast. Other relevant contrast definitions (or other parameters) can also be used, provided they are defined in CoordinatedPatternGenerator and the units parameter is changed as appropriate.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
contrasts [30, 60, 80, 90] List (0, None) V RW coords None Parameter V RW AN durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW num_orientation 12 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW static_parameters [] List (0, None) V RW subplot ‘’ String V RW x_axis ‘orientation’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrasts: < No docstring available >[0m [1;31mcoords: Ignored; here just to suppress warning.[0m [1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m [1;34mx_axis: Parameter to use for the x axis of tuning curves.[0m
param List contrasts (allow_None=False, bounds=(0, None), constant=False, default=[30, 60, 80, 90], instantiate=True, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.UnitCurveCommand
params(contrastcenter=Number, contrastsurround=List, orientation_center=Number, sizecenter=Number, sizesurround=Number, thickness=Number, coords=List, size=Number, contrasts=List, x_axis=String, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measures the response to a center sine grating disk and a surround sine grating ring at different contrasts of the central disk.
The central disk is set to the preferred orientation of the unit to be measured. The surround disk orientation (relative to the central grating) and contrast can be varied, as can the size of both disks.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
contrastcenter 100 Number (0, 100) V RW contrasts [30, 60, 80, 90] List (0, None) V RW contrastsurround [30, 60, 80, 90] List (0, None) V RW coords [(0, 0)] List (0, None) V RW durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [contrast2centersurroundscale(contras... HookList (0, None) V RW num_orientation 9 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW orientation_center 0.0 Number ([1;36m0.0[0m,[1;36m 3.14159265359[0m) V RW outputs [] List (0, None) V RW pattern_generator OrientationContrast(aspect_ratio=1.0,... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.5 Number (0, None) V RW sizecenter 0.5 Number (0, None) V RW sizesurround 1.0 Number (0, None) V RW static_parameters [‘x’, ‘y’, ‘sizecenter’, ‘sizesurroun... List (0, None) V RW subplot ‘’ String V RW thickness 0.5 Number (0,[1;36m 1.5[0m) V RW x_axis ‘orientationsurround’ String C RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrastcenter: Contrast of the center.[0m [1;31mcontrasts: < No docstring available >[0m [1;34mcontrastsurround: Contrast of the surround.[0m [1;31mcoords: List of coordinates of units to measure.[0m [1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34morientation_center: Orientation of the center grating patch[0m [1;31moutputs: Name of output sources supplied[0m [1;31m to metadata_fns to filter out desired output.[0m [1;34mpattern_generator: Pattern to be presented on the inputs.[0m [1;31mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;31m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;31m The attributes duration and apply_output_fns (if non-None) will[0m [1;31m be set on this object, and it should respect those if possible.[0m [1;34mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;34m responses.[0m [1;31mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;34mscale: Multiplicative strength of input pattern.[0m [1;31msize: The size of the pattern to present.[0m [1;34msizecenter: The size of the central pattern to present.[0m [1;31msizesurround: The size of the surround pattern to present.[0m [1;34mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;34m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;34m to a single value during measurement.[0m [1;31msubplot: Name of map to register as a subplot, if any.[0m [1;34mthickness: Ring thickness.[0m [1;31mx_axis: Parameter to use for the x axis of tuning curves.[0m
param List contrasts (allow_None=False, bounds=(0, None), constant=False, default=[30, 60, 80, 90], instantiate=True, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.PositionMeasurementCommand
params(divisions=Integer, size=Number, x_range=NumericTuple, y_range=NumericTuple, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String) Measure a position preference map by collating the response to patterns. [1;32mParameters of ‘measure_position_pref’ ===================================== [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
divisions 7 Integer (1, None) V RW durations [1.0] Parameter V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [<class ‘featuremapper.metaparams.con... HookList (0, None) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator Gaussian(aspect_ratio=1.0, bounds=Bou... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_MaxValue(name=’DSF_MaxValue01117’... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.5 Number (0, None) V RW static_parameters [‘scale’, ‘offset’, ‘size’] List (0, None) V RW subplot ‘’ String V RW x_range (-0.5, 0.5) NumericTuple V RW y_range (-0.5, 0.5) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mdivisions: The number of different positions to measure in X and in Y.[0m [1;31mdurations: Times after presentation[0m [1;31m begins at which to record a measurement.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Callable object that will present a parameter-controlled[0m [1;31m pattern to a set of Sheets. For measuring position, the[0m [1;31m pattern_presenter should be spatially localized, yet also able[0m [1;31m to activate the appropriate neurons reliably.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34msize: The size of the pattern to present.[0m [1;31mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;31m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;31m to a single value during measurement.[0m [1;34msubplot: Name of map to register as a subplot, if any.[0m [1;31mx_range: The range of X values to test.[0m [1;34my_range: The range of Y values to test.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.UnitCurveCommand
params(max_size=Number, num_sizes=Integer, coords=List, size=Number, contrasts=List, x_axis=String, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String)
Measure receptive field size of one unit of a sheet.
Uses an expanding circular sine grating stimulus at the preferred orientation and retinal position of the specified unit. Orientation and position preference must be calulated before measuring size response.
The curve can be plotted at various different values of the contrast (or actually any other parameter) of the stimulus. If using contrast and the network contains an LGN layer, then one would usually specify weber_contrast as the contrast_parameter. If there is no explicit LGN, then scale (offset=0.0) can be used to define the contrast. Other relevant contrast definitions (or other parameters) can also be used, provided they are defined in CoordinatedPatternGenerator and the units parameter is changed as appropriate.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
contrasts [30, 60, 80, 90] List (0, None) V RW coords [(0, 0)] List (0, None) V RW durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW max_size 1.0 Number (0.1,[1;36m 50[0m) V RW measurement_prefix ‘’ String V RW metafeature_fns [contrast2scale(contrast_parameter=’w... HookList (0, None) V RW num_orientation 12 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW num_sizes 11 Integer (1,[1;36m 50[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.5 Number (0, None) V RW static_parameters [‘orientation’, ‘x’, ‘y’] List (0, None) V RW subplot ‘’ String V RW x_axis ‘size’ String C RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrasts: < No docstring available >[0m [1;31mcoords: List of coordinates of units to measure.[0m [1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmax_size: Maximum extent of the grating[0m [1;34mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;34m part of a measurement response.[0m [1;31mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;31m coordinated changes to a set of inputs based on some parameter or feature[0m [1;31m value. Can be used to present different patterns to different inputs or[0m [1;31m to control complex features like contrast.[0m [1;34mnum_orientation: Number of orientations to test.[0m [1;31mnum_phase: Number of phases to test.[0m [1;34mnum_sizes: Number of different sizes to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34msize: The size of the pattern to present.[0m [1;31mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;31m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;31m to a single value during measurement.[0m [1;34msubplot: Name of map to register as a subplot, if any.[0m [1;31mx_axis: Parameter to use for the x axis of tuning curves.[0m
param List contrasts (allow_None=False, bounds=(0, None), constant=False, default=[30, 60, 80, 90], instantiate=True, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.command.UnitCurveCommand
params(units=String, coords=List, size=Number, contrasts=List, x_axis=String, frequencies=List, num_orientation=Integer, num_phase=Integer, inputs=List, metafeature_fns=HookList, offset=Number, outputs=List, pattern_generator=Callable, pattern_response_fn=Callable, preference_fn=ClassSelector, preference_lookup_fn=Callable, scale=Number, static_parameters=List, subplot=String, durations=Parameter, measurement_prefix=String, name=String) [1;32mParameters of ‘test_measure’ ============================ [0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
contrasts [30, 60, 80, 90] List (0, None) V RW coords [(0, 0)] List (0, None) V RW durations [1.0] Parameter V RW frequencies [2.4] List (0, None) V RW inputs [] List (0, None) V RW measurement_prefix ‘’ String V RW metafeature_fns [contrast2scale(contrast_parameter=’w... HookList (0, None) V RW num_orientation 12 Integer (1,[1;36m 24[0m) V RW num_phase 18 Integer (1,[1;36m 48[0m) V RW offset 0.0 Number ([1;36m-1.0[0m,[1;36m 1.0[0m) V RW outputs [] List (0, None) V RW pattern_generator SineGrating(bounds=BoundingBox(radius... Callable V RW pattern_response_fn None Callable V RW AN preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW preference_lookup_fn None Callable V RW AN scale 0.3 Number ([1;36m0.0[0m,[1;36m 2.0[0m) V RW size 0.5 Number (0, None) V RW static_parameters [‘size’, ‘x’, ‘y’] List (0, None) V RW subplot ‘’ String V RW units ‘ rad’ String V RW x_axis ‘contrast’ String C RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrasts: < No docstring available >[0m [1;31mcoords: List of coordinates of units to measure.[0m [1;34mdurations: Times after presentation[0m [1;34m begins at which to record a measurement.[0m [1;31mfrequencies: Sine grating frequencies to test.[0m [1;34minputs: Name of input supplied to the[0m [1;34m metadata_fns to filter out desired input.[0m [1;31mmeasurement_prefix: Optional prefix to add to the name under which results are stored as[0m [1;31m part of a measurement response.[0m [1;34mmetafeature_fns: Metafeature_fns is a hooklist, which accepts any function, which applies[0m [1;34m coordinated changes to a set of inputs based on some parameter or feature[0m [1;34m value. Can be used to present different patterns to different inputs or[0m [1;34m to control complex features like contrast.[0m [1;31mnum_orientation: Number of orientations to test.[0m [1;34mnum_phase: Number of phases to test.[0m [1;31moffset: Additive offset to input pattern.[0m [1;34moutputs: Name of output sources supplied[0m [1;34m to metadata_fns to filter out desired output.[0m [1;31mpattern_generator: Pattern to be presented on the inputs.[0m [1;34mpattern_response_fn: Callable object that will present a parameter-controlled pattern to a[0m [1;34m set of Sheets. Needs to be supplied by a subclass or in the call.[0m [1;34m The attributes duration and apply_output_fns (if non-None) will[0m [1;34m be set on this object, and it should respect those if possible.[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit[0m [1;31m responses.[0m [1;34mpreference_lookup_fn: Callable object that will look up a preferred feature values.[0m [1;31mscale: Multiplicative strength of input pattern.[0m [1;34msize: The size of the pattern to present.[0m [1;31mstatic_parameters: List of names of parameters of this class to pass to the[0m [1;31m pattern_presenter as static parameters, i.e. values that will be fixed[0m [1;31m to a single value during measurement.[0m [1;34msubplot: Name of map to register as a subplot, if any.[0m [1;31munits: < No docstring available >[0m [1;34mx_axis: Parameter to use for the x axis of tuning curves.[0m
param String units (allow_None=False, basestring=<type ‘basestring’>, constant=False, default= rad, instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
param List contrasts (allow_None=False, bounds=(0, None), constant=False, default=[30, 60, 80, 90], instantiate=True, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Distribution class
Bases: featuremapper.distribution.DescriptiveBimodalStatisticFn
params(selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Return the two peak values of distributions in the given matrix
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Return the bin with the second largest value. If there is one bin only, return it. This is not a correct result, however it is practical for plotting compatibility, and it will not mistakenly be claimed as secondary maximum, by forcing its selectivity to 0.0
Return preference and selectivity of the second peak in the distribution.
It is just the combination of second_peak_bin() and second_peak_selectivity(), with the advantage of avoiding a duplicate call of second_peak_bin(), if the user is interested in both preference and selectivity, as often is the case.
Return the bin with the second peak in the distribution. Unlike second_max_value_bin(), it does not return a bin which is the second largest value, if laying on a wing of the first peak, the second peak is returned only if the distribution is truly multimodal. If it isn’t, return the first peak (for compatibility with numpy array type, and plotting compatibility), however the corresponding selectivity will be forced to 0.0
Return the selectivity of the second peak in the distribution.
If the distribution has only one peak, return 0.0, and this value is also usefl to discriminate the validity of second_peak_bin()
Return the selectivity of the second largest value in the distribution. If there is one bin only, the selectivity is 0, since there is no second peack at all, and this value is also used to discriminate the validity of second_max_value_bin() Selectivity is computed in two ways depending on whether the variable is a cyclic, as in selectivity()
Return a measure of the peakedness of the distribution. The calculation differs depending on whether this is a cyclic variable. For a cyclic variable, returns the magnitude of the vector_sum() divided by the sum_value() (see _vector_selectivity for more details). For a non-cyclic variable, returns the max_value_bin()) as a proportion of the sum_value() (see _relative_selectivity for more details).
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Return the vector sum of the distribution as a tuple (magnitude, avgbinnum).
Each bin contributes a vector of length equal to its value, at a direction corresponding to the bin number. Specifically, the total bin number range is mapped into a direction range [0,2pi].
For a cyclic distribution, the avgbinnum will be a continuous measure analogous to the max_value_bin() of the distribution. But this quantity has more precision than max_value_bin() because it is computed from the entire distribution instead of just the peak bin. However, it is likely to be useful only for uniform or very dense sampling; with sparse, non-uniform sampling the estimates will be biased significantly by the particular samples chosen.
The avgbinnum is not meaningful when the magnitude is 0, because a zero-length vector has no direction. To find out whether such cases occurred, you can compare the value of undefined_vals before and after a series of calls to this function.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.distribution.VonMisesStatisticFn
params(worst_fit=Number, selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Return the two modes of distributions in the given matrix, by fit with von Mises function
The results of the main mode are available in self.{preference,selectivity,good_of_fit}, while the second mode results are in the first element of the self.more_modes list, as a dictionary with keys preference,selectivity,good_of_fit.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW worst_fit 0.5 Number (0.0,[1;36m 1.0[0m) V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m [1;34mworst_fit: Worst good-of-fitness value for accepting the distribution as mono- or bi-modal[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
computes the best fit of the bivariate von Mises function in the semi-circle. Return the tuple: (
orientation1_preference, orientation1_selectivity, goodness_of_fit1, orientation2_preference, orientation2_selectivity, goodness_of_fit2
) See fit_vm() for considerations about selectivity and goodness_of_fit
computes the best fit of the monovariate von Mises function in the semi-circle. Return a tuple with the orientation preference, in the same range of axis_bounds, the orientation selectivity, and an estimate of the goodness-of-fit, as the variance of the predicted orientation preference. The selectivity is given by the bandwith parameter of the von Mises function, modified for compatibility with other selectivity computations in this class. The bandwith parameter is transposed in logaritmic scale, and is normalized by the maximum value for the number of bins in the distribution, in order to give roughly 1.0 for a distribution with one bin at 1.0 an all the other at 0.0, and 0.0 for uniform distributions. The normalizing factor of the selectivity is fit for the total number of bins, using fit parameters computed offline. There are conditions that prevents apriori the possibility to fit the distribution:
- not enough bins, at least 4 are necessary
- the distribution is too flat, below the noise level
Note that these are the minimal conditions, their fulfillment does not warrant unimodality, is up to the user to check the goodness-of-fit value for an accurate acceptance of the fit.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Compute a simplified bimodal von Mises function
Two superposed von Mises functions, with different peak and bandwith values
Compute a simplified von Mises function.
Original formulation in Richard von Mises, “Wahrscheinlichkeitsrechnung und ihre Anwendungen in der Statistik und theoretischen Physik”, 1931, Deuticke, Leipzig; see also Mardia, K.V. and Jupp, P.E., ” Directional Statistics”, 1999, J. Wiley, p.36; http://en.wikipedia.org/wiki/Von_Mises_distribution The two differences are that this function is a continuous probability distribution on a semi-circle, while von Mises is on the full circle, and that the normalization factor, which is the inverse of the modified Bessel function of first kind and 0 degree in the original, is here a fit parameter.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.distribution.DescriptiveStatisticFn
params(selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Return the peak value of the given distribution
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Return a measure of the peakedness of the distribution. The calculation differs depending on whether this is a cyclic variable. For a cyclic variable, returns the magnitude of the vector_sum() divided by the sum_value() (see _vector_selectivity for more details). For a non-cyclic variable, returns the max_value_bin()) as a proportion of the sum_value() (see _relative_selectivity for more details).
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Return the vector sum of the distribution as a tuple (magnitude, avgbinnum).
Each bin contributes a vector of length equal to its value, at a direction corresponding to the bin number. Specifically, the total bin number range is mapped into a direction range [0,2pi].
For a cyclic distribution, the avgbinnum will be a continuous measure analogous to the max_value_bin() of the distribution. But this quantity has more precision than max_value_bin() because it is computed from the entire distribution instead of just the peak bin. However, it is likely to be useful only for uniform or very dense sampling; with sparse, non-uniform sampling the estimates will be biased significantly by the particular samples chosen.
The avgbinnum is not meaningful when the magnitude is 0, because a zero-length vector has no direction. To find out whether such cases occurred, you can compare the value of undefined_vals before and after a series of calls to this function.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.distribution.DescriptiveBimodalStatisticFn
params(selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Return the two max values of distributions in the given matrix
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Return the bin with the second largest value. If there is one bin only, return it. This is not a correct result, however it is practical for plotting compatibility, and it will not mistakenly be claimed as secondary maximum, by forcing its selectivity to 0.0
Return preference and selectivity of the second peak in the distribution.
It is just the combination of second_peak_bin() and second_peak_selectivity(), with the advantage of avoiding a duplicate call of second_peak_bin(), if the user is interested in both preference and selectivity, as often is the case.
Return the bin with the second peak in the distribution. Unlike second_max_value_bin(), it does not return a bin which is the second largest value, if laying on a wing of the first peak, the second peak is returned only if the distribution is truly multimodal. If it isn’t, return the first peak (for compatibility with numpy array type, and plotting compatibility), however the corresponding selectivity will be forced to 0.0
Return the selectivity of the second peak in the distribution.
If the distribution has only one peak, return 0.0, and this value is also usefl to discriminate the validity of second_peak_bin()
Return the selectivity of the second largest value in the distribution. If there is one bin only, the selectivity is 0, since there is no second peack at all, and this value is also used to discriminate the validity of second_max_value_bin() Selectivity is computed in two ways depending on whether the variable is a cyclic, as in selectivity()
Return a measure of the peakedness of the distribution. The calculation differs depending on whether this is a cyclic variable. For a cyclic variable, returns the magnitude of the vector_sum() divided by the sum_value() (see _vector_selectivity for more details). For a non-cyclic variable, returns the max_value_bin()) as a proportion of the sum_value() (see _relative_selectivity for more details).
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Return the vector sum of the distribution as a tuple (magnitude, avgbinnum).
Each bin contributes a vector of length equal to its value, at a direction corresponding to the bin number. Specifically, the total bin number range is mapped into a direction range [0,2pi].
For a cyclic distribution, the avgbinnum will be a continuous measure analogous to the max_value_bin() of the distribution. But this quantity has more precision than max_value_bin() because it is computed from the entire distribution instead of just the peak bin. However, it is likely to be useful only for uniform or very dense sampling; with sparse, non-uniform sampling the estimates will be biased significantly by the particular samples chosen.
The avgbinnum is not meaningful when the magnitude is 0, because a zero-length vector has no direction. To find out whether such cases occurred, you can compare the value of undefined_vals before and after a series of calls to this function.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.distribution.VonMisesStatisticFn
params(worst_fit=Number, selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Return the main mode of distribution in the given matrix, by fit with von Mises function.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW worst_fit 0.5 Number (0.0,[1;36m 1.0[0m) V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m [1;34mworst_fit: worst good-of-fitness value for accepting the distribution as monomodal[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
computes the best fit of the bivariate von Mises function in the semi-circle. Return the tuple: (
orientation1_preference, orientation1_selectivity, goodness_of_fit1, orientation2_preference, orientation2_selectivity, goodness_of_fit2
) See fit_vm() for considerations about selectivity and goodness_of_fit
computes the best fit of the monovariate von Mises function in the semi-circle. Return a tuple with the orientation preference, in the same range of axis_bounds, the orientation selectivity, and an estimate of the goodness-of-fit, as the variance of the predicted orientation preference. The selectivity is given by the bandwith parameter of the von Mises function, modified for compatibility with other selectivity computations in this class. The bandwith parameter is transposed in logaritmic scale, and is normalized by the maximum value for the number of bins in the distribution, in order to give roughly 1.0 for a distribution with one bin at 1.0 an all the other at 0.0, and 0.0 for uniform distributions. The normalizing factor of the selectivity is fit for the total number of bins, using fit parameters computed offline. There are conditions that prevents apriori the possibility to fit the distribution:
- not enough bins, at least 4 are necessary
- the distribution is too flat, below the noise level
Note that these are the minimal conditions, their fulfillment does not warrant unimodality, is up to the user to check the goodness-of-fit value for an accurate acceptance of the fit.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Compute a simplified bimodal von Mises function
Two superposed von Mises functions, with different peak and bandwith values
Compute a simplified von Mises function.
Original formulation in Richard von Mises, “Wahrscheinlichkeitsrechnung und ihre Anwendungen in der Statistik und theoretischen Physik”, 1931, Deuticke, Leipzig; see also Mardia, K.V. and Jupp, P.E., ” Directional Statistics”, 1999, J. Wiley, p.36; http://en.wikipedia.org/wiki/Von_Mises_distribution The two differences are that this function is a continuous probability distribution on a semi-circle, while von Mises is on the full circle, and that the normalization factor, which is the inverse of the modified Bessel function of first kind and 0 degree in the original, is here a fit parameter.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.distribution.DescriptiveStatisticFn
params(selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Return the main mode of the given distribution
The prefence value ia a continuous, interpolated equivalent of the max_value_bin(). For a cyclic distribution, this is the direction of the vector sum (see vector_sum()). For a non-cyclic distribution, this is the arithmetic average of the data on the bin_axis, where each bin is weighted by its value. 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, 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 max_value_bin should be used, and the number of test patterns will usually need to be increased instead.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Return a measure of the peakedness of the distribution. The calculation differs depending on whether this is a cyclic variable. For a cyclic variable, returns the magnitude of the vector_sum() divided by the sum_value() (see _vector_selectivity for more details). For a non-cyclic variable, returns the max_value_bin()) as a proportion of the sum_value() (see _relative_selectivity for more details).
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Return the vector sum of the distribution as a tuple (magnitude, avgbinnum).
Each bin contributes a vector of length equal to its value, at a direction corresponding to the bin number. Specifically, the total bin number range is mapped into a direction range [0,2pi].
For a cyclic distribution, the avgbinnum will be a continuous measure analogous to the max_value_bin() of the distribution. But this quantity has more precision than max_value_bin() because it is computed from the entire distribution instead of just the peak bin. However, it is likely to be useful only for uniform or very dense sampling; with sparse, non-uniform sampling the estimates will be biased significantly by the particular samples chosen.
The avgbinnum is not meaningful when the magnitude is 0, because a zero-length vector has no direction. To find out whether such cases occurred, you can compare the value of undefined_vals before and after a series of calls to this function.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.distribution.DescriptiveStatisticFn
params(selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Abstract class for descriptive statistics of two-modes distributions
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Return the bin with the second largest value. If there is one bin only, return it. This is not a correct result, however it is practical for plotting compatibility, and it will not mistakenly be claimed as secondary maximum, by forcing its selectivity to 0.0
Return preference and selectivity of the second peak in the distribution.
It is just the combination of second_peak_bin() and second_peak_selectivity(), with the advantage of avoiding a duplicate call of second_peak_bin(), if the user is interested in both preference and selectivity, as often is the case.
Return the bin with the second peak in the distribution. Unlike second_max_value_bin(), it does not return a bin which is the second largest value, if laying on a wing of the first peak, the second peak is returned only if the distribution is truly multimodal. If it isn’t, return the first peak (for compatibility with numpy array type, and plotting compatibility), however the corresponding selectivity will be forced to 0.0
Return the selectivity of the second peak in the distribution.
If the distribution has only one peak, return 0.0, and this value is also usefl to discriminate the validity of second_peak_bin()
Return the selectivity of the second largest value in the distribution. If there is one bin only, the selectivity is 0, since there is no second peack at all, and this value is also used to discriminate the validity of second_max_value_bin() Selectivity is computed in two ways depending on whether the variable is a cyclic, as in selectivity()
Return a measure of the peakedness of the distribution. The calculation differs depending on whether this is a cyclic variable. For a cyclic variable, returns the magnitude of the vector_sum() divided by the sum_value() (see _vector_selectivity for more details). For a non-cyclic variable, returns the max_value_bin()) as a proportion of the sum_value() (see _relative_selectivity for more details).
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Return the vector sum of the distribution as a tuple (magnitude, avgbinnum).
Each bin contributes a vector of length equal to its value, at a direction corresponding to the bin number. Specifically, the total bin number range is mapped into a direction range [0,2pi].
For a cyclic distribution, the avgbinnum will be a continuous measure analogous to the max_value_bin() of the distribution. But this quantity has more precision than max_value_bin() because it is computed from the entire distribution instead of just the peak bin. However, it is likely to be useful only for uniform or very dense sampling; with sparse, non-uniform sampling the estimates will be biased significantly by the particular samples chosen.
The avgbinnum is not meaningful when the magnitude is 0, because a zero-length vector has no direction. To find out whether such cases occurred, you can compare the value of undefined_vals before and after a series of calls to this function.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: featuremapper.distribution.DistributionStatisticFn
params(selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Abstract class for basic descriptive statistics
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Return a measure of the peakedness of the distribution. The calculation differs depending on whether this is a cyclic variable. For a cyclic variable, returns the magnitude of the vector_sum() divided by the sum_value() (see _vector_selectivity for more details). For a non-cyclic variable, returns the max_value_bin()) as a proportion of the sum_value() (see _relative_selectivity for more details).
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Return the vector sum of the distribution as a tuple (magnitude, avgbinnum).
Each bin contributes a vector of length equal to its value, at a direction corresponding to the bin number. Specifically, the total bin number range is mapped into a direction range [0,2pi].
For a cyclic distribution, the avgbinnum will be a continuous measure analogous to the max_value_bin() of the distribution. But this quantity has more precision than max_value_bin() because it is computed from the entire distribution instead of just the peak bin. However, it is likely to be useful only for uniform or very dense sampling; with sparse, non-uniform sampling the estimates will be biased significantly by the particular samples chosen.
The avgbinnum is not meaningful when the magnitude is 0, because a zero-length vector has no direction. To find out whether such cases occurred, you can compare the value of undefined_vals before and after a series of calls to this function.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: object
Holds a distribution of the values f(x) associated with a variable x.
A Distribution is a histogram-like object that is a dictionary of samples. Each sample is an x:f(x) pair, where x is called the bin and f(x) is called the value(). Each bin’s value is typically maintained as the sum of all the values that have been placed into it.
The bin axis is continuous, and can represent a continuous quantity without discretization. Alternatively, this class can be used as a traditional histogram by either discretizing the bin number before adding each sample, or by binning the values in the final Distribution.
Distributions are bounded by the specified axis_bounds, and can either be cyclic (like directions or hues) or non-cyclic. For cyclic distributions, samples provided outside the axis_bounds will be wrapped back into the bound range, as is appropriate for quantities like directions. For non-cyclic distributions, providing samples outside the axis_bounds will result in a ValueError.
In addition to the values, can also return the counts, i.e., the number of times that a sample has been added with the given bin.
Not all instances of this class will be a true distribution in the mathematical sense; e.g. the values will have to be normalized before they can be considered a probability distribution.
If keep_peak=True, the value stored in each bin will be the maximum of all values ever added, instead of the sum. The distribution will thus be a record of the maximum value seen at each bin, also known as an envelope.
Add a set of new data in the form of a dictionary of (bin, value) pairs. If the bin already exists, the value is added to the current value. If the bin doesn’t exist, one is created with that value.
Bin numbers outside axis_bounds are allowed for cyclic=True, but otherwise a ValueError is raised.
If keep_peak=True, the value of the bin is the maximum of the current value and the supplied value. That is, the bin stores the peak value seen so far. Note that each call will increase the total_value and total_count (and thus decrease the value_mag() and count_mag()) even if the value doesn’t happen to be the maximum seen so far, since each data point still helps improve the sampling and thus the confidence.
Return a list of values.
Various statistics can then be calculated if desired:
sum(counts) (total of all counts) max(counts) (highest count in any bin)
Note that the bin-order of values returned does not necessarily match that returned by values().
Return the count from the specified bin.
(Return None if there is no such bin.)
Return the value of the specified bin.
(Return None if there is no such bin.)
Subtract the given distribution from the current one. Only existing bins are modified, new bins in the given distribution are discarded without raising errors.
Note that total_value and total_count are not affected, and keep_peak is ignored, therefore analysis relying on these values should not call this method.
Bases: param.parameterized.Parameterized
params(selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Base class for various functions performing statistics on a distribution.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: dict
This class simply collects named arguments into a dictionary
the main purpose is to make pretty readable the output of DistributionStatisticFn functions. In addition, trap missing keys
v defaults to None.
If key is not found, d is returned if given, otherwise KeyError is raised
2-tuple; but raise KeyError if D is empty.
If E present and has a .keys() method, does: for k in E: D[k] = E[k] If E present and lacks .keys() method, does: for (k, v) in E: D[k] = v In either case, this is followed by: for k in F: D[k] = F[k]
Bases: featuremapper.distribution.DistributionStatisticFn
params(selectivity_scale=NumericTuple, value_scale=NumericTuple, name=String)
Base class for von Mises statistics
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
selectivity_scale (0.0, 1.0) NumericTuple V RW value_scale (0.0, 1.0) NumericTuple V RW
[1;32mParameter docstrings: =====================[0m
[1;34mselectivity_scale: Scaling of the resulting measure of the distribution peakedness,[0m [1;34m typically the selectivity of a unit to its preferred feature value.[0m [1;34m The tuple specifies (offset, multiplier) of the output scaling[0m [1;31mvalue_scale: Scaling of the resulting value of the distribution statistics,[0m [1;31m typically the preference of a unit to feature values. The tuple[0m [1;31m specifies (offset, multiplier) of the output scaling[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
computes the best fit of the bivariate von Mises function in the semi-circle. Return the tuple: (
orientation1_preference, orientation1_selectivity, goodness_of_fit1, orientation2_preference, orientation2_selectivity, goodness_of_fit2
) See fit_vm() for considerations about selectivity and goodness_of_fit
computes the best fit of the monovariate von Mises function in the semi-circle. Return a tuple with the orientation preference, in the same range of axis_bounds, the orientation selectivity, and an estimate of the goodness-of-fit, as the variance of the predicted orientation preference. The selectivity is given by the bandwith parameter of the von Mises function, modified for compatibility with other selectivity computations in this class. The bandwith parameter is transposed in logaritmic scale, and is normalized by the maximum value for the number of bins in the distribution, in order to give roughly 1.0 for a distribution with one bin at 1.0 an all the other at 0.0, and 0.0 for uniform distributions. The normalizing factor of the selectivity is fit for the total number of bins, using fit parameters computed offline. There are conditions that prevents apriori the possibility to fit the distribution:
- not enough bins, at least 4 are necessary
- the distribution is too flat, below the noise level
Note that these are the minimal conditions, their fulfillment does not warrant unimodality, is up to the user to check the goodness-of-fit value for an accurate acceptance of the fit.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Compute a simplified bimodal von Mises function
Two superposed von Mises functions, with different peak and bandwith values
Compute a simplified von Mises function.
Original formulation in Richard von Mises, “Wahrscheinlichkeitsrechnung und ihre Anwendungen in der Statistik und theoretischen Physik”, 1931, Deuticke, Leipzig; see also Mardia, K.V. and Jupp, P.E., ” Directional Statistics”, 1999, J. Wiley, p.36; http://en.wikipedia.org/wiki/Von_Mises_distribution The two differences are that this function is a continuous probability distribution on a semi-circle, while von Mises is on the full circle, and that the normalization factor, which is the inverse of the modified Bessel function of first kind and 0 degree in the original, is here a fit parameter.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: holoviews.core.dimension.Dimension
params(compute_fn=Callable, offset=Number, preference_fn=ClassSelector, steps=Integer, cyclic=Boolean, range=Tuple, soft_range=Tuple, type=Parameter, unit=String, value_format=Callable, values=ClassSelector, name=String)
Specifies several parameters required for generating a map of one input feature.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Bounds Mode [0m
compute_fn None Callable V RW AN cyclic False Boolean (0, 1) V RW offset 0.0 Number V RW preference_fn DSF_WeightedAverage(name=’DSF_Weighte... ClassSelector V RW AN range (None, None) Tuple V RW soft_range (None, None) Tuple V RW steps 0 Integer V RW type None Parameter V RW AN unit None String V RW AN value_format None Callable V RW AN values [] ClassSelector V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcompute_fn: If non-None, a function that when given a list of other parameter[0m [1;34m values, computes and returns the value for this feature.[0m [1;31mcyclic: Whether the range of this feature is cyclic such that the[0m [1;31m maximum allowed value (defined by the range parameter) is[0m [1;31m continuous with the minimum allowed value.[0m [1;34moffset: Offset to add to the values for this feature[0m [1;31mpreference_fn: Function that will be used to analyze the distributions of unit response[0m [1;31m to this feature.[0m [1;34mrange: Specifies the minimum and maximum allowed values for a[0m [1;34m Dimension. None is used to represent an unlimited bound.[0m [1;31msoft_range: Specifies a minimum and maximum reference value, which[0m [1;31m may be overridden by the data.[0m [1;34msteps: Number of steps, between lower and upper range value, to be presented.[0m [1;31mtype: Optional type associated with the Dimension values. The type[0m [1;31m may be an inbuilt constructor (such as int, str, float) or a[0m [1;31m custom class object.[0m [1;34munit: Optional unit string associated with the Dimension. For[0m [1;34m instance, the string ‘m’ may be used represent units of meters[0m [1;34m and ‘s’ to represent units of seconds.[0m [1;31mvalue_format: Formatting function applied to each value before display.[0m [1;34mvalues: Optional set of allowed values for the dimension that can also[0m [1;34m be used to retain a categorical ordering. Setting values to[0m [1;34m ‘initial’ indicates that the values will be added during construction.[0m
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
(Experimental) Pretty printed representation that may be evaluated with eval. See pprint() function for more details.
The pretty-printed label string for the Dimension
Applies the defined formatting to the value.
Pretty prints the dimension name and value using the global title_format variable, including the unit string (if set). Numeric types are printed to the stated rounding level.
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Variant of __repr__ designed for generating a runnable script.
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Metaparameter functions allow for the presentation of complex patterns that are coordinated across different inputs (controlled via the input name) or controlled by a higher-level parameter.
Current examples are transformations of contrast between the stimulus and the background based on a contrast parameter, which can be set to implement Michelson or Weber contrast or the coordinated presentation of input patterns to each eye, which assigns the correct input pattern based on whether an input source contains ‘left’ or ‘right’.
Bases: param.parameterized.ParameterizedFunction
params(contrast_parameter=String, name=String)
Allows controlling the contrast in orientation contrast patterns, where the contrast of the central stimulus has to be set independently from the surround annulus and the background. Can be controlled with the contrast_parameter, which can be set to one of three values: ‘michelson_contrast’, ‘weber_contrast’ or simply ‘scale’.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
contrast_parameter ‘weber_contrast’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrast_parameter: < No docstring available >[0m
param String contrast_parameter (allow_None=False, basestring=<type ‘basestring’>, constant=False, default=weber_contrast, instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: param.parameterized.ParameterizedFunction
params(contrast_parameter=String, name=String)
Coordinates complex contrast values in single and compound patterns. To change the contrast behavior change the contrast_parameter to one of three values: ‘michelson_contrast’, ‘weber_contrast’ or simply ‘scale’.
[0m [1;31mParameters changed from their default values are marked in red.[0m [1;36mSoft bound values are marked in cyan.[0m C/V= Constant/Variable, RO/RW = ReadOnly/ReadWrite, AN=Allow None
[1;34mName Value Type Mode [0m
contrast_parameter ‘michelson_contrast’ String V RW
[1;32mParameter docstrings: =====================[0m
[1;34mcontrast_parameter: < No docstring available >[0m
param String contrast_parameter (allow_None=False, basestring=<type ‘basestring’>, constant=False, default=michelson_contrast, instantiate=False, pickle_default_value=True, precedence=None, readonly=False)
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: param.parameterized.ParameterizedFunction
params(name=String)
Coordinates hue between inputs with Red, Green or Blue in their name.
[0m Object has no parameters.
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: param.parameterized.ParameterizedFunction
params(name=String)
Coordinates phase disparity between two eyes, by looking for the keywords Left and Right in the input names.
[0m Object has no parameters.
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: param.parameterized.ParameterizedFunction
params(name=String)
Coordinates the presentation of moving patterns. Currently supports an old and new motion model.
[0m Object has no parameters.
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.
Bases: param.parameterized.ParameterizedFunction
params(name=String)
Coordinates patterns between two eyes, by looking for the keywords Left and Right in the input names.
[0m Object has no parameters.
Print msg merged with args as a debugging statement.
See Python’s logging module for details of message formatting.
Return {parameter_name:parameter.default} for all non-constant Parameters.
Note that a Parameter for which instantiate==True has its default instantiated.
Return a list of name,value pairs for all Parameters of this object.
If onlychanged is True, will only return values that are not equal to the default value.
Print msg merged with args as a message.
See Python’s logging module for details of message formatting.
Return the Parameters of this class as the dictionary {name: parameter_object}
Includes Parameters from this class and its superclasses.
Same as Parameterized.pprint, except that X.classname(Y is replaced with X.classname.instance(Y
Print the default values of all cls’s Parameters.
Print the values of all this object’s Parameters.
Same as Parameterized.script_repr, except that X.classname(Y is replaced with X.classname.instance(Y
Set the default value of param_name.
Equivalent to setting param_name on the class.
Restore the most recently saved state.
See state_push() for more details.
Save this instance’s state.
For Parameterized instances, this includes the state of dynamically generated values.
Subclasses that maintain short-term state should additionally save and restore that state using state_push() and state_pop().
Generally, this method is used by operations that need to test something without permanently altering the objects’ state.
Print msg merged with args as a verbose message.
See Python’s logging module for details of message formatting.
Print msg merged with args as a warning, unless module variable warnings_as_exceptions is True, then raise an Exception containing the arguments.
See Python’s logging module for details of message formatting.