[][src]Struct faiss_sys::FaissClusteringParameters

#[repr(C)]pub struct FaissClusteringParameters {
    pub niter: c_int,
    pub nredo: c_int,
    pub verbose: c_int,
    pub spherical: c_int,
    pub update_index: c_int,
    pub frozen_centroids: c_int,
    pub min_points_per_centroid: c_int,
    pub max_points_per_centroid: c_int,
    pub seed: c_int,
}

Class for the clustering parameters. Can be passed to the constructor of the Clustering object.

Fields

niter: c_int

< clustering iterations

nredo: c_int

< redo clustering this many times and keep best

verbose: c_int

< (bool)

spherical: c_int

< (bool) do we want normalized centroids?

update_index: c_int

< (bool) update index after each iteration?

frozen_centroids: c_int

< (bool) use the centroids provided as input and do not change them during iterations

min_points_per_centroid: c_int

< otherwise you get a warning

max_points_per_centroid: c_int

< to limit size of dataset

seed: c_int

< seed for the random number generator

Trait Implementations

impl Clone for FaissClusteringParameters[src]

impl Copy for FaissClusteringParameters[src]

impl Debug for FaissClusteringParameters[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.