pub enum RandomProjectionCodecError {
UnsupportedDtype(AnyArrayDType),
NonMatrixData {
source: ShapeError,
},
NonFiniteData,
NumberOfSamplesMismatch {
input: usize,
output: usize,
},
ProjectedArrayZeroComponents,
CorruptedNumberOfComponents,
NumberOfFeaturesMismatch {
metadata: usize,
output: usize,
},
MismatchedDecodeIntoArray {
source: AnyArrayAssignError,
},
}
Expand description
Errors that may occur when applying the RandomProjectionCodec
.
Variants§
UnsupportedDtype(AnyArrayDType)
RandomProjectionCodec
does not support the dtype
NonMatrixData
RandomProjectionCodec
does not support the dtype
Fields
source: ShapeError
The source of the error
NonFiniteData
RandomProjectionCodec
does not support non-finite (infinite or NaN)
floating point data
NumberOfSamplesMismatch
RandomProjectionCodec
cannot encode or decode from an array with N
samples to an array with a different number of samples
Fields
ProjectedArrayZeroComponents
RandomProjectionCodec
cannot decode from an array with zero
dimensionality K
CorruptedNumberOfComponents
RandomProjectionCodec
cannot decode from an array with corrupted
dimensionality metadata
NumberOfFeaturesMismatch
RandomProjectionCodec
cannot decode into an array with D
features
that differs from the D
stored in the encoded metadata
Fields
MismatchedDecodeIntoArray
RandomProjectionCodec
cannot decode into the provided array
Fields
source: AnyArrayAssignError
The source of the error
Trait Implementations§
Source§impl Debug for RandomProjectionCodecError
impl Debug for RandomProjectionCodecError
Source§impl Display for RandomProjectionCodecError
impl Display for RandomProjectionCodecError
Source§impl Error for RandomProjectionCodecError
impl Error for RandomProjectionCodecError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AnyArrayAssignError> for RandomProjectionCodecError
impl From<AnyArrayAssignError> for RandomProjectionCodecError
Source§fn from(source: AnyArrayAssignError) -> Self
fn from(source: AnyArrayAssignError) -> Self
Source§impl From<ShapeError> for RandomProjectionCodecError
impl From<ShapeError> for RandomProjectionCodecError
Source§fn from(source: ShapeError) -> Self
fn from(source: ShapeError) -> Self
Auto Trait Implementations§
impl Freeze for RandomProjectionCodecError
impl RefUnwindSafe for RandomProjectionCodecError
impl Send for RandomProjectionCodecError
impl Sync for RandomProjectionCodecError
impl Unpin for RandomProjectionCodecError
impl UnwindSafe for RandomProjectionCodecError
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
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>
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>
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