the-maximum-likelihood-estimate
代码说明:
1、 极大似然估计 尝试用0~24阶多项式拟合,并用5折交叉验证选择最佳模型(多项式阶数及其系数,给出类似课件中的图),并画出最佳模型的拟合效果图(类似图1,蓝色点为训练样本、红色点为测试样本、绿色线为模型预测),给出该模型的测试误差。 2、 岭回归 多项式阶数为24,正则系数λ的取值范围为exp(-19)到exp(20),采用并用5折交叉验证选择最佳模型。实验结果要求同1。 (1, the maximum likelihood estimate of 0 to 24 try-order polynomial fitting, with 5-fold cross-validation to select the best model (polynomial order and coefficients are given in Figure similar courseware), and draw the best model Fitting renderings (similar to Figure 1, a blue dot to the training sample, the test sample is red dot, the green line is the model prediction), the test error of the model are given. 2, ridge regression polynomial order of 24, the regular coefficient ranges λ is exp (-19) to exp (20), and with the use of 5-fold cross-validation to select the best model. The experimental results with a requirement.)
下载说明:请别用迅雷下载,失败请重下,重下不扣分!