Package ca.nengo.model.neuron.impl

Examples of ca.nengo.model.neuron.impl.LIFNeuronFactory


        Float tauRC = (Float) configuredProperties.getValue(pTauRC);
        Float tauRef = (Float) configuredProperties.getValue(pTauRef);
        IndicatorPDF maxRate = (IndicatorPDF) configuredProperties.getValue(pMaxRate);
        IndicatorPDF intercept = (IndicatorPDF) configuredProperties.getValue(pIntercept);

        return new LIFNeuronFactory(tauRC, tauRef, maxRate, intercept);
    }
View Full Code Here


                    getNodes().length,
                    myDimension));

        NodeFactory nodeFactory = myEnsembleFactory.getNodeFactory();
        if (nodeFactory instanceof LIFNeuronFactory) {
            LIFNeuronFactory neuronFactory = (LIFNeuronFactory)nodeFactory;

            if (!(neuronFactory.getMaxRate() instanceof IndicatorPDF) ||
                !(neuronFactory.getIntercept() instanceof IndicatorPDF)) {
                throw new ScriptGenException("Max Rate or Intercept for LIF Neuron Factory not specified as a uniform range");
            }

            py.append(String.format(", tau_rc=%.3f, tau_ref=%.3f, max_rate=(%.1f, %.1f), intercept=(%.1f, %.1f)",
                        neuronFactory.getTauRC(),
                        neuronFactory.getTauRef(),
                        ((IndicatorPDF)neuronFactory.getMaxRate()).getLow(),
                        ((IndicatorPDF)neuronFactory.getMaxRate()).getHigh(),
                        ((IndicatorPDF)neuronFactory.getIntercept()).getLow(),
                        ((IndicatorPDF)neuronFactory.getIntercept()).getHigh()));
        } else {
            throw new ScriptGenException("Neuron Factory not supported. Only LIF Neuron Factory is supported");
        }

        py.append(String.format(", radius=%.2f)\n", myRadii[0]));
View Full Code Here

   */
  public NEFEnsembleFactoryImpl() {
    myApproximatorFactory = new WeightedCostApproximator.Factory(0.1f);
    myEncoderFactory = new RandomHypersphereVG(true, 1f, 0f);
    myEvalPointFactory = new RandomHypersphereVG(false, 1f, 0f);
    myNodeFactory = new LIFNeuronFactory(.02f, .002f, new IndicatorPDF(200f, 400f), new IndicatorPDF(-.9f, .9f));
  }
View Full Code Here

    ef.setEvalPointFactory(new BiasedVG(new RandomHypersphereVG(false, 0.5f, 0f), 0, excitatoryProjection ? .5f : -.5f));

//    PDF interceptPDF = excitatoryProjection ? new IndicatorPDF(-.5f, .75f) : new IndicatorPDF(-.99f, .35f);
    PDF interceptPDF = excitatoryProjection ? new IndicatorPDF(-.15f, .9f) : new IndicatorPDF(-1.2f, .1f); //was -.5f, .75f for excitatory
    PDF maxRatePDF = excitatoryProjection ? new IndicatorPDF(200f, 500f) : new IndicatorPDF(400f, 800f);
    ef.setNodeFactory(new LIFNeuronFactory(.02f, .0001f, maxRatePDF, interceptPDF));
    ef.setApproximatorFactory(new GradientDescentApproximator.Factory(
        new GradientDescentApproximator.CoefficientsSameSign(true), false));

    NEFEnsemble result = ef.make(name, num, 1);
View Full Code Here

TOP

Related Classes of ca.nengo.model.neuron.impl.LIFNeuronFactory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.