Expand description
Random Projection codec implementation for the numcodecs
API.
Structs§
- Floating point number in [0.0, 1.0)
- Floating point number in (0.0, 1.0]
- Codec that uses random projections to reduce the dimensionality of high- dimensional data to compress it.
Enums§
- Errors that may occur when applying the
RandomProjectionCodec
. - Projection kind that is used to generate the random projection matrix
- Method with which the reduced dimensionality
K
is selected
Traits§
- Floating point types.
Functions§
- Extract the provided
density
if it isSome(_)
, or compute the minimum required density1/sqrt(d)
as recommended by Li et al . - Find a ‘safe’ number of components
K
to randomly project to. - Applies random projection to the input
data
and outputs into theprojected
array. - Applies random projection to the input
data
with the givenseed
,reduction
method, andprojection
kind and returns the resulting projected array. - Applies the (approximate) inverse of random projection to the
projected
array to reconstruct the input data with dimensionalityd
and returns the resulting reconstructed array. - Applies the (approximate) inverse of random projection to the
projected
array to reconstruct the input data outputs into thereconstructed
array. - Applies the (approximate) inverse of random projection to the
projected
array to reconstruct the input data with the givenseed
andprojection
kind and outputs into thereconstructed
array. - Applies the (approximate) inverse of random projection to the
projected
array to reconstruct the input data with the givenseed
andprojection
kind and returns the resulting reconstructed array.