Untitled

mail@pastecode.io avatar
unknown
python
2 years ago
1.1 kB
3
Indexable
Never
#Dataset
X = pd.DataFrame(X) 
# Splitting data into Train data ; 13 participants eeg data(i.e. 520 vid trials)
X_train = X[0:520]
X_train = X_train.to_numpy()
print('Training data',X_train.shape)

# Splitting data into Validation data ; 4 participants eeg data(i.e. 160 vid trials)
X_Val = X[520:680]
X_Val = X_Val.to_numpy()
print('Validation data', X_Val.shape)

# Splitting data into Validation data ; 5 participants eeg data(i.e. 200 vid trials)
X_test = X[680:880]
X_test = X_test.to_numpy()
print('Testing data', X_test.shape)


#Labels
y = pd.DataFrame(y) 
# Splitting data into Train data ; 13 participants eeg data(i.e. 520 vid trials)
y_train = y[0:520]
y_train = y_train.to_numpy()
print('Training data',y_train.shape)

# Splitting data into Validation data ; 4 participants eeg data(i.e. 160 vid trials)
y_Val = y[520:680]
y_Val = y_Val.to_numpy()
print('Validation data', y_Val.shape)

# Splitting data into Validation data ;  5 participants eeg data(i.e. 200 vid trials)
y_test = y[680:880]
y_test = y_test.to_numpy()
print('Testing data', y_test.shape)