Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(19)  |  Call(12)  |  Derive(0)  |  Import(7)

src/n/e/NeuroTools-0.2.0/examples/parameter_search/parameter_search_example.py   NeuroTools(Download)
    rates = numpy.linspace(start = 10., stop = 100.,  num = 5)
    weights = numpy.linspace(start = 0.1,  stop = 1.0, num = 5)
    from NeuroTools.parameters import ParameterSet, ParameterSpace, ParameterRange
    params = ParameterSpace(ParameterSet({'rate':ParameterRange(rates), 
                                          'weight': ParameterRange(weights)}))

src/n/e/NeuroTools-0.2.0/examples/parameters/parameter_to_latex.py   NeuroTools(Download)
from NeuroTools.parameters import ParameterSet
from NeuroTools.parameters import ParameterRange
from NeuroTools.parameters import ParameterTable
 
 
p.a = 23
p.b = ParameterSet({})
p.b.s = ParameterRange([1,2,3])
p.b.w = ParameterTable("""
#           RS  FS

src/n/e/NeuroTools-0.2.0/examples/sfn2008/sfn_example_parameterspace.py   NeuroTools(Download)
 
from NeuroTools.parameters import ParameterSpace
from NeuroTools.parameters import ParameterRange
from NeuroTools.sandbox import make_name
 
 
# adding ParameterRanges
p.c = ParameterRange([0.0,0.01,0.1,0.5])
p.jitter = ParameterRange([0.0,1.0,5.0,])
 

src/n/e/NeuroTools-0.2.0/examples/retina/test_parallel.py   NeuroTools(Download)
    """
    N_snr, N_seeds =  5, 10
    from NeuroTools.parameters import ParameterSpace, ParameterRange
    import numpy
    params =  ParameterSpace({
                    'N' : N,
                    'snr' : ParameterRange(list(numpy.linspace(0.1,2.0,N_snr))),
                    'kernelseed' : ParameterRange(list([12345+ k for k in range(N_seeds)]))})

src/n/e/NeuroTools-0.2.0/examples/parameters/LGN_receptive_field.py   NeuroTools(Download)
import numpy, pylab
from NeuroTools.parameters import ParameterSpace
from NeuroTools.parameters import ParameterRange
from NeuroTools.sandbox import make_name
#
    #p.c1 = ParameterRange([0.14*g])
    #p.c2 = ParameterRange([0.12*g])
    p.sigma_c = ParameterRange([0.1, 0.4, 0.8])
    p.K2 = ParameterRange([0., 0.7, 1.4])
    create_figure()

src/n/e/NeuroTools-0.2.0/examples/retina/benchmark_linear.py   NeuroTools(Download)
N, N_exp = 1000, 6
t_smooth = 100. # width (in ms) of the integration window
from NeuroTools.parameters import ParameterSpace, ParameterRange
snr  = 2.0 * numpy.linspace(0.1,2.0,N_exp)
p = ParameterSpace({'snr' : ParameterRange(list(snr))})

src/n/e/NeuroTools-0.2.0/test/test_optimize.py   NeuroTools(Download)
    def test_gridsearcher(self):
        def func(param_dict):
            x,y = param_dict['x'], param_dict['y']
            return x*x + y*y
        from NeuroTools.parameters import ParameterSpace, ParameterRange
        grid = ParameterSpace({'x':ParameterRange([-2., -1., 0., 1., 2.]),
                               'y':ParameterRange([-2., -1., 0., 1., 2.])})