Thanks for your detailed codes about crime prediction!
I tried to implement your code of SEPP on my real Dataset. However, in SEPP, if only one event is sampled as the background event, the Kth nearest neighbor algorithm would fail. The way to determine whether the input coordinates are one-dim makes it hard to determine whether the input coordniates is nx1 (n is the dimension, N is the number of points = 1).
Maybe the form of input coordinates could be changed to [n,1] or [1,N], not [n,] either [N,].