Re: Estimating Model Coefficients...

From: Hana Sevcikova <hana_at_cs.washington.edu>
Date: Mon, 26 Feb 2007 05:52:05 -0800 (PST)

Quinn,

I'm going to answer your last question and hope that somebody else from
our team will answer the others soon.

The error you're reporting was fixed since the version you're using. I'm
attaching a patched version of the file estimator_new.py. Please replace

C:\Python24\Lib\site-packages\urbansim\estimation\estimator_new.py

by this file. It stores the estimated coefficients and specification into
mysql database (make sure you set 'output_configuration' in your
configuration file), as well as into your cache directory. I hope it will
work for you (we haven't done extensive testing of this code on the Nov 21
version, but it works with our latest version of urbansim).

Hana

On Fri, 23 Feb 2007, Quinn Korbulic wrote:

> Greetings,
>
> In attempting to estimate model coefficients I've run into a couple
> problems. The first is that I am missing some tables, tables that are not
> specified in the documentation (I am using the Nov 21st 06 version). Now I
> know the documentation does not yet reflect urbanism 4, so I was hoping
> someone could inform me on the schema of the tables and possibly of their
> data sources. The first is persons (from households?) The others are
> large_areas, plan_type_groups, and plan_type_group_definitions. I assume
> (maybe incorrectly?) that the tables associated with plan types carry the
> same schema as the tables for development_types but am lost on large_areas.
>
> I also am missing some fields in my travel data table, specifically
> 'am_single_vehicle_to_work_travel_time' and
> 'single_vehicle_to_work_travel_cost'. How much would it hurt to add these
> fields and enter a constant value for each TAZ, say 12 minutes for
> .travel_time and $2.25 for .travel_cost?
>
> One more thing.for the model that I have had success estimating, AOCM, I
> have not been successful at creating the coefficients and specification
> tables. In my run_estimation.py file there is a line
>
> estimator = Estimator(run_configuration, save_estimation_results=False)
>
> where when I change save_estimation_results=True, an error results.
>
> Simulate year 1997: completed....................................6.1
> sec
> Closing log file: c:/urbansim_cache/ep_pilot\year_1997_log.txt
> Starting simulation for year 1997: completed.........................6.2
> sec
> Start simulation run: completed..........................................6.2
> sec
> Traceback (most recent call last):
> File "run_estimation.py", line 49, in ?
> estimator.estimate()
> File "C:\Python24\Lib\site-packages\urbansim\estimation\estimator_new.py",
> line 69, in estimate
> self.save_results(out_storage=out_storage)
> File "C:\Python24\Lib\site-packages\urbansim\estimation\estimator_new.py",
> line 105, in save_results
> elif self.model_system.vardict['output_db'] is None:
> KeyError: 'output_db'
>
> Am I going about this the wrong way? i.e. is there somewhere else, besides
> the estimation configuration file, where I can specify that the results be
> saved to MySQL?
>
> Thanks for your help..
>
> Quinn Korbulic
> GIS Coordinator
> Spatial Applications and Research Center
> New Mexico State University
> Geography Department
> Box 30001, Dept. MAP
> Las Cruces, NM 88003-0001
> VOICE (505) 646-5755
> FAX (505) 646-7430
>
>
>

Received on Mon Feb 26 2007 - 05:52:06 PST

This archive was generated by hypermail 2.2.0 : Mon Feb 26 2007 - 05:52:08 PST