stats

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 27, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FalseNegativeError

type FalseNegativeError struct {
	Threshold   float64 `json:"threshold"`
	Probability float64 `json:"probability"`
}

FalseNegativeError represents the probability that a document will be missed during a search when it should be found. This document should match with the query document, but due to the number of hyperplanes, number of tables and the desired threshold will not with this probability. Closer to zero means there's less chance for missing document results and closer to 1 means a higher likelihood of missing the documents in the search.

type Statistics

type Statistics struct {
	NumDocs             int                  `json:"num_docs"`
	FalseNegativeErrors []FalseNegativeError `json:"false_negative_errors"`
}

Statistics returns the total number of indexed documents along with a slice of the false negative errors for a variety of query thresholds. This can help determine if the configured number of hyperplanes and tables can give the desired results for a given threshold.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL