llSourcell / ethereum_future

This is the Code for "Ethereum Future Prices" by Siraj Raval on Youtube
303 stars 180 forks source link

Data model and shuffle? Why? #13

Open boxxa opened 6 years ago

boxxa commented 6 years ago

Can someone explain why the data is converted into a 3D array and also why we shuffle? Wouldn't this data be a time series so the order would matter?

#Convert the data to a 3D array (a x b x c) #Shuffle the data np.random.shuffle(training_data)

I assume based on the outline the data would have an index for the day and then have a value for each of the fields he outlined but not sure why the time sequence wouldn't take a part in this and we would shuffle? My thought on the data format to feed into this would be a CSV with each feature value and the target being price but little confused.

Hisairnessag3 commented 6 years ago

Because this is thoughtless junk code.