Exemplo n.º 1
0
    def __init__(self, sim, num_threads, parameters):
        Model.__init__(self, sim, num_threads, parameters)
        # Load components
        CortexExcL4 = load_component(
            self.parameters.sheets.l4_cortex_exc.component)
        CortexInhL4 = load_component(
            self.parameters.sheets.l4_cortex_inh.component)

        cortex_exc_l4 = CortexExcL4(
            self, self.parameters.sheets.l4_cortex_exc.params)
        cortex_inh_l4 = CortexInhL4(
            self, self.parameters.sheets.l4_cortex_inh.params)

        # initialize projections
        UniformProbabilisticArborization(
            self, 'V1L4ExcL4ExcConnection', cortex_exc_l4, cortex_exc_l4,
            self.parameters.sheets.l4_cortex_exc.L4ExcL4ExcConnection).connect(
            )
        UniformProbabilisticArborization(
            self, 'V1L4ExcL4InhConnection', cortex_exc_l4, cortex_inh_l4,
            self.parameters.sheets.l4_cortex_exc.L4ExcL4InhConnection).connect(
            )
        UniformProbabilisticArborization(
            self, 'V1L4InhL4ExcConnection', cortex_inh_l4, cortex_exc_l4,
            self.parameters.sheets.l4_cortex_inh.L4InhL4ExcConnection).connect(
            )
        UniformProbabilisticArborization(
            self, 'V1L4InhL4InhConnection', cortex_inh_l4, cortex_inh_l4,
            self.parameters.sheets.l4_cortex_inh.L4InhL4InhConnection).connect(
            )
Exemplo n.º 2
0
    def __init__(self, sim, num_threads, parameters):
        Model.__init__(self, sim, num_threads, parameters)
        # Load components
        print "O"
        CortexExcL4 = load_component(self.parameters.l4_cortex_exc.component)
        CortexInhL4 = load_component(self.parameters.l4_cortex_inh.component)

        RetinaLGN = load_component(self.parameters.retina_lgn.component)

        # Build and instrument the network
        self.visual_field = VisualRegion(
            location_x=self.parameters.visual_field.centre[0],
            location_y=self.parameters.visual_field.centre[1],
            size_x=self.parameters.visual_field.size[0],
            size_y=self.parameters.visual_field.size[1])
        self.input_layer = RetinaLGN(self, self.parameters.retina_lgn.params)
        cortex_exc_l4 = CortexExcL4(self, self.parameters.l4_cortex_exc.params)
        cortex_inh_l4 = CortexInhL4(self, self.parameters.l4_cortex_inh.params)

        GaborConnector(self, self.input_layer.sheets['X_ON'],
                       self.input_layer.sheets['X_OFF'], cortex_exc_l4,
                       self.parameters.l4_cortex_exc.AfferentConnection,
                       'V1AffConnection')
        GaborConnector(self, self.input_layer.sheets['X_ON'],
                       self.input_layer.sheets['X_OFF'], cortex_inh_l4,
                       self.parameters.l4_cortex_inh.AfferentConnection,
                       'V1AffInhConnection')

        # initialize projections
        UniformProbabilisticArborization(
            self, 'V1L4ExcL4ExcConnectionRand', cortex_exc_l4, cortex_exc_l4,
            self.parameters.l4_cortex_exc.L4ExcL4ExcConnectionRand).connect()
        UniformProbabilisticArborization(
            self, 'V1L4ExcL4InhConnectionRand', cortex_exc_l4, cortex_inh_l4,
            self.parameters.l4_cortex_exc.L4ExcL4InhConnectionRand).connect()
        UniformProbabilisticArborization(
            self, 'V1L4InhL4ExcConnectionRand', cortex_inh_l4, cortex_exc_l4,
            self.parameters.l4_cortex_inh.L4InhL4ExcConnectionRand).connect()
        UniformProbabilisticArborization(
            self, 'V1L4InhL4InhConnectionRand', cortex_inh_l4, cortex_inh_l4,
            self.parameters.l4_cortex_inh.L4InhL4InhConnectionRand).connect()

        # initialize projections
        ModularSamplingProbabilisticConnector(
            self, 'V1L4ExcL4ExcConnection', cortex_exc_l4, cortex_exc_l4,
            self.parameters.l4_cortex_exc.L4ExcL4ExcConnection).connect()
        ModularSamplingProbabilisticConnector(
            self, 'V1L4ExcL4InhConnection', cortex_exc_l4, cortex_inh_l4,
            self.parameters.l4_cortex_exc.L4ExcL4InhConnection).connect()
        ModularSamplingProbabilisticConnector(
            self, 'V1L4InhL4ExcConnection', cortex_inh_l4, cortex_exc_l4,
            self.parameters.l4_cortex_inh.L4InhL4ExcConnection).connect()
        ModularSamplingProbabilisticConnector(
            self, 'V1L4InhL4InhConnection', cortex_inh_l4, cortex_inh_l4,
            self.parameters.l4_cortex_inh.L4InhL4InhConnection).connect()
Exemplo n.º 3
0
    def __init__(self, sim, num_threads, parameters):
        Model.__init__(self, sim, num_threads, parameters)
        # Load components
        print(self.parameters.sheets.exc_layer.component)
        ExcLayer = load_component(self.parameters.sheets.exc_layer.component)
        InhLayer = load_component(self.parameters.sheets.inh_layer.component)
        
        exc = ExcLayer(self, self.parameters.sheets.exc_layer.params)
        inh = InhLayer(self, self.parameters.sheets.inh_layer.params)

        # initialize projections
        UniformProbabilisticArborization(self,'ExcExcConnection',exc,exc,self.parameters.sheets.exc_layer.ExcExcConnection).connect()
        UniformProbabilisticArborization(self,'ExcInhConnection',exc,inh,self.parameters.sheets.exc_layer.ExcInhConnection).connect()
        UniformProbabilisticArborization(self,'InhExcConnection',inh,exc,self.parameters.sheets.inh_layer.InhExcConnection).connect()
        UniformProbabilisticArborization(self,'InhInhConnection',inh,inh,self.parameters.sheets.inh_layer.InhInhConnection).connect()
Exemplo n.º 4
0
    def __init__(self, sim, num_threads, parameters):
        Model.__init__(self, sim, num_threads, parameters)
        # Load components
        CortexExc1 = load_component(self.parameters.exc1.component)
        CortexExc2 = load_component(self.parameters.exc2.component)
        CortexInh1 = load_component(self.parameters.inh1.component)
        CortexInh2 = load_component(self.parameters.inh2.component)

        cortex_exc1 = CortexExc1(self, self.parameters.exc1.params)
        cortex_exc2 = CortexExc2(self, self.parameters.exc2.params)
        cortex_inh1 = CortexInh1(self, self.parameters.inh1.params)
        cortex_inh2 = CortexInh2(self, self.parameters.inh2.params)

        # initialize projections
        UniformProbabilisticArborization(
            self, 'V1Exc1Exc1Connection', cortex_exc1, cortex_exc1,
            self.parameters.exc1.Exc1Exc1Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Exc1Exc2Connection', cortex_exc1, cortex_exc2,
            self.parameters.exc1.Exc1Exc2Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Exc1Inh1Connection', cortex_exc1, cortex_inh1,
            self.parameters.exc1.Exc1Inh1Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Exc1Inh2Connection', cortex_exc1, cortex_inh2,
            self.parameters.exc1.Exc1Inh2Connection).connect()

        UniformProbabilisticArborization(
            self, 'V1Exc2Exc1Connection', cortex_exc2, cortex_exc1,
            self.parameters.exc2.Exc2Exc1Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Exc2Exc2Connection', cortex_exc2, cortex_exc2,
            self.parameters.exc2.Exc2Exc2Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Exc2Inh1Connection', cortex_exc2, cortex_inh1,
            self.parameters.exc2.Exc2Inh1Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Exc2Inh2Connection', cortex_exc2, cortex_inh2,
            self.parameters.exc2.Exc2Inh2Connection).connect()

        UniformProbabilisticArborization(
            self, 'V1Inh1Exc1Connection', cortex_inh1, cortex_exc1,
            self.parameters.inh1.Inh1Exc1Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Inh1Exc2Connection', cortex_inh1, cortex_exc2,
            self.parameters.inh1.Inh1Exc2Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Inh1Inh1Connection', cortex_inh1, cortex_inh1,
            self.parameters.inh1.Inh1Inh1Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Inh1Inh2Connection', cortex_inh1, cortex_inh2,
            self.parameters.inh1.Inh1Inh2Connection).connect()

        UniformProbabilisticArborization(
            self, 'V1Inh2Exc1Connection', cortex_inh2, cortex_exc1,
            self.parameters.inh2.Inh2Exc1Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Inh2Exc2Connection', cortex_inh2, cortex_exc2,
            self.parameters.inh2.Inh2Exc2Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Inh2Inh1Connection', cortex_inh2, cortex_inh1,
            self.parameters.inh2.Inh2Inh1Connection).connect()
        UniformProbabilisticArborization(
            self, 'V1Inh2Inh2Connection', cortex_inh2, cortex_inh2,
            self.parameters.inh2.Inh2Inh2Connection).connect()