jiehou commited on
Commit
b95ad10
·
1 Parent(s): ce0a2c6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -126,8 +126,8 @@ def gradient_descent(intercept=4, slope=3, intercept_random=4, slope_random=3, g
126
  #plt.text(intercept_random, slope_random,'MSE:'+str(np.round(cal_mse(X,y,intercept_random, slope_random),2)), fontsize=22)
127
 
128
  ### (5.7) draw gradient updates
129
- if gradient_descent:
130
- plt.plot(b_history, w_history, 'o-', ms=3, lw=1.5, color='black')
131
 
132
 
133
 
 
126
  #plt.text(intercept_random, slope_random,'MSE:'+str(np.round(cal_mse(X,y,intercept_random, slope_random),2)), fontsize=22)
127
 
128
  ### (5.7) draw gradient updates
129
+ #if gradient_descent:
130
+ # plt.plot(b_history, w_history, 'o-', ms=3, lw=1.5, color='black')
131
 
132
 
133