kodama-cpp
Standalone float32 KODAMA kernels for CPU, CUDA, and Apple Metal
Loading...
Searching...
No Matches
kodama::KNNOptions Struct Reference

#include <kodama.hpp>

Collaboration diagram for kodama::KNNOptions:
[legend]

Public Attributes

FoldOptions cv
 
int k = 10
 
DistanceMetric metric = DistanceMetric::Cosine
 
Backend backend = Backend::CPU
 
KNNIndexType index_type = KNNIndexType::NativeHNSW
 
int ivf_nlist = 0
 
int ivf_nprobe = 0
 
int hnsw_m = 0
 
int hnsw_ef_construction = 0
 
int hnsw_ef_search = 0
 
int hnsw_tune_k = 50
 
double hnsw_target_recall = 0.99
 
int gpu_device = 0
 
int n_threads = 1
 

Detailed Description

Definition at line 151 of file kodama.hpp.

Member Data Documentation

◆ backend

Backend kodama::KNNOptions::backend = Backend::CPU

Definition at line 155 of file kodama.hpp.

◆ cv

FoldOptions kodama::KNNOptions::cv

Definition at line 152 of file kodama.hpp.

◆ gpu_device

int kodama::KNNOptions::gpu_device = 0

Definition at line 164 of file kodama.hpp.

◆ hnsw_ef_construction

int kodama::KNNOptions::hnsw_ef_construction = 0

Definition at line 160 of file kodama.hpp.

◆ hnsw_ef_search

int kodama::KNNOptions::hnsw_ef_search = 0

Definition at line 161 of file kodama.hpp.

◆ hnsw_m

int kodama::KNNOptions::hnsw_m = 0

Definition at line 159 of file kodama.hpp.

◆ hnsw_target_recall

double kodama::KNNOptions::hnsw_target_recall = 0.99

Definition at line 163 of file kodama.hpp.

◆ hnsw_tune_k

int kodama::KNNOptions::hnsw_tune_k = 50

Definition at line 162 of file kodama.hpp.

◆ index_type

KNNIndexType kodama::KNNOptions::index_type = KNNIndexType::NativeHNSW

Definition at line 156 of file kodama.hpp.

◆ ivf_nlist

int kodama::KNNOptions::ivf_nlist = 0

Definition at line 157 of file kodama.hpp.

◆ ivf_nprobe

int kodama::KNNOptions::ivf_nprobe = 0

Definition at line 158 of file kodama.hpp.

◆ k

int kodama::KNNOptions::k = 10

Definition at line 153 of file kodama.hpp.

◆ metric

DistanceMetric kodama::KNNOptions::metric = DistanceMetric::Cosine

Definition at line 154 of file kodama.hpp.

◆ n_threads

int kodama::KNNOptions::n_threads = 1

Definition at line 165 of file kodama.hpp.


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