标签: 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