photoprism/pkg/vector/alg/errors.go
Michael Mayer 418a018f6e Faces: Remove unused OPTICS clusterer from pkg/vector/alg #5628
The vendored OPTICS implementation was never invoked: face clustering
uses DBSCAN (alg.DBSCANWithProgress), and OPTICS() had no callers or
tests. Removing it also drops a latent no-op loop (PVS-Studio V8016)
in extract(). Drop the now-orphaned errZeroXi and update the rangeJob
comment and README to match. See discussion #5628.
2026-05-30 07:15:18 +00:00

13 lines
482 B
Go

package alg
import "errors"
var (
errEmptySet = errors.New("empty training set")
errZeroIterations = errors.New("number of iterations cannot be less than 1")
errOneCluster = errors.New("number of clusters cannot be less than 2")
errZeroEpsilon = errors.New("epsilon cannot be 0")
errZeroMinpts = errors.New("minpts cannot be 0")
errZeroWorkers = errors.New("number of workers cannot be less than 0")
errInvalidRange = errors.New("range is invalid")
)