Я хочу использовать односторонний anova в выборе функции, и я пытаюсь увидеть значения F синтетического c набора данных, вот мой код:
X=[[0.01,0.02,0.03,0.04,0.15],
[0.01,0.02,0.03,0.04,0.15],
[0.01,0.02,0.03,0.04,0.15],
[0.01,0.02,0.03,0.04,0.15],
[0.01,0.02,0.03,0.04,0.15],
[-0.01,-0.02,-0.03,-0.04,-0.15],
[-0.01,-0.02,-0.03,-0.04,-0.15],
[-0.01,-0.02,-0.03,-0.04,-0.15],
[-0.01,-0.02,-0.03,-0.04,-0.15],
[-0.01,-0.02,-0.03,-0.04,-0.15]]
X=np.array(X)
Y=[1,1,1,1,1,0,0,0,0,0]
Y=np.array(Y)
F, pv = f_classif(X, Y)
print("F Values")
print (F)
, но я получил отрицательные оценки , В чем моя ошибка?