pulsatrix 1.1.0
Loading...
Searching...
No Matches
pulsatrix::NeighborOptions Struct Reference

Settings for the neighbor searches. More...

#include <nearest_neighbors.hpp>

Public Attributes

int64_t k = 10
 How many neighbors to find for each query.
 
NeighborMetric metric = NeighborMetric::Cosine
 
bool center = false
 Subtract the points' mean from every vector first. Activations often share a large common component, which makes every pair's cosine similarity high; centering removes it. It doesn't change Euclidean distances.
 

Detailed Description

Settings for the neighbor searches.

Member Data Documentation

◆ center

bool pulsatrix::NeighborOptions::center = false

Subtract the points' mean from every vector first. Activations often share a large common component, which makes every pair's cosine similarity high; centering removes it. It doesn't change Euclidean distances.

◆ k

int64_t pulsatrix::NeighborOptions::k = 10

How many neighbors to find for each query.

◆ metric

NeighborMetric pulsatrix::NeighborOptions::metric = NeighborMetric::Cosine

The documentation for this struct was generated from the following file: