mvpa2.measures.noiseperturbation.NoisePerturbationSensitivity¶
-
class
mvpa2.measures.noiseperturbation.NoisePerturbationSensitivity(datameasure, noise=<built-in method normal of mtrand.RandomState object>)¶ Sensitivity based on the effect of noise perturbation on a measure.
This is a
FeaturewiseMeasurethat uses a scalarMeasureand selective noise perturbation to compute a sensitivity map.First the scalar
Measurecomputed using the original dataset. Next the data measure is computed multiple times each with a single feature in the dataset perturbed by noise. The resulting difference in the scalarMeasureis used as the sensitivity for the respective perturbed feature. Large differences are treated as an indicator of a feature having great impact on the scalarMeasure.Notes
The computed sensitivity map might have positive and negative values!
Available conditional attributes:
calling_time+: Time (in seconds) it took to call the nodenull_prob+: Nonenull_t: Noneraw_results: Computed results before invoking postproc. Stored only if postproc is not None.trained_dataset: The dataset it has been trained ontrained_nsamples+: Number of samples it has been trained ontrained_targets+: Set of unique targets (or any other space) it has been trained on (if present in the dataset trained on)training_time+: Time (in seconds) it took to train the learner
(Conditional attributes enabled by default suffixed with
+)Attributes
auto_trainWhether the Learner performs automatic trainingwhen called untrained. descrDescription of the object if any force_trainWhether the Learner enforces training upon every call. null_distReturn Null Distribution estimator pass_attrWhich attributes of the dataset or self.ca to pass into result dataset upon call postprocNode to perform post-processing of results spaceProcessing space name of this node Methods
__call__(ds)generate(ds)Yield processing results. get_postproc()Returns the post-processing node or None. get_space()Query the processing space name of this node. reset()set_postproc(node)Assigns a post-processing node set_space(name)Set the processing space name of this node. train(ds)The default implementation calls _pretrain(),_train(), and finally_posttrain().untrain()Reverts changes in the state of this node caused by previous training Parameters: datameasure :
MeasureUsed to quantify the effect of noise perturbation.
noise: Callable
Used to generate noise. The noise generator has to return an 1d array of n values when called the
size=nkeyword argument. This is the default interface of the random number generators in NumPy’srandommodule.enable_ca : None or list of str
Names of the conditional attributes which should be enabled in addition to the default ones
disable_ca : None or list of str
Names of the conditional attributes which should be disabled
Attributes
auto_trainWhether the Learner performs automatic trainingwhen called untrained. descrDescription of the object if any force_trainWhether the Learner enforces training upon every call. null_distReturn Null Distribution estimator pass_attrWhich attributes of the dataset or self.ca to pass into result dataset upon call postprocNode to perform post-processing of results spaceProcessing space name of this node Methods
__call__(ds)generate(ds)Yield processing results. get_postproc()Returns the post-processing node or None. get_space()Query the processing space name of this node. reset()set_postproc(node)Assigns a post-processing node set_space(name)Set the processing space name of this node. train(ds)The default implementation calls _pretrain(),_train(), and finally_posttrain().untrain()Reverts changes in the state of this node caused by previous training -
is_trained= True¶ Indicate that this measure is always trained.



