Question: The file lsq_classifier_data.ipynb contains import numpy as np # Dimensions and true w,v. np.random.seed(11) n = 50 N = 300 w_true = np.random.normal(size = n)
The file lsq_classifier_data.ipynb contains
import numpy as np # Dimensions and true w,v. np.random.seed(11) n = 50 N = 300 w_true = np.random.normal(size = n) v_true = 5
# Generate training data X, y. X = np.random.normal(size = (n, N)) y = np.sign(np.matmul(X.T,w_true) + v_true + 10*np.random.normal(size = N))
# Generate test data X_test, y_test. N_test = 100 X_test = np.random.normal(size = (n, N_test)) y_test = np.sign(np.matmul(X_test.T,w_true) + v_true + 10*np.random.normal(size = N_test))

Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
