Changeset 340 for trunk/examples/retina/benchmark_noise.py
- Timestamp:
- 11/14/08 19:17:05 (3 years ago)
- Files:
-
- 1 modified
-
trunk/examples/retina/benchmark_noise.py (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/examples/retina/benchmark_noise.py
r333 r340 19 19 import os, sys, numpy, shelve 20 20 21 retina.params['snr'] = 0 # no input 22 21 N, N_exp_noise = 1000, 22 22 from NeuroTools.parameters import * 23 p = ParameterSpace({'noise_std' : ParameterRange(list(10.**(numpy.linspace(-.50,1.,N_exp_noise))))}) 23 24 24 25 name = sys.argv[0].split('.')[0] # name of the current script withpout the '.py' part … … 27 28 CRF = results['CRF'] 28 29 except: 29 30 from NeuroTools.parameters import *31 32 30 # this is not mandatory but just a "easy_install progressbar" away 33 31 # else remove all corresponding lines in this code... 34 32 import progressbar # see http://projects.scipy.org/pipermail/scipy-dev/2008-January/008200.html 35 36 N, N_exp_noise = 1000, 2237 38 p = ParameterSpace({'noise_std' : ParameterRange(list(10.**(numpy.linspace(-.50,1.,N_exp_noise))))})39 40 33 import retina as model 41 34 retina = model.Retina(N) 35 retina.params['snr'] = 0 # no input 36 42 37 # calculates the dimension of the parameter space 43 38 results_dim, results_label = p.parameter_space_dimension_labels() … … 75 70 """ 76 71 77 N, simtime = retina.params['N'], retina.params['simtime']78 79 72 import pylab 80 73
