Giter Club home page Giter Club logo

Comments (9)

bettinardi avatar bettinardi commented on June 20, 2024

I haven't fully looked through all the files you provided, but my guess is the issue is in configuring the settings file. One thing that jumps out at me is that your seed data is specified at the TAZ level -

Geographic Settings

------------------------------------------------------------------

geographies: [REGION, TRACT, TAZ]
seed_geography: TAZ

The seed is commonly the PUMA level (larger lever than the TAZ) - it looks like you are indeed using a Seed at the TAZ level - perhaps from a household survey. But my hunch is that there is a configuration issue. The warnings above the error also make me concerned that something is incorrect in the settings. Sorry I can't be of more help, but I will continue to think on it and post any other ideas that jump to mind.

from populationsim.

binnympaul avatar binnympaul commented on June 20, 2024

I also haven't looked through all the files but as @bettinardi pointed out, TAZs cannot be set as the seed geography in this case. In PopulationSim, there can be only one meta-geography above the seed geography. Any geography can be set as the seed geography (need not be PUMA always), provided there is only one geography above it. So in this case, TRACT should be set as the seed geography. Please try setting TRACT as the seed.

from populationsim.

kata26rakuda avatar kata26rakuda commented on June 20, 2024

@bettinardi @binnympaul Thank you so much for your suggestion. I modified the configuration setting.yaml to set TRACT as the seed geography as attached, and then it seems the current issue has been solved. However, I am still facing another error ("assert weights_df is not None") at sub_balancing.geography=TRACT model (populationsim/steps/sub_balancing.py, line 236) as follows. Do you have any idea to solve this error?


Running step 'sub_balancing'
WARNING - AssertionError exception running sub_balancing.geography=TRACT model:
ERROR - mp_tasks - mp_seed_balancing - AssertionError exception caught in mp_run_simulation:
ERROR -

Traceback (most recent call last):
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\activitysim\core\mp_tasks.py", line 915, in mp_run_simulation
run_simulation(queue, step_info, resume_after, shared_data_buffer)
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\activitysim\core\mp_tasks.py", line 867, in run_simulation
raise e
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\activitysim\core\mp_tasks.py", line 864, in run_simulation
pipeline.run_model(model)
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\activitysim\core\pipeline.py", line 502, in run_model
orca.run([step_name])
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\orca\orca.py", line 2177, in run
step()
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\orca\orca.py", line 973, in call
return self._func(**kwargs)
File "C:\Users\oc3490\anaconda3\envs\popsim\lib\site-packages\populationsim\steps\sub_balancing.py", line 236, in sub_balancing
assert weights_df is not None
AssertionError

configs.zip

from populationsim.

kata26rakuda avatar kata26rakuda commented on June 20, 2024

Hello, is there any one to provide some ways to solve this issue to me?

from populationsim.

bettinardi avatar bettinardi commented on June 20, 2024

I'm sorry that no one has been able to respond. In general it seems like your attempts are outside of the way we were thinking Popsim would be used. So I think Popsim is breaking because we didn't anticipate the configuration you are attempting. To fix it, I think Binny or myself or someone familiar with PopSim would need to comb through your setup / approach and fully review and try to reconfigure the approach to get it working. It's possible it's something simple, but it's hard to guess without more fully getting up to speed with what you are attempting (at least for myself - to be able to respond I would need to fully review and understand your set up). So my only real suggestion (which is not very helpful), is to try and refer back to the instructions and attempt to test re-configuring your setup closer and closer to provided examples or instructions to get it to work and then back out from there, what is different in your approach that is breaking the tool - https://activitysim.github.io/populationsim/.

Were you able to get an example to run that you can refer back to?

from populationsim.

binnympaul avatar binnympaul commented on June 20, 2024

I also suggest you review the examples in the repository and the instructions. Your error seems to be due to an inconsistent configuration of the settings file. Complete instructions on configuring the settings file are here: https://activitysim.github.io/populationsim/application_configuration.html#configuring-settings-file

As @bettinardi mentioned, it is not very easy to debug without looking at the setup. It seems like you have a sub-balancing step for your seed geography (TAZ) in the run_list. You cannot have a sub-balancing step for the seed geography. Try correcting that and see if it fixes the issue for you.

Reading through the entire wiki will be very helpful. There are links to additional resources including a training package here: https://activitysim.github.io/populationsim/docs.html#external-resources

from populationsim.

kata26rakuda avatar kata26rakuda commented on June 20, 2024

@binnympaul @bettinardi Thank you so much for your reply. As @binnympaul pointed out, the sub-balancing setting seems to occur the error which I have encountered. After fixing this setting with non-seed geopraphy, the program is running well now. I appreciate your suggestion.

from populationsim.

bettinardi avatar bettinardi commented on June 20, 2024

That's great to hear - I hope you have a good experience with PopulationSim moving forward.

from populationsim.

bettinardi avatar bettinardi commented on June 20, 2024

This looks resolved - hopefully I'm closing correctly

from populationsim.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.