摘要:
import numpy as npimport matplotlib.pyplot as pltx_data=[1,2,3]y_data=[2,4,6]w=1def forword(x): return x*w #linear modeldef cost(xn,yn): #平均损失函数 cost= 阅读全文
posted @ 2022-01-05 16:30
wxrdml
阅读(40)
评论(0)
推荐(0)
摘要:
import numpy as npimport matplotlib.pyplot as pltx_data=[1,2,3]y_data=[2,4,6]def forword(x): return x*wdef loss(x,y): y_pred=forword(x) return (y_pred 阅读全文
posted @ 2022-01-05 15:07
wxrdml
阅读(38)
评论(0)
推荐(0)

浙公网安备 33010602011771号