predictive_functions module

predictive_functions.historicalUtilizationPercentageWithIgnore(StreetName, BetweenStreet1, BetweenStreet2, timestamp, lookbackWeeks, timewindow, client)

Finds the predicted availablity for each block by looking at the previous utilization on the same day types and times

Parameters:
  • StreetName (str) – The Street Name associated with the block.
  • BetweenStreet1 (str) – The intesecting street to the Street Name that defines one end of the block.
  • BetweenStreet2 (str) – The intesecting street to the Street Name that defines the other end of the block.
  • timestamp (datetime) – The date and time for the prediction.
  • lookbackWeeks (int) – The number of weeks to examine before the timestamp to form the prediction.
  • timewindow (int) – The number of minutes to examine around the given timestamp at each week to form the prediction.
  • client (pymongo.mongo_client.MongoClient) – The pymongo MongoClient instance.
Returns:

float – the percentage of examined time in which the block has at least one open parking bay.