先看結果:
然後粘貼代碼:
引導包和def功能還是用原來的;
從可視化更改為以下:
Ex=[0,0.125,0.25,0.375,0.5,0.625,0.75,0.875,1]
圖= plt.figure()
對於Ex中的I:
res=forwardCloud(i,0.04,0.005,1000)
x=[x[0] for x in res]
y=[x[1] for x in res]
plt.scatter(x,y,color='red ',s=3)
plt.show()
希望能幫到妳
微軟(中國)有限公司
北京市朝陽區望京街8號利星行廣場微軟大廈
【查看地圖】
郵政編碼:100102
電話:010-59178888
傳真:010-59258588