next up previous index
Next: AllocationModel Class Up: Models Previous: Child Class RegressionModelWithInitialResiduals   Index


SimpleModel Class

This model is an alternative way of computing a variable on a dataset, except that the resulting attribute becomes a primary attribute (see also Section 14.1.1).

The run() method takes the following arguments:

dataset
an object of class Dataset for which the computation is done.
expression
- any variable or expression that can be computed on dataset.
outcome_attribute
- name of the outcome attribute. If it is None (default), alias of the expression is taken.
dataset_pool
- pool of datasets passed into the computation. Default is None.

The run() method computes the given expression on the given dataset. If the outcome_attribute already exists on the dataset, it is deleted. Results from the computation are assigned to outcome_attribute and the attribute is marked as primary. Values of this attribute are returned.


next up previous index
Next: AllocationModel Class Up: Models Previous: Child Class RegressionModelWithInitialResiduals   Index
info (at) urbansim.org