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

Visit probability more than 1 #55

Open
arindamsaha1507 opened this issue Feb 8, 2024 · 3 comments
Open

Visit probability more than 1 #55

arindamsaha1507 opened this issue Feb 8, 2024 · 3 comments
Assignees
Labels
bug Something isn't working

Comments

@arindamsaha1507
Copy link
Collaborator

Perhaps the parameters need some tweaking but currently the visit probability in atleast some locations is more than one. This is caught by the error handler here:

raise ValueError("prob must be between 0 and 1")

which traces back to

elif probability(visit_probability):

Should I set it to 1 if it is more, or should we change the visit times?

@arindamsaha1507 arindamsaha1507 added the bug Something isn't working label Feb 8, 2024
@djgroen
Copy link
Owner

djgroen commented Feb 8, 2024

Hi Arindam,

If it's more than one, then perhaps set the visit probability to 1, but scale up the visit time proportionally for that specific case :).

@arindamsaha1507
Copy link
Collaborator Author

I have set the probability to 1.

Do you think that scaling should be done for needs or avg_visit_times here?

avg_visit_times = [90, 60, 60, 360, 360, 60, 60] # average time spent per visit

I am asking because the raw probability for hospitals is coming out to be 49(!) in some cases. Maybe the needs of some age groups are not proper...

What do you think?

@djgroen
Copy link
Owner

djgroen commented Feb 8, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants