Expand description
Random Projection codec implementation for the numcodecs
API.
Structs§
- Closed
Open Unit - Floating point number in
$[0.0, 1.0)$
- Open
Closed Unit - Floating point number in
$(0.0, 1.0]$
- Random
Projection Codec - Codec that uses random projections to reduce the dimensionality of high- dimensional data to compress it.
Enums§
- Random
Projection Codec Error - Errors that may occur when applying the
RandomProjectionCodec
. - Random
Projection Kind - Projection kind that is used to generate the random projection matrix
- Random
Projection Reduction - Method with which the reduced dimensionality
$K$
is selected
Traits§
- Float
Ext - Floating point types.
Functions§
- density_
or_ ping_ li_ minimum - Extract the provided
density
if it isSome(_)
, or compute the minimum required density$\frac{1}{\sqrt{d}}$
as recommended by Li et al . - johnson_
lindenstrauss_ min_ k - Find a ‘safe’ number of components
$K$
to randomly project to. - project_
into - Applies random projection to the input
data
and outputs into theprojected
array. - project_
with_ projection - Applies random projection to the input
data
with the givenseed
,reduction
method, andprojection
kind and returns the resulting projected array. - reconstruct
- Applies the (approximate) inverse of random projection to the
projected
array to reconstruct the input data with dimensionalityd
and returns the resulting reconstructed array. - reconstruct_
into - Applies the (approximate) inverse of random projection to the
projected
array to reconstruct the input data outputs into thereconstructed
array. - reconstruct_
into_ with_ projection - 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. - reconstruct_
with_ projection - Applies the (approximate) inverse of random projection to the
projected
array.