golearn icon indicating copy to clipboard operation
golearn copied to clipboard

DBSCAN panic indeed does happen.

Open netbrain opened this issue 5 years ago • 0 comments

panic: Shouldn't happen!

goroutine 1 [running]:
github.com/sjwhitworth/golearn/clustering.DBSCAN.func1(0x37, 0xc0000dc600, 0x19)
        /home/netbrain/dev/go/pkg/mod/github.com/sjwhitworth/[email protected]/clustering/dbscan.go:74 +0x5c4
github.com/sjwhitworth/golearn/clustering.DBSCAN(0x9d99e0, 0xc0000902d0, 0xc0000dc120, 0x2, 0x2, 0x9cf580, 0xec8d98, 0x3ff0000000000000, 0x5, 0x0, ...)
        /home/netbrain/dev/go/pkg/mod/github.com/sjwhitworth/[email protected]/clustering/dbscan.go:126 +0x3cc
main.main.func1(0x258, 0x3ff51d606fe6de50, 0x9d5860, 0xc0000e0140, 0xc0000e0000)

I don't know what triggers it, for the most part this doesn't panic, but really frustrating when it does.. Would it not be better to just set the bit to 0 instead of panic?

netbrain avatar Feb 07 '20 10:02 netbrain