Provides training algorithms for scalar quantizers to optimize range statistics. Use this when implementing vector quantization or compression for high-dimensional data search.
// Source: https://github.com/facebookresearch/faiss | License: MIT | Copyright Facebook, Inc. and its affiliates
// Provided via justclaw.it.com; keep this notice with the code.
/*
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
#pragma once
/*******************************************************************
* Quantizer range training for the scalar quantizer. This is independent of the
* searching code and needs not to be very optimized (scalar quantizer training
* is very efficient).
*/
#include <faiss/impl/ScalarQuantizer.h>
namespace faiss {
namespace scalar_quantizer {
using RangeStat = ScalarQuantizer::RangeStat;
void train_Uniform(
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key