Probabilistic factor models for spatially correlated data. Includes nonnegative and real-valued versions.
From github:
pip install git+https://github.com/willtownes/spatial-factorization-py.git#egg=spatial-factorization
Pypi coming soon.
import spatial_factorization
help(spatial_factorization.ModelTrainer)
help(spatial_factorization.SpatialFactorization)
First make sure that the right tools are installed:
pip install hatch
pip install keyrings.alt
Then build with hatch:
hatch build