choicemodels
choicemodels copied to clipboard
Python library for discrete choice modeling
This PR fixes a bug in`iterative_lottery_choices()` which creates an empty merged choice table object if/when all rows of alts table are filled and dropped before max capacity is exceeded.
I would like to estimate a nested logit model with sampling of alternatives similar to Lee and Waddell (2010). Does ChoiceModels have a built-in functionality for nested logit and mixed...
When the `mct_intx_ops` functionality was designed, it was only enabled for the `LargeMultinomialLogitStep` model template, and so that is where the code to actually perform the interaction term operations process...
References: - https://doi.org/10.1177%2F0081175018793460 - https://infoscience.epfl.ch/record/117096/files/Frej07.pdf
The `test_parallel_lottery_choices` unit test is failing in certain environments. My local machine, MacOS 10.15: - py36 and py37: works - py38 and py39: error GitHub Actions ([link](https://github.com/UDST/choicemodels/runs/1921592875?check_suite_focus=true)): - ubuntu: all...
Implemented a new feature of the `MergedChoiceTable` class for performing uniform stratified sampling of alternatives. For use cases that require heavy sampling of alternatives to make the problem tractable (e.g....
It looks like the [MultinomialLogitResults](https://github.com/UDST/choicemodels/blob/4e89877626b661334c4e04bda17e2f7aa81bfc4e/choicemodels/mnl.py#L228) class can only provide fitted probabilities for MergedChoiceTables that are generated with sampling of alternatives. This is a bug; there's no reason we can't calculate...
This is a new issue to discuss performance optimization for sampling of alternatives in the `MergedChoiceTable` utility. Earlier discussion is in issues #4, #5, and #11, now closed. Core functionality...
PyLogit estimation for MNL is more flexible than the native ChoiceModels implementation (originally brought over from `urbansim.urbanchoice.mnl`), but much slower. See initial experiments here: [Destination-choice-models-02.ipynb](https://github.com/UDST/choicemodels/blob/master/notebooks/Destination-choice-models-02.ipynb) What's causing the performance gap?...
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....