Update app.py
Browse files82 unmodified lines8384858686878889118 unmodified lines20820921021121121221321482 unmodified lines X_tmp = np.array([[0], [2]]) X_tmp_b = np.c_[np.ones((2, 1)), X_tmp] # add x0 = 1 to each instance y_predict_tmp = X_tmp_b.dot(np.array([b, w])) plt.plot(X_tmp, y_predict_tmp, "yellow", linewidth=2, label = "Fitted line in iteration "+str(i)) plt.plot(X_tmp, y_predict_tmp, "brown", linewidth=2, label = "Fitted line in iteration "+str(i)) if i == int(iteration/3): X_tmp = np.array([[0], [2]])118 unmodified lines outputs=[output_plot1], examples_per_page = 2, examples = [[4, 3, -7, -5, True, 0.0001, 100], [1, 2, -7, -8, False, 0.0001, 100]], title="CSCI4750/5750: Regression models (Function approximation by Gradient Descent)", title="CSCI4750/5750: Regression models \n (Function approximation by Gradient Descent)", description= "Click examples to generate random dataset and select gradient descent parameters", theme = 'huggingface', layout = 'vertical'app.py+2-2