You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
from sklearn.model_selection import train_test_split
from sklearn.linear_model import LogisticRegression
# Create a matrix with 1000 observations and 7 variables--I think here is where you read in the data file, saving it in a data frame called "data". What follows seems to generate the matrix artificially.
data = np.random.rand(1000, 7)
# Split the data into a training set and a test set