0
R 제곱 추정에 대한이 함수의 오차는 무엇입니까?제곱근 추정
def R2(X, Y, model):
Y_mean = np.mean(Y, axis=0)
pred = model.predict(X)
res = np.sum(np.square(Y - pred))
tot = np.sum(np.square(Y - Y_mean))
r2 = 1 - res/tot
return r2
고마워요. 내 잘못이야. 질문과 태그를 수정하여 동일한 문제가있는 사람들이 찾아 사용할 수있게했습니다. – volatile