subject_id, cnn=cnn, justdims=True, locate=locate, treat=None) meas_dims, m, p, n_steps, total_batch_size, Wt = nn_prepro.faces_dataset( subject_id, cnn=cnn, justdims=True, locate=locate, treat=treat, Wt=Wt) test, val, batch_list, batches = nn_prepro.ttv( total_batch_size, test_frac, val_frac, batch_frac, rand_test=rand_test) per_batch = int(5000 / batches) if subject_id is 'aud': meas_img_test, qtrue_test, meas_dims, m, p, n_steps, test_size, Wt = nn_prepro.aud_dataset( selection=test, pca=pca, subsample=subsample, justdims=False, cnn=cnn, locate=locate, treat=treat, Wt=Wt) elif subject_id is 'rat':
writer.writeheader() for [k_conv, n_conv1, n_conv2, n_lstm, n_layer, test_frac, val_frac, batch_frac, n_sensors, n_dipoles] in params_list: n_chan_in=1 meas_dims, m, p, n_steps, total_batch_size, Wt = nn_prepro.rat_real(stim=stim,selection='all',pca=True,subsample=1,justdims=True,cnn=False,locate=locate,treat=treat,rnn=rnn,Wt=None) total_batch_size_synth=int(total_batch_size/test_frac) delT=1./1017. meas_dims_in=[n_sensors,1] dipole_dims=[2,2,4] meas_dims, m, p, n_steps, total_batch_size, Wt_synth = nn_prepro.rat_synth(total_batch_size,delT,n_steps,meas_dims_in,dipole_dims,n_chan_in,meas_xyz=None,dipole_xyz=None,orient=None,noise_flag=True,selection='all',pca=True,subsample=1,justdims=True,cnn=cnn,locate=locate,treat=None,rnn=rnn,Wt=None) meas_dims, m, p, n_steps, total_batch_size, Wt_synth = nn_prepro.rat_synth(total_batch_size,delT,n_steps,meas_dims_in,dipole_dims,n_chan_in,meas_xyz=None,dipole_xyz=None,orient=None,noise_flag=True,selection='all',pca=True,subsample=1,justdims=True,cnn=cnn,locate=locate,treat=treat,rnn=rnn,Wt=Wt_synth) test, val, batch_list, batches = nn_prepro.ttv(total_batch_size,.5,.5,0.0,rand_test=rand_test) test_synth, val_synth, batch_list_synth, batches_synth = nn_prepro.ttv(total_batch_size_synth,test_frac,val_frac,batch_frac,rand_test=rand_test) per_batch = int(5000/batches_synth) print "Test batch ",test meas_img_test, qtrue_test, meas_dims, m, p, n_steps, test_size, Wt = nn_prepro.rat_real(stim=stim,selection=test,pca=True,subsample=1,justdims=False,cnn=False,locate=locate,treat=treat,rnn=rnn,Wt=None) print "Val batch ",val meas_img_val, qtrue_val, meas_dims, m, p, n_steps, val_size, Wt = nn_prepro.rat_real(stim=stim,selection=val,pca=True,subsample=1,justdims=False,cnn=False,locate=locate,treat=treat,rnn=rnn,Wt=None) n_out=p k_pool=1 print "Meas: ", m, " Out: ",p, " Steps: ",n_steps time.sleep(10)