pub struct LightPQTrainingParameters { /* private fields */ }Implementations§
Trait Implementations§
Source§impl TrainQuantizer for LightPQTrainingParameters
impl TrainQuantizer for LightPQTrainingParameters
Source§fn train<R, C>(
&self,
data: MatrixView<'_, f32>,
schema: ChunkOffsetsView<'_>,
parallelism: Parallelism,
rng_builder: &R,
cancelation: &C,
) -> Result<Self::Quantizer, Self::Error>
fn train<R, C>( &self, data: MatrixView<'_, f32>, schema: ChunkOffsetsView<'_>, parallelism: Parallelism, rng_builder: &R, cancelation: &C, ) -> Result<Self::Quantizer, Self::Error>
Perform product quantization training on the provided training set and return a
SimplePivots containing the result of kmeans clustering on each partition.
§Panics
Panics if data.nrows() != schema.dim().
§Errors
An error type is returned under the following circumstances:
- A cancellation request is received. This case can be queried by calling
was_canceledon the returnedPQTrainingError. NaNor infinities are observed during the training process.
type Quantizer = SimplePivots
type Error = PQTrainingError
Auto Trait Implementations§
impl Freeze for LightPQTrainingParameters
impl RefUnwindSafe for LightPQTrainingParameters
impl Send for LightPQTrainingParameters
impl Sync for LightPQTrainingParameters
impl Unpin for LightPQTrainingParameters
impl UnwindSafe for LightPQTrainingParameters
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more