Skip to main content

LocPick

locpick is a Python library for estimating discrete choice models of location decisions — where individuals, households, or firms choose among spatially-defined alternatives (neighborhoods, jobs, housing units, transit stops). These methods have broad applicability but are common in regional land-use and housing market modeling. The package is designed for:

  • Large-scale urban models: 100K+ choosers, 1K+ alternatives
  • Sampling-based estimation: Most alternatives are irrelevant; only a sampled subset is evaluated per chooser
  • Spatial dependence: Nearby alternatives can affect each other or share unobserved attributes (via graph= on any model)
  • Heterogeneous preferences: Mixed logit for random taste variation
  • Nested structure: Nested logit for hierarchical choice (e.g., county → tract → block)
  • JAX-native computation: JIT-compiled kernels, GPU acceleration, automatic differentiation

The package is not a general-purpose ML library. It is specifically for structural econometric models of choice where the likelihood has a closed form (or simulated approximation) and parameters have behavioral interpretations. For more transportation-oriented problems, see larch

Features

LocPick can automate the creation of choice tables for estimation or simulation, using census choice sets, uniform or weighted random sampling of alternatives, generated interaction terms, and cartesian merges. A unique feature is the implementation of spatial choice models, which take one of two forms.

  • The Bhat et al approach is similar to a spatial error model, assuming that nearby alternatives are more similar (closer substitutes).
  • The SAR style approach assumes that the structural utility of each alternative $V$ has a simultaneous autoregressive structure, and is estimated with either PML or GMM

It also provides tools for Monte Carlo simulation of choices given probability distributions from fitted models, with fast algorithms for independent or capacity-constrained choices.

LocPick includes estimators for classic, spatially-correlated, and simultaneous autoregressive:

  • Multinomial Logit
  • Nested Logit
  • Mixed Logit and
  • Mixed/Nested

models, and an internal data pipeline designed around pandas inputs, xarray-backed alignment, and NumPy/JAX-ready arrays.

Metadata

Release files for locpick 0.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for locpick 0.0.0
File Size Uploaded Provenance Actions
locpick-0.0.0.tar.gz 2.1 MB With provenance Details for locpick-0.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for locpick 0.0.0
File Interpreter ABI Platform Actions
locpick-0.0.0-py3-none-any.whl Python 3 none any Details for locpick-0.0.0-py3-none-any.whl

Total release size: 2.3 MB

Release files / locpick-0.0.0.tar.gz

Download URL locpick-0.0.0.tar.gz
Size 2.1 MB
Tags Source
SHA-256 checksum
How to use checksums
fccda63bfa9a9850dd9a25733bf6bf3ee70c8fa3680ced1b80f2ea55cbb92575
BLAKE2b-256 checksum
How to use checksums
c2942b20a360ef6a07bde7d846057d263802d766675f11d7ef1db7b8e25c2410
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Release files / locpick-0.0.0-py3-none-any.whl

Download URL locpick-0.0.0-py3-none-any.whl
Size 171.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
29504e8085aaa99fc713da4dfe0c6564c9d4cb1c85197093f6f06575f9c59fa2
BLAKE2b-256 checksum
How to use checksums
d6f81fae37266aa4ec333df2c2e7805be71fa8bc0be95cc2d71138f98cc5d5b3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

Security for locpick 0.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for locpick-0.0.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 4, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page