
Learn a 2-D crime/patrol location distribution
Source:R/fairness_gan.R
morie_fairness_spatial_gan.RdFits a small leaky-ReLU MLP generator to an (n, 2) matrix of
standardised coordinates and returns a fitted object that can
sample() synthetic points. Mirrors the API of the JAX
SpatialGAN class, but the fit is native base R: at most 50
seeded random-search steps of size lr on the generator weights,
each kept only when it lowers the minibatch squared error (no
adversarial discriminator training, no torch / JAX).
Usage
morie_fairness_spatial_gan(
points,
steps = 1500L,
batch_size = 128L,
latent_dim = 16L,
hidden = 64L,
lr = 0.002,
seed = 0L
)