Skip to content

Problem when the number of sampled Background events comes to 1 #1

Description

@skepsun

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,].

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions