Closed joonv2 closed 5 years ago
Hi joonv2,
Thanks so much for trying out our code. Sincere apologies for the delay in addressing your question; I didn't check Gael's repository up until now. With that in mind, I don't recall we applied the AdaBoost classifier to our dataset. Could you please specify what script are your running and where the error occurs?
To try to address your question, I can't see shapes being the problem. If we were to apply the AdaBoost we would select all the relevant features, such as humidity, hour, could cover, month, etc that could help predict the response (solar output). In this case, the shape of the training data would be equal to the number of features. You can see a similar example here:
https://www.datacamp.com/community/tutorials/adaboost-classifier-python
where x_train has 4 features. So the number of features is entirely up to you and it doesn't have to be bounded by 2. Hope this helps :) and please let me know if you are still stuck on something
Best, -Adele
Hi, thanks for the above information and sharing the code.
But I still have the same question with joonv2. The question is when I run this 'rnn.py' file at this website: https://github.com/ColasGael/Machine-Learning-for-Solar-Energy-Prediction/tree/master/Recurrent%20Neural%20Network
with necessary 'csv' data copied from ‘https://github.com/ColasGael/Machine-Learning-for-Solar-Energy-Prediction/tree/master/Weighted%20Linear%20Regression’.
The error information is :
File "rnn.py", line 242, in
Could you explain this? thanks.
hi, When I run your code, I have an error, expected adaboost.fit(train_data, train_labels) problem. I turn off the vanilla lstm model line and turn on adaboost model. Then the problem occurs . Expected 3 dimensions but got array with shape (,) I think the 3 dimension data shape put in the lstm layer, but the adaboost might need 2 dimension shape.
How can I do.? I know your changed code to apply adaboost model. plz.