featuremapper/__init__.py
def _present_permutation(self, p, permutation, permutation_num):
        """Present a pattern with the specified set of feature values."""

        # Calculate complete set of settings
        permuted_settings = zip(self.feature_names, permutation)

        # Run hooks before and after pattern presentation.
        for f in p.pre_presentation_hooks:
            try: 
                f()
            except:
                f(permutation)

        inputs = self._coordinate_inputs(p, dict(permuted_settings))
        measurement_sources = self.metadata.outputs.keys() + self.metadata.inputs.keys()
        responses = p.pattern_response_fn(inputs, measurement_sources,
                                          permutation_num, self.total_steps,
                                          durations=p.durations)

        for f in p.post_presentation_hooks: 
            try: 
                f()
            except:
                f(permutation, responses)

        self._update(p, responses)
        self.n_permutation += 1
Present a pattern with the specified set of feature values.
Present a pattern with the specified set of feature values.
Present a pattern with the specified set of feature values .
def _present_permutation(self, p, permutation, permutation_num):
        permuted_settings = zip(self.feature_names, permutation)
        for f in p.pre_presentation_hooks:
            try: 
                f()
            except:
                f(permutation)
        inputs = self._coordinate_inputs(p, dict(permuted_settings))
        measurement_sources = self.metadata.outputs.keys() + self.metadata.inputs.keys()
        responses = p.pattern_response_fn(inputs, measurement_sources,
                                          permutation_num, self.total_steps,
                                          durations=p.durations)
        for f in p.post_presentation_hooks: 
            try: 
                f()
            except:
                f(permutation, responses)
        self._update(p, responses)
        self.n_permutation += 1
def _present_permutation ( self , p , permutation , permutation_num ) : permuted_settings = zip ( self . feature_names , permutation ) for f in p . pre_presentation_hooks : try : f ( ) except : f ( permutation ) inputs = self . _coordinate_inputs ( p , dict ( permuted_settings ) ) measurement_sources = self . metadata . outputs . keys ( ) + self . metadata . inputs . keys ( ) responses = p . pattern_response_fn ( inputs , measurement_sources , permutation_num , self . total_steps , durations = p . durations ) for f in p . post_presentation_hooks : try : f ( ) except : f ( permutation , responses ) self . _update ( p , responses ) self . n_permutation += 1
Present a pattern with the specified set of feature values.
Present a pattern with the specified set of feature values .
"""Present a pattern with the specified set of feature values.""" # Calculate complete set of settings # Run hooks before and after pattern presentation.
self
p
permutation
permutation_num