偏差方差问题
问题介绍
见参考链接:
https://en.wikipedia.org/wiki/Bias%E2%80%93variance_tradeoff
http://scott.fortmann-roe.com/docs/BiasVariance.html
实验
内容:在多项式拟合问题中,画出bias-variance tradeoff曲线
代码地址:https://github.com/ZJPENG1234/justCodes/blob/master/bias_variance_tradeoff.py
结果如下(横轴为模型复杂度,在这里是多项式次数)