florian-huber / weather_prediction_dataset

Create a dataset for teaching machine learning and deep learning
MIT License
32 stars 6 forks source link

not enough values to unpack error in machine_learning_classification_months notebook #19

Open colinsauze opened 3 years ago

colinsauze commented 3 years ago

When I attempt to run the machine_learning_classification_months notebook I get this error running cell 5 (split the data):


ValueError Traceback (most recent call last)

in 1 data_3years = data[:365*3].drop(columns=['DATE']) ----> 2 X, y, X_test, y_test = train_test_split(data_3years, test_size=0.3, random_state=0) ValueError: not enough values to unpack (expected 4, got 2)
florian-huber commented 3 years ago

Thanks @colinsauze . I fixed cell 5 and 6 which were not up to date with the rest of the code... It should work now.