Sam Maurer
Sam Maurer
In some cases we need to intervene in the choice simulation process, for example checking the aggregate attractiveness of neighborhoods and raising their prices until demand falls below supply everywhere....
Feature wish list for sampling of alternatives in the `MergedChoiceTable` utility: 1. Availability of alternatives 2. Accepting callable for on-the-fly calculation of weights, availability, and interaction terms 3. Representation of...
It would be nice to refactor the MNL estimation code, which was originally brought over from `urbansim.urbanchoice.mnl`. It's been updated in places to provide additional estimation metrics and resolve deprecation...
Some of our unit tests are probabilistic, so they sometimes fail. The tests are intended to verify that things like sampling weights are being applied correctly. But since the sampling...
We should clean up the summary table functionality, probably creating a general-purpose function to generate tables. Currently this is part of the MNL codebase: [mnl.py#L336-L479](https://github.com/UDST/choicemodels/blob/77215d06aad89c4c84c7936261b4958969e626dd/choicemodels/mnl.py#L336-L479) Cleaning it up would streamline...
In Pandas 1.2+, `pandas.Index.to_native_types()` is deprecated, raising warnings like the following: This comes up in code that serializes data to yaml for storage and later reloading. [urbansim/utils/yamlio.py#L48](https://github.com/UDST/urbansim/blob/5d934c6ff7662dee909cb1c5c80b83d385bae1e7/urbansim/utils/yamlio.py#L48) The replacement suggested...
Some of our unit test syntax has been deprecated and removed in recent versions of PyTest. For example, tests that directly called the `df()` fixture defined in [test_mnl.py#L82](https://github.com/UDST/urbansim/blob/master/urbansim/urbanchoice/tests/test_mnl.py#L82) were raising...
In the MNL estimation code there are bounds set on the coefficient values, i guess so that unstable models will converge on something. The default bounds are (-3, 3), which...
This PR merges `dev` into `main`. See #186 for release notes.