根据RSS定义AIC和BIC

时间:2018-12-03 12:01:59

标签: python

在为rss,aic和bic定义函数时, 鉴于RSS如下,如何定义RSS的AIC和BIC?

 def rss_loss(X, y, learned_coeff):
   pred_y = polynomial(X, learned_coeff)
   rss = np.sum(np.square(pred_y - y))
   return rss

0 个答案:

没有答案