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

The reason for multiplying 2 at the ASM.py beta_free_flow and beta_cong_flow and setting hyperparatmeters. #3

Open
seungwooham opened this issue May 9, 2024 · 1 comment
Assignees

Comments

@seungwooham
Copy link

seungwooham commented May 9, 2024

Hi, first of all, thanks for sharing the rich material for I24 data processing.

While I was checking out the code, I found that the return value was multiplied by 2 at the beta_free_flow and beta_cong_flow functions.

I guess the authors of this repo would have some specific reason for this, because in the original paper (An adaptive smoothing method for traffic state identification from incomplete information), the multiplied coefficient 2 is omitted.

image

In the code, we can find out the return value as

return np.exp(-(2np.abs(dx)/x_win + 2np.abs(dt)/t_win))
return np.exp(-(2np.abs(dx)/x_win + 2np.abs(dt)/t_win))

Could you please explain the reason for this?

In addition, it would be really great if you could add some reason for setting the hyperparameters.

Such as smooth_x_window $\sigma$, smooth_t_window $\tau$, c_free, c_cong, and V_c.

Thank you!

@seungwooham seungwooham changed the title The reason for multiplying 2 at the ASM.py beta_free_flow and beta_cong_flow The reason for multiplying 2 at the ASM.py beta_free_flow and beta_cong_flow and setting hyperparatmeters. May 9, 2024
@junyi9
Copy link
Contributor

junyi9 commented Jun 19, 2024

Hi,

Thank you for reporting the issue. It appears to be a bug in the code, and I will address it in the next release. ASM.py will be updated. Regarding the hyperparameters, I did not follow the original paper's approach, where the observation data point is with a larger interval in that paper. For the next release, I will tune the hyperparameters accordingly.

Thanks again for your valuable feedback!

@junyi9 junyi9 self-assigned this Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants