예제 #1
0
    'module': module,
    'nets': ['Net_0'],
    'other_scenario': True,
    'path_code': default_params.HOME_CODE,
    'path_results': get_path_logs(LOAD_MILNER_ON_SUPERMICRO, FILE_NAME),
    'perturbation_list': [op.get()[7]],
    'proportion_connected':
    proportion_connected,  #related to toal number fo runs
    'p_pulses': [5] * NUM_NETS,  #size of labels
    'p_sizes': [1.] * NUM_RUNS,
    'p_subsamp': [1.] * NUM_RUNS,
    'res': 10,
    'rep': 40,
    'time_bin': 100,
}

d_process_and_thread = par_process_and_thread(**kwargs)
kwargs.update(d_process_and_thread)

p_list = pert_add_go_nogo_ss(**kwargs)

for i, p in enumerate(p_list):
    print i, p

a_list = get_args_list_Go_NoGo_compete(p_list, **kwargs)
k_list = get_kwargs_list_indv_nets(len(p_list), kwargs)

# loop(get_loop_index(5, [15,15,3]), a_list, k_list )

loop(1, [NUM_NETS, NUM_NETS, 1], a_list, k_list)
예제 #2
0
                
        'sim_time':40000.0,
        'size':20000.0 ,
        'STN_amp_mod':STN_amp_mod,
        
        'wrapper_process':WRAPPER_PROCESS, #user defined wrapper of subprocesses
        }

d_process_and_thread=par_process_and_thread(**kwargs)
pp(d_process_and_thread)
kwargs.update(d_process_and_thread)


p_list = pert_add_oscillations(**kwargs)
# p_list = pert_set_data_path_to_milner_on_supermicro(p_list,
#                                                   LOAD_MILNER_ON_SUPERMICRO)

for i, p in enumerate(p_list): 
    print i, p

a_list=get_args_list_oscillation(p_list, **kwargs)
k_list=get_kwargs_list_indv_nets(len(p_list), kwargs)

for i, obj in enumerate(a_list):
    print i, obj.kwargs['from_disk']

print "num_sims",num_sims
loop(20,[num_sims,num_sims,num_sims/2], a_list, k_list )

        
    'nets': ['Net_0'],
    'other_scenario': True,
    'path_code': default_params.HOME_CODE,
    'path_results': get_path_logs(LOAD_MILNER_ON_SUPERMICRO, FILE_NAME),
    'perturbation_list': [op.get()[7]],
    'proportion_connected': [0.2] * 1,  #related to toal number fo runs
    'p_pulses': [5],
    'p_sizes': [
        1,
    ],
    'p_subsamp': [
        1.,
    ],
    'res': 10,
    'rep': 80,
    'time_bin': 100,
}

d_process_and_thread = par_process_and_thread(**kwargs)
kwargs.update(d_process_and_thread)

p_list = pert_add_go_nogo_ss(**kwargs)

for i, p in enumerate(p_list):
    print i, p

a_list = get_args_list_Go_NoGo_compete(p_list, **kwargs)
k_list = get_kwargs_list_indv_nets(len(p_list), kwargs)

loop(1, [num_sims, num_sims, NUM_RUNS], a_list, k_list)
        'path_code':default_params.HOME_CODE,
        'path_results':get_path_logs(LOAD_MILNER_ON_SUPERMICRO, 
                                     FILE_NAME),
        'perturbation_list':[op.get()[7]],
        'proportion_connected':[0.2]*1, #related to toal number fo runs
        
        'p_pulses':[5],
        'p_sizes':[
                    1,
                ],
        'p_subsamp':[
                     1., 
                    ],
        'res':10,
        'rep':80,

       'time_bin':100,
        }

d_process_and_thread=par_process_and_thread(**kwargs)
kwargs.update(d_process_and_thread)

p_list=pert_add_go_nogo_ss(**kwargs)

for i, p in enumerate(p_list): print i, p

a_list=get_args_list_Go_NoGo_compete(p_list, **kwargs)
k_list=get_kwargs_list_indv_nets(len(p_list), kwargs)
        
loop(1, [num_sims, num_sims, NUM_RUNS], a_list, k_list )
예제 #5
0
    'nets': ['Net_{}'.format(i) for i in range(NUM_NETS)],
    'resolution': 5,
    'repetitions': 1,
    'path_results': dr.HOME_DATA + '/' + FILE_NAME + '/',
    'perturbation_list': ops,
    'process_type': PROCESS_TYPE,
    'size': 3000,
    'upper': 3,
    'wrapper_process': WRAPPER_PROCESS,  #user defined wrapper of subprocesses
}

d_process_and_thread = par_process_and_thread(**kwargs)
pp(d_process_and_thread)
kwargs.update(d_process_and_thread)

p_list = pert_add_inhibition(**kwargs)

for i, p in enumerate(p_list):
    print i, p

a_list = get_args_list_inhibition(p_list, **kwargs)
k_list = get_kwargs_list_indv_nets(len(p_list), kwargs)

for obj in a_list:
    print obj.kwargs['setup'].nets_to_run

# for i, a in enumerate(args_list):
#     print i, a
loop(min(num_sim, 10), [num_sim, num_sim, NUM_RUNS], a_list, k_list,
     **{'config': config})
예제 #6
0
        'path_results':get_path_logs(LOAD_MILNER_ON_SUPERMICRO, 
                                     FILE_NAME),
        'perturbation_list':[op.get()[5]],
        
        'sim_time':40000.0,
        'size':20000.0 ,
        
        'STN_amp_mod':STN_amp_mod,
        }

d_process_and_thread=par_process_and_thread(**kwargs)
pp(d_process_and_thread)
kwargs.update(d_process_and_thread)


p_list = pert_add_oscillations(**kwargs)
p_list = pert_set_data_path_to_milner_on_supermicro(p_list,
                                                  LOAD_MILNER_ON_SUPERMICRO)

for i, p in enumerate(p_list): 
    print i, p

a_list=get_args_list_oscillation(p_list, **kwargs)
k_list=get_kwargs_list_indv_nets(len(p_list), kwargs)

for i, obj in enumerate(a_list):
    print i, obj.kwargs['from_disk']

loop(20,[num_sims,num_sims,num_sims/2], a_list, k_list )

        
        'other_scenario':True,
        
        'path_rate_runs':path_rate_runs,
        'path_results':dr.HOME_DATA+ '/'+ FILE_NAME + '/',
        'perturbation_list':ops,
        
        'proportion_connected':[0.2]*1, #related to toal number fo runs
        'p_sizes':[
                   1.
                  ],
        'p_subsamp':[
                     1.
                     ],
        'res':10,
        'rep':80,
        
        'time_bin':100,

        'wrapper_process':WRAPPER_PROCESS, #user defined wrapper of subprocesses

        }

p_list=pert_add_go_nogo_ss(**kwargs)

for i, p in enumerate(p_list): print i, p

a_list=get_args_list_Go_NoGo_compete(p_list, **kwargs)
k_list=get_kwargs_list_indv_nets(len(p_list), kwargs)

loop(1, [NUM_NETS, NUM_NETS, 1], a_list, k_list )
        
        
        'path_code':default_params.HOME_CODE,
        'path_results':get_path_logs(LOAD_MILNER_ON_SUPERMICRO, 
                                     FILE_NAME),
        'perturbation_list':[op.get()[5]],
        'proportion_connected':[0.2]*NUM_NETS, #related to toal number fo runs
        'p_sizes':[
                   1.
                  ],
        'p_subsamp':[
                     1.
                     ],
        'res':10,
        'rep':40,
        
        'time_bin':100,
        }

d_process_and_thread=par_process_and_thread(**kwargs)
kwargs.update(d_process_and_thread)

p_list=pert_add_go_nogo_ss(**kwargs)
p_list=pert_add(p_list, **kwargs)

for i, p in enumerate(p_list): print i, p

a_list=get_args_list_Go_NoGo_compete(p_list, **kwargs)
k_list=get_kwargs_list_indv_nets(len(p_list), kwargs)

loop(2, [NUM_NETS,NUM_NETS,NUM_NETS], a_list, k_list )