2021 iThome 鐵人賽
分享至
def loss(y, y_predicted): return ((y_predicted-y) ** 2).mean()
def gradient(x, y, y_predicted): return np.dot(2*x, y_predicted - y).mean()
IT邦幫忙