コード例 #1
0
    def plot_mean_activity_3d(self, precision=20, axes=(0, 1), specific_neurons=None, weight_deform=0.5):
        '''
            Plot the mean activity of the network on a sphere/torus
        '''

        (mean_activity, feature_space1, feature_space2) = self.get_mean_activity(precision=precision, specific_neurons=specific_neurons, return_axes_vect=True, axes=axes)

        utils.plot_torus(feature_space1, feature_space2, mean_activity, weight_deform=weight_deform)
コード例 #2
0
    def plot_neuron_activity_3d(self, neuron_index=0, precision=20, axes=(0, 1), weight_deform=0.5, draw_colorbar=True):
        '''
            Plot the activity of a neuron on the sphere/torus
        '''

        coverage_1D = self.init_feature_space(precision)
        activity = self.get_neuron_activity(neuron_index, precision=precision, axes=axes)

        utils.plot_torus(coverage_1D, coverage_1D, activity, weight_deform=weight_deform, draw_colorbar=draw_colorbar)