jpn-- / larch

Larch: a Python tool for choice modeling
http://larch.newman.me
GNU General Public License v3.0
41 stars 14 forks source link

make model.utility work for nested models #10

Closed janzill closed 3 years ago

janzill commented 3 years ago

exp_utility is not defined for nested models so the current implementation of model.utility fails.

janzill commented 3 years ago

My use case here was to validate the implementation of a model estimated in larch in an external software package.

janzill commented 3 years ago

Tests are failing, but doesn't seem related to new code: image

jpn-- commented 3 years ago

Thanks for making a contribution! I'll check this out and merge soon. Don't worry about appveyor failing, it's been failing for a while. Something's misconfigured there, and fixing it is a low priority as Larch now has Windows tests hooked in through conda-forge.

jpn-- commented 3 years ago

I merged this, but holding off on pushing the compiled version to conda-forge as the Linux build arm there is presently broken. https://gitter.im/conda-forge/conda-forge.github.io?at=5f8edfbc631a250ab27ebc30