I attempt to solve this problem 6 in this notebook. The question is to train a simple model on this data using 50, 100, 1000 and 5000 training samples by using the LogisticRegression model from sklearn.linear_model
.
lr = LogisticRegression()
lr.fit(train_dataset,train_labels)
This is the code i trying to do and it give me the error.
ValueError: Found array with dim 3. Estimator expected <= 2.
Any idea?
UPDATE 1: Update the link to the Jupyter Notebook.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…