PS C:\Users\tang2000\Desktop\作业集\机器学习\HW3> & "C:/Program Files (x86)/Microsoft Visual Studio/Shared/Python37_64/python.exe" c:/Users/tang2000/Desktop/作业集/机器学习/HW3/gradient_decent.py the call load_file(): start time is 2021-04-27 17:56:27.794754 end time is 2021-04-27 17:56:28.011175 the total cost :0:00:00.216421 the call transform_X(): start time is 2021-04-27 17:56:28.012173 end time is 2021-04-27 17:56:30.245313 the total cost :0:00:02.234138 this time the initial is [[-3.69020197] [ 0.20611856] [ 0.69362077] ... [ 0.46368779] [ 0.66783387] [ 0.07874851]] the call Gradient_Descent(): start time is 2021-04-27 17:56:30.764009 0.15731839449845036 0.1560553635496188 0.1548242789528872 0.15362394259935647 0.15245321710923876 0.15131102193971788 0.150196329794521 0.14910816330775892 0.1480455919774522 0.1470077293267078 0.14599373027271173 0.1450027886857066 0.14403413512187516 0.14308703471559675 0.14216078521795583 0.14125471516960517 0.14036818219720384 0.13950057142363873 0.138651293983126 0.13781978563309427 0.13700550545545445 0.13620793464052613 0.13542657534745592 0.13466094963549743 0.13391059846099412 0.13317508073534118 0.1324539724395847 0.13174686579167605 0.13105336846271504 0.1303731028388152 0.12970570532547895 0.12905082569162382 0.12840812645061284 0.1277772822758497 0.12715797944868393 0.12654991533652812 0.12595279789926786 0.12536634522215673 0.1247902850735476 0.12422435448590564 0.12366829935867844 0.12312187408168532 0.12258484117778759 0.12205697096368999 0.12153804122779063 0.12102783692408557 0.1205261498811846 0.12003277852557713 0.1195475276183216 0.11907020800440446 0.11860063637405485 0.11813863503534572 0.11768403169746265 0.11723665926405072 0.1167963556360952 0.11636296352382026 0.11593633026712483 0.1155163076641007 0.1151027518072121 0.11469552292672985 0.11429448524105287 0.11389950681355676 end time is 2021-04-27 19:10:51.241209 the total cost :1:14:20.477200 The GD algorithm running rounds are 6123 the optimal value we find is 0.11380950530145387 ################################################################################################### ################################################################################################### the call load_file(): start time is 2021-04-28 21:54:19.973622 end time is 2021-04-28 21:54:20.230936 the total cost :0:00:00.257314 the call transform_X(): start time is 2021-04-28 21:54:20.232928 end time is 2021-04-28 21:54:22.283296 the total cost :0:00:02.050368 the call closed_form_solu(): start time is 2021-04-28 21:54:22.650506 end time is 2021-04-28 21:55:50.054951 the total cost :0:01:27.404445 the call closed_form_solu(): start time is 2021-04-28 21:55:50.057943 end time is 2021-04-28 21:57:25.356765 the total cost :0:01:35.299819 w is [[-3.27719862e+00] [ 4.03040410e+03] [ 1.08720575e+02] ... [ 9.99005423e+02] [ 6.18355307e+02] [ 4.25105490e+01]] f_optimal is 0.06380990067366617 u is [[-3.27719862] [ 1.28726354] [ 0.93520616] ... [ 1.45922689] [ 2.23809503] [ 0.10054219]] g_optimal is 0.06380990067366608 ################################################################################################### ###################################################################################################