Пример #1
0
    def __init__(self, shape, kernel_type):
        super(ClassicalPCNN, self).__init__(shape)
        '''
        '''
        self.v_theta = 150
        self.Theta = np.ones(shape) * self.v_theta

        self.W = choose_kernel(kernel_type)
        self.M = choose_kernel(kernel_type)
Пример #2
0
    def __init__(self, shape, kernel_type):
        super(FLM, self).__init__(shape)
        '''
        '''
        self.v_theta = 500
        self.Theta = np.ones(shape) * self.v_theta

        self.W = choose_kernel(kernel_type)
        self.M = choose_kernel(kernel_type)
Пример #3
0
    def __init__(self, shape, kernel_type):
        super(ICM, self).__init__(shape)
        '''
        '''
        # self.f = 0.5
        # self.g = 0.45
        self.v_theta = 150.

        self.Theta = np.ones(shape) * self.v_theta

        self.W = choose_kernel(kernel_type)
Пример #4
0
    def __init__(self, shape, kernel_type):
        super(SCM, self).__init__(shape)
        '''
        '''
        # alpha_theta = 0.2
        # alpha_f = 0.2
        # self.f = np.exp(-alpha_f)
        # self.g = np.exp(-alpha_theta)
        self.v_theta = 500.

        self.Theta = np.zeros(shape)
        # self.W = np.array([[0.5, 1, 0.5], [0.5, 1, 0.5], [0.5, 1, 0.5]])
        self.W = choose_kernel(kernel_type)