config_dump_13_09_05.yaml 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. system:
  2. plot: 0
  3. general:
  4. debug: 1
  5. clear_trial_history: False
  6. daq:
  7. n_channels_max: 128
  8. # n_channels: 2
  9. # exclude_channels: [] # These are BlackRock channel IDs (1-based).
  10. exclude_channels: []
  11. # car_channels: [] # channel IDs to use for common average reference. This is useful
  12. # for spike band power and LFP calculations
  13. car_channels: []
  14. fs: 30000. # sampling frequency
  15. smpl_fct: 30 # downsample factor
  16. trigger_len: 50 # length of triggers <--- review: this parameter only appears in a commented out line
  17. daq_sleep: 0.1 # s <--- review: this parameter does not seem to be used anywhere
  18. normalization:
  19. len: 600.0 # in seconds. Length of normalization period
  20. do_update: false # Performs automatic updates if true
  21. update_interval: 10.0 # in seconds. Defines in what intervals the rate normalization will be updated
  22. range: [10, 90] # centiles, for automated normalization
  23. clamp_firing_rates: True
  24. # if use_all_channels is False:
  25. # channel firing rate r will be clamped and normalized (r_n):
  26. # r_n = (max(bottom, min(top, r)) - bottom) / (top - bottom)
  27. # if the channel is set to 'invert', then r_n := 1 - r_n
  28. # All normalized rates are then averaged.
  29. # otherwise, all channels will be averaged first, then normalized
  30. use_all_channels: false # if True, all channels will be used. If False, channels as specified below will be used
  31. all_channels: {bottom: 1.15625, top: 1.59375, invert: false}
  32. channels:
  33. - {id: 24, bottom: 3.0, top: 7.0, invert: true}
  34. - {id: 99, bottom: 5.0, top: 12.0, invert: false}
  35. spike_rates:
  36. n_units: 1 # number of units per channel
  37. bin_width: 0.05 # sec, for spike rate estimation
  38. loop_interval: 50 # ms
  39. method: 'boxcar' # exponential or boxcar
  40. decay_factor: .9 # for exponential decay, for each step back, a bin's count will be multiplied by decay_factor
  41. max_bins: 20 # for exponential and boxcar methods, determines numbers of bins in history to take into account
  42. # bl_offset: 0.000001 # baseline correction constant
  43. bl_offset: 30. # baseline correction constant
  44. # bl_offset: 0.1 # baseline correction constant
  45. correct_bl: False # for online mode
  46. correct_bl_model: False # for offline mode
  47. buffer:
  48. length: 600 # buffer shape: (length, channels)
  49. session:
  50. flags:
  51. bl: True
  52. bl_rand: True
  53. decode: True
  54. stimulus: True
  55. recording:
  56. timing:
  57. t_baseline_1: 5. # sec, trial-1 baseline duration
  58. t_baseline_all: 1. # sec, all other trials
  59. t_baseline_rand: 1. # sec, add random inter-trial interval between 0 and t_baseline_rand IF session.flags.bl_rand is True
  60. t_after_stimulus: 0.0
  61. t_response: 5. # sec, trial response duration
  62. decoder_refresh_interval: .01 # sec, for continuous decoding, the cycle time of the decoder
  63. bci_loop_interval: .05 # sec, step for bci thread loop
  64. recording_loop_interval: .05 # sec, step for bci thread loop
  65. recording_loop_interval_data: .02 # sec, step for data process loop
  66. classifier:
  67. max_active_ch_nr: []
  68. # include_channels: [38, 43, 50, 52, 56, 61, 65, 67, 73, 81, 87, 88, 91]
  69. # include_channels: [0, 1, 4, 7, 8, 12, 14, 19, 22, 26, 28, 29, 31, 96, 100, 103]
  70. # include_channels: range(0,128)
  71. include_channels: [20]
  72. # include_channels: [0, 1, 4, 6, 7, 8, 12, 14, 19, 20, 22, 26, 28, 29, 31, 96, 100, 103, 121]
  73. # include_channels: [ 1, 2, 3, 9, 19, 29, 41, 44, 48, 51, 52, 53, 54,
  74. # 62, 63, 66, 74, 82, 94, 95, 113]
  75. # exclude_channels: []
  76. exclude_channels: [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
  77. 13, 14, 15, 16, 17, 18, 19, 21, 22, 23, 24, 25, 26, 27,
  78. 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40,
  79. 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53,
  80. 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66,
  81. 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79,
  82. 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92,
  83. 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105,
  84. 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118,
  85. 119, 120, 121, 122, 123, 124, 125, 126, 127]
  86. # exclude_channels: range(32,96)
  87. # exclude_channels: []
  88. n_triggers: 2 # DO NOT CHANGE THIS
  89. n_classes: 2
  90. template: [10, 14, 18, 22, 26, 30, 34, 38]
  91. trigger_pos: 'start' # 'start' or 'stop'
  92. online: False # will be overwritten by code, see bci.py
  93. thr_prob: 0.8
  94. thr_window: 40 #30 # number of samples for prob above threshold to trigger decision
  95. break_loop: True # True: move on as soon as decision is there, otherwise wait t_response time
  96. # models to use for online decoding
  97. path_model1: '/data/clinical/neural/fr/2019-06-26/model1_104948.pkl' # scikit
  98. path_model2: '/data/clinical/neural/fr/2019-06-26/model2_104948.pkl' # explicit LDA
  99. exclude_data_channels: []
  100. n_neg_train: 100000
  101. deadtime: 40
  102. model_training:
  103. save_model: False
  104. model: 'scikit' # eigen, scikit, explicit
  105. solver: 'lsqr' # svd, lsqr, eigen
  106. cross_validation: True
  107. n_splits: 5 # for cross-validation
  108. test_size: .2 # float between (0,1) or int (absolute number of trials, >=n_classes)
  109. reg_fact: 0.3 # regularization factor
  110. fsel: False # feature selection
  111. triggers_plot: 3
  112. peaks: # these values are for offline training
  113. # height: 0.9 # probability threshold
  114. # width: 28 # min number of samples above threshold
  115. distance: 40 # number of samples for peaks to be apart
  116. sig: 'pred' # 'prob', 'pred' -> signal based on probabilities or prediction class
  117. prefilter: False
  118. psth:
  119. cut : [-40, 100]
  120. lfp:
  121. fs: 1000 # sampling rate
  122. sampling_ratio: 30
  123. filter_fc_lb: [10, 0] # cut-off frequencies for filter
  124. filter_fc_mb: [12, 40] # cut-off frequencies for filter
  125. filter_fc_hb: [60, 250] # cut-off frequencies for filter
  126. filter_order_lb: 2
  127. filter_order_mb: 6
  128. filter_order_hb: 10
  129. artifact_thr: 400 # exclude data above this threshold
  130. array1: range(32,64) #3 4 7 8 10 14 17 15 44
  131. array21: range(2)
  132. # array22: range(100,112)
  133. array22: [] #range(96,128)
  134. array1_exclude: []
  135. array2_exclude: []
  136. i_start: 0 #None # import data from start index
  137. i_stop: -1 #600000 #None # to stop index
  138. psth_win: [-1000, 5000]
  139. exclude: False
  140. normalize: False
  141. zscore: False
  142. car: True
  143. sub_band: 1
  144. motor_mapping: ['Zunge', 'Schliesse_Hand', 'Oeffne_Hand', 'Bewege_Augen', 'Bewege_Kopf']
  145. spectra:
  146. spgr_len: 500
  147. plot:
  148. ch_ids: [0] # relative id of imported channel
  149. general: True
  150. filters: False
  151. cerebus:
  152. instance: 0
  153. buffer_reset: True
  154. buffer_size_cont: 30001
  155. buffer_size_comments: 500
  156. file_handling:
  157. data_path: '/data/clinical/neural/fr/'
  158. # data_path: '/home/vlachos/devel/vg/kiapvmdev/data/clinical/neural_new/'
  159. results: '/data/clinical/nf/results/'
  160. paradigm_config_file: 'paradigm.yaml'
  161. # results: '/home/vlachos/devel/vg/kiapvmdev/data/clinical/neural_new/results/'
  162. # data_path: '/media/vlachos/kiap_backup/Recordings/K01/laptop/clinical/neural/'
  163. # data_path: '/media/kiap/kiap_backup/Recordings/K01/Recordings/20190326-160445/'
  164. save_data: True # keep always True
  165. mode: 'ab' # ab: append binary, wb: write binary (will overwrite existing files)
  166. git_hash: 7bd679a
  167. filename_data: /data/clinical/neural/fr/2019-07-04/data_13_09_05.bin
  168. filename_log_info: /data/clinical/neural/fr/2019-07-04/info_13_09_05.log
  169. filename_events: /data/clinical/neural/fr/2019-07-04/events_13_09_05.txt
  170. speller:
  171. type: 'color' # exploration, question, training_color, color, feedback
  172. audio: True
  173. pyttsx_rate: 100
  174. audio_result_fb: True
  175. feedback:
  176. # normalized rate is multiplied by alpha, and baseline beta added.
  177. feedback_tone: True
  178. alpha: 360 # scaling coefficient
  179. beta: 120 # offset
  180. tone_length: 0.25 # lenght of feedback tone in seconds
  181. target_tone_length: 1.0 # length of feedback tone in seconds
  182. reward_on_target: True # If target is reached, play reward tone and abort trial
  183. target_n_tones: 5 # Play the target tone every n feedback tones
  184. reward_sound: '/kiap/data/speller/feedback/kerching.wav'
  185. hold_iterations: 2
  186. plot:
  187. channels: [20, 99] # channels for live plot, need to restart app if changed
  188. fps: 10. # frames per second
  189. pca: False
  190. sim_data:
  191. rate_bl: 10