This dataset has the number of riders for each hour of each day from January 1 2011 to December 31 2012. The number of riders is split between casual and registered, summed up in the cnt column.
- Implement the sigmoid function to use as the activation function. Set self.activation_function in init to your sigmoid function.
- Implement the forward pass in the train method.
- Implement the backpropagation algorithm in the train method, including calculating the output error.
- Implement the forward pass in the run method.
Choose the number of iterations Choose the learning rate Choose the number of hidden nodes
The more hidden nodes you have, the more accurate predictions the model will make.
- iterations = 20000
- learning_rate = 0.05
- hidden_nodes = 30
- output_nodes = 1
Here, use the test data to view how well your network is modeling the data. If something is completely wrong here, make sure each step in your network is implemented correctly.
The model predicts the data pretty well, except for the last ten days. These days was the holiday and the demand for bike was different from the regular days.