Top Banner
FIND MY RIDE IMPROVING YOUR BIKE SHARE EXPERIENCE DIANE IVY
17

Find my ride (wide)

Apr 12, 2017

Download

Data & Analytics

Diane Ivy
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Find my ride (wide)

FIND MY RIDEIMPROVING YOUR BIKE SHARE EXPERIENCE

DIANE IVY

Page 2: Find my ride (wide)

▸Bike shares are awesome

▸Flexible and convenient ▸ But only if a bike is available when you need it

FIND MY RIDE

Page 3: Find my ride (wide)

▸Bike shares are awesome

▸Flexible and convenient

▸But only if a bike is available when you want it

▸ But only if a bike is available when you need it

FIND MY RIDE

Page 4: Find my ride (wide)

▸ Can get current status from Hubway website or 3rd party apps.

▸ Often bikes will be gone by the time you get to a station.

▸ Can we help people find the best station to go to?

FIND MY RIDE

Page 5: Find my ride (wide)

Bike Data -2 years of station data -96 bike share stations -number of bikes available every minute at each station

Weather Data -hourly historical weather data from NOAA

12am 8am 5pm0

10N

umbe

r of B

ikes

WeekdayWeekend

Residential Station

12am 8am 5pm0

10

Num

ber o

f Bik

es

WeekdayWeekend

Business Station

FIND MY RIDE

Page 6: Find my ride (wide)

INPUT start location

and time

Googlemaps api - calculate walk time to nearby station

Forecastio - get weather forecast

MODEL random forest

classifier at each station to predict # bikes

FEATURES month

day of week time of day

(minute) precipitation temperature

holidays

FORECAST 0, 1-2, 2+ bike

availability

OUTPUT rank stations

based on walking distance and # of

bikes

FIND MY RIDE

Page 7: Find my ride (wide)

Training

54.8%

Testing

22.6%Validation

22.6%

FIND MY RIDE▸ Randomly selected days to train, test, and

validate on

▸ Tuned random forest classifier on 55% of the data (17/31 days per month) with different hyper parameters

Page 8: Find my ride (wide)

Training

54.8%

Testing

22.6% Validation

22.6%

FIND MY RIDE▸ Randomly selected days to train, test, and

validate on

▸ Tuned random forest classifier on 55% of the data (17/31 days per month) with different hyper parameters

▸ Selected best model based on score of predicting test data (7/31 days)

Page 9: Find my ride (wide)

Training

54.8%

Testing

22.6%

Validation

22.6%

FIND MY RIDE▸ Randomly selected days to train, test, and

validate on

▸ Tuned random forest classifier on 55% of the data (17/31 days per month) with different hyper parameters

▸ Selected best model based on score of predicting test data (7/31 days)

▸ Final results based on validation data (7/31 days)

Page 10: Find my ride (wide)

▸ Randomly selected days to train, test, and validate on

▸ Tuned random forest classifier on 55% of the data (17/31 days per month) with different hyper parameters

▸ Selected best model based on score of predicting test data (7/31 days)

▸ Final results based on validation data (7/31 days)

▸ Scored the model on recall score of 0 bikes

0 Bikes 1-2 Bikes 2+ BikesActual

0 Bikes

1-2 Bikes

2+ Bikes

Pred

icte

d

0.83 0.05 0.12

0.11 0.30 0.59

0.05 0.11 0.84

0.0

0.5

1.0

FIND MY RIDE

Page 11: Find my ride (wide)

Available bikes on Tuesday at 6:20pm FIND MY RIDE

Page 12: Find my ride (wide)

Available bikes on Tuesday at 6:20pm

What if you left earlier?

FIND MY RIDE

Page 13: Find my ride (wide)

Diane Ivy

Page 14: Find my ride (wide)
Page 15: Find my ride (wide)

FIND MY RIDE

month temp time (min) day precip holidays0.0

0.1

0.2

0.3

0.4

Feature Importance

Page 16: Find my ride (wide)

FIND MY RIDE

0 1 2 3 4 5 6 7 8 9 101112131415Actual

0123456789

101112131415

Pred

icte

d

0.0

0.5

1.0

0 Bikes 1-2 Bikes 2+ BikesActual

0 Bikes

1-2 Bikes

2+ Bikes

Pred

icte

d

0.83 0.05 0.12

0.11 0.30 0.59

0.05 0.11 0.84

0.0

0.5

1.0

Page 17: Find my ride (wide)

FIND MY RIDE