Skip to content

Instantly share code, notes, and snippets.

Created October 30, 2020 00:16
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# finalize the log road probability feature
pd_counts = pd.Series(counts)
log_probas = np.log(pd_counts / pd_counts.sum())
# have a look at the distribution of log road probabilities in the data
plt.figure(figsize=(10, 10))
_ = plt.title("Distribution of Log Probas for Street Occurrence", fontdict={'fontsize': 16})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment