Documentation ¶
Index ¶
- Constants
- func DistanceBasedPrecisionRecall(predIdxs, gtIdxs []int, prediction []lsh.Neighbor, groundTruth []float64, ...) (float64, float64)
- func GetFloat64Range(data [][]float64) (float64, float64)
- func GetVectorsFromHDF5(table *hdf5.File, datasetName string, vecs interface{}) error
- func PrecisionRecall(prediction, groundTruth []int) (float64, float64)
- type BenchData
- type BenchDataConfig
- type NNMock
- type Prediction
- type SearchConfig
Constants ¶
View Source
const (
Tol = 1e-6
)
Variables ¶
This section is empty.
Functions ¶
func DistanceBasedPrecisionRecall ¶
func DistanceBasedPrecisionRecall(predIdxs, gtIdxs []int, prediction []lsh.Neighbor, groundTruth []float64, epsilon float64) (float64, float64)
DistanceBasedPrecisionRecall https://arxiv.org/pdf/1807.05614.pdf
func GetFloat64Range ¶
func GetVectorsFromHDF5 ¶
GetVectorsFromHDF5 returns slice of feature vectors, from the hdf5 table Objects inside the hdf5: train test distances neighbors
func PrecisionRecall ¶
Recall returns ratio of relevant predictions over the all true relevant items
Types ¶
type BenchData ¶
type BenchData struct { TrainVecs [][]float64 TrainNorms map[int]float64 TrainIds []string Test [][]float64 TrainIndices map[string]int Neighbors [][]int Distances [][]float64 Mean []float64 Std []float64 }
func PrepHdf5BenchDataset ¶
func PrepHdf5BenchDataset(config *BenchDataConfig) (*BenchData, error)
type BenchDataConfig ¶
type NNMock ¶
type NNMock struct { MaxCandidates int // contains filtered or unexported fields }
type Prediction ¶
Click to show internal directories.
Click to hide internal directories.