Note: This version uses TensorFlow v2 – for the original TensorFlow v1 version please download Release 0.2.0
Deep compositional spatial models are standard spatial covariance models coupled with an injective warping function of the spatial domain. The warping function is constructed through a composition of multiple elemental injective functions in a deep-learning framework. The package implements two cases for the univariate setting; first, when these warping functions are known up to some weights that need to be estimated, and, second, when the weights in each layer are random. In the multivariate setting only the former case is available. Estimation and inference is done using TensorFlow, which makes use of graphics processing units.

A number of manuscripts explain the theory and methodology behind the deep compositional spatial models in details, see here for the univariate setting, here for the multivariate setting, here for the spatio-temporal setting, and here for the extremes.
An informal blog post summarising the manuscript concerning the univariate setting is available here.
This is an R package. Please install
devtools and then install this package by typing
library("devtools")
install_github("andrewzm/deepspat")
in an R console.
Code using this package for reproducing the results shown in the manuscript describing the univariate setting is available in the supplemental material of our first article. Code for the results shown in manuscript describing the multivariate setting is available here.
Please note that for this version of deepspat you will
require at least TensorFlow 2.15.