Re: [UrbanSim-Users] Parameter Estimation

From: sivakarthik <sivakarthik_at_mail.utexas.edu>
Date: Thu, 28 Feb 2008 12:20:51 -0600

Hello Hana,
        Thanks for the reply but when I tried to follow your steps and
estimate the parameters I am facing the following error message.

C:\opus\eugene\ESTIMA~1>python run_estimation.py -c threecounty2000 Cache
Directory set to: C:/opus/threecounty/2000/flatfile Start simulation run:
started on Thu Feb 28 12:07:41 2008
    random seed = 10
    Starting simulation for year 2000: started on Thu Feb 28 12:07:41 2008
        Closing log file:
C:/opus/threecounty/2000/flatfile\run_multiprocess.log

        Logging to file: C:/opus/threecounty/2000/flatfile\year_2000_log.txt
        Simulate year 2000: started on Thu Feb 28 12:07:41 2008..........0.0
sec

        Closing log file:
C:/opus/threecounty/2000/flatfile\year_2000_log.txt
    Starting simulation for year 2000: completed.........................0.0
sec

Start simulation run: completed..........................................0.0
sec

Closing log file: C:/opus/threecounty/2000/flatfile\run_multiprocess.log
Traceback (most recent call last):
  File "run_estimation.py", line 31, in ?
    estimator.estimate()
  File "c:\opus\urbansim\estimation\estimator.py", line 67, in estimate
    self.model_system.run(self.config,
write_datasets_to_cache_at_end_of_year=Fa
lse)
  File "c:\opus\urbansim\model_coordinators\model_system.py", line 137, in
run
 
write_datasets_to_cache_at_end_of_year=write_datasets_to_cache_at_end_of_yea
r)
  File "c:\opus\urbansim\model_coordinators\model_system.py", line 266, in
_run_ year
    SessionConfiguration().get_dataset_from_pool(dataset_name)
  File "c:\opus\opus_core\session_configuration.py", line 113, in
get_dataset_fr om_pool
    return self.get_dataset_pool().get_dataset(dataset_name)
  File "c:\opus\opus_core\dataset_pool.py", line 56, in get_dataset
    self._load_new_dataset(dataset_name, dataset_arguments)
  File "c:\opus\opus_core\dataset_pool.py", line 124, in _load_new_dataset
    arguments=arguments)
  File "c:\opus\opus_core\dataset_factory.py", line 38, in get_dataset
    arguments=arguments, debug=debug)
  File "c:\opus\opus_core\class_factory.py", line 49, in get_class
    return eval(class_name + "(**arguments)")
  File "<string>", line 0, in ?
  File "c:\opus\urbansim\datasets\vacant_land_and_building_type_dataset.py",
lin e 23, in __init__
    BuildingTypeDataset.__init__(self, *args, **kwargs)
  File "c:\opus\urbansim\datasets\dataset.py", line 58, in __init__
    CoreDataset.__init__(self,resources = resources)
  File "c:\opus\opus_core\datasets\dataset.py", line 89, in __init__
    debug = debug)
  File "c:\opus\opus_core\datasets\abstract_dataset.py", line 131, in
__init__
    attribute_type=AttributeType.PRIMARY)
  File "c:\opus\opus_core\datasets\dataset.py", line 292, in
determine_stored_at tribute_names
    return
local_resources["in_storage"].determine_field_names(local_resources,
attribute_type)
  File "c:\opus\opus_core\store\old\attribute_cache.py", line 78, in
determine_f ield_names
    attributes=attributes)
  File "c:\opus\opus_core\store\old\attribute_cache.py", line 98, in
_determine_ field_names
    raise OpusError('Attribute cache "%s" does not contain dataset table
"%s" at or before time %s' %
opus_core.opus_error.OpusError: 'Attribute cache "None" does not contain
dataset table "building_types" at or before time 2000'

The problem is that the building_types dataset does not have any year
associated to it and I am unable to find out what this error is?

-----Original Message-----
From: Hana Sevcikova [mailto:hana_at_cs.washington.edu]
Sent: Wednesday, February 13, 2008 5:32 PM
To: sivakarthik
Cc: users_at_urbansim.org
Subject: Re: [UrbanSim-Users] Parameter Estimation

Siva,

Unfortunately, we don't have documentation for estimation yet. But you
can follow the following steps:

1. Create a cache directory from your database (see
http://www.urbansim.org/docs/opus-userguide/node22.html )
    - Use the eugene/configs/baseline.py file as configuration, just

      modify the entries 'input_configuration' and 'cache_directory'.

2. In the file eugene/estimation/run_estimation.py uncomment the model
you want to estimate.

3. In eugene/estimation/my_estimation_config.py set the entry
'cache_directory' to the location where your cache data is. Also, set
the 'output_configuration' to a database where you want to have the
results. ('input_configuration' is not used here.)

4. Modify the file eugene/estimation/{model}_specification.py for the
{model} you are estimating by adding or removing variables.

5. Run eugene/estimation/run_estimation.py.
(Results will be stored into the database as well as the cache
directory, if the argument save_estimation_results is set to True.)

I hope it helps.

Hana

sivakarthik wrote:
> Hello all,
>
> I am working to run UrbanSim for the three county region
> near Austin and I have finished collecting the data sets. Can anyone
> tell me about how to estimate the parameters *using UrbanSim* for any of
> the models.
>
>
>
> Thanks and Regards,
>
> Siva Karthik.
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Users mailing list
> Users_at_urbansim.org
> http://www.urbansim.org/mailman/listinfo/users
Received on Thu Feb 28 2008 - 10:21:26 PST

This archive was generated by hypermail 2.2.0 : Mon Mar 03 2008 - 14:25:26 PST