Я закончил свое исследование и понял, что что-то не так.
Я потрясен, осознав, что мой тренировочный набор включает в себя тестовый набор !!!!!
Это мой код
indices = np.arange(seq.shape[0])
print(len(indices))#Output: The length of the dataset #1128
indices_train,indices_test,labels_train,labels_test = train_test_split(indices,labels, test_size=0.1, stratify=labels,random_state=10)
redundant=[x for x in indices_test if x in indices_train]
print(len(redundant))#Output 71
Пожалуйста, помогите мне.В чем моя ошибка: (