Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Train arrival time algorithm #40

Open
jrootham opened this issue Oct 4, 2018 · 3 comments
Open

Train arrival time algorithm #40

jrootham opened this issue Oct 4, 2018 · 3 comments

Comments

@jrootham
Copy link

jrootham commented Oct 4, 2018

Start by selecting all the samples for a train ordered by timestamp.
Merge all samples for a train in the same sample period to get a good estimate of the location.
Use those location estimates to generate arrival time estimates.

@radumas
Copy link
Collaborator

radumas commented Oct 7, 2018

Hi @jrootham,

You can have at look at #13 for previous work on this. As well as doc/filtering_observed_arrivals.ipynb

@radumas
Copy link
Collaborator

radumas commented Oct 9, 2018

I realize this isn't really written out in plain English in the notebook. The procedure I tried was:

  1. Filter observations where the train is "At Station" or is <1 minute from arriving.
  2. Order those observations by expected arrival time (create_date + timint)
  3. If the traindirection is the same as the previous observation for this train, then it's the same trip. If if changes, then it's a different trip.
  4. For each trip, the minimum estimated arrival is the arrival time, and the maximum estimated arrival is the "departure time"

Results.... could be improved upon.

@jrootham
Copy link
Author

jrootham commented Oct 9, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants