-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathneuralnet.html
More file actions
27 lines (25 loc) · 2.15 KB
/
neuralnet.html
File metadata and controls
27 lines (25 loc) · 2.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<div align="center">
<h1>Neural Networks</h1>
<a href="index.html">Go Back to Home Page</a><br><br>
A neural network is a highly effective algorithm for classifiying a labeled variable.
The network predicts the outcome and then learns from its error--constantly improving
its prediction. <br>
I trained a neural network in Python. A great site to play with the theory behind neural
networks is <a href="https://playground.tensorflow.org/#activation=tanh&batchSize=10&dataset=circle®Dataset=reg-plane&learningRate=0.03®ularizationRate=0&noise=0&networkShape=4,2&seed=0.72424&showTestData=false&discretize=false&percTrainData=50&x=true&y=true&xTimesY=false&xSquared=false&ySquared=false&cosX=false&sinX=false&cosY=false&sinY=false&collectStats=false&problem=classification&initZero=false&hideText=false">Neural Network Playground</a><br />
<h2>Predicting Bike Rentals Using a London Bike Sharing Dataset</h2>
I used a dataset I found on Kaggle for this project <a href="https://www.kaggle.com/hmavrodiev/london-bike-sharing-dataset">Bike Sharing Dataset</a><br>
I imported the file into a Jupyter notebook and started changing the columns. As we see below, I classified values above the median as '1' and below the median as '0'
<img src = "nn.png" alt = "Picture of code" style="width:600px;height:300px;"/><br>
Next, we want to train the neural network. After assigning the label field as the new count variable, we initialize the neural network and begin to training the network to predict the count variable.<br>
<img src = "net.png" alt = "Picture of Net"style="width:600px;height:300px;"/><br>
The neural network can predict the label of the count variable with ~73% accuracy.
<h2>Impact</h2>
Since I fed in several key variables about time of day, season, and weather it is possible
to adjust those variables when placing bikes in London to maximize bike sharing. There is
a ton of potential in this project to help increase the availability of bike rentals and understand
when and why bikes are rented.
<br><br>
Full code can be found here: <a href="zhttps://github.com/basillatif/NeuralNetfoLondonBikeDataset
">https://github.com/basillatif/NeuralNetfoLondonBikeDataset
</a>
</div>