def linear_regression_data(data_inputs):
### BEGIN SOLUTION
first_column = np.ones((len(data_inputs), 1))
X_matrix = np.c_[first_column,data_inputs]
return X_matrix
### END SOLUTION
微信扫一扫
def linear_regression_data(data_inputs):
### BEGIN SOLUTION
first_column = np.ones((len(data_inputs), 1))
X_matrix = np.c_[first_column,data_inputs]
return X_matrix
### END SOLUTION
相关推荐