forked from miaoli-psy/historyEffect_NMA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcalculate_features.py
48 lines (37 loc) · 1.09 KB
/
calculate_features.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# -*- coding: utf-8 -*-
"""
Created on Tue Jul 21 20:02:32 2020
@author: Miao
"""
#%% =============================================================================
# intrested features
# =============================================================================
# calculate features
def cal_feature_choice(raw_choice):
'''
calcualte the number of choice 1 from
past 10 trials
arg*
raw_choice: array of int, eg (1009,)
return
feature_choice: array of int, eg (1009-10,)
'''
pass
# return
def cal_feature_stim_posi(raw_contrastLeft):
'''
calculate the number of stimulus that
appeared on the left visual field
arg*:
return*
feature_posi_num:
'''
pass
def cal_feature_stimu_contrast(raw_contrastLeft):
pass
def cal_feature_fb(raw_fbtype):
pass
#%% =============================================================================
# true values --> y
# =============================================================================
# calculate true values: eg: the respone of current trial is correct or not (0/1)