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
densityif 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
dataand outputs into theprojectedarray. - project_
with_ projection - Applies random projection to the input
datawith the givenseed,reductionmethod, andprojectionkind and returns the resulting projected array. - reconstruct
- Applies the (approximate) inverse of random projection to the
projectedarray to reconstruct the input data with dimensionalitydand returns the resulting reconstructed array. - reconstruct_
into - Applies the (approximate) inverse of random projection to the
projectedarray to reconstruct the input data outputs into thereconstructedarray. - reconstruct_
into_ with_ projection - Applies the (approximate) inverse of random projection to the
projectedarray to reconstruct the input data with the givenseedandprojectionkind and outputs into thereconstructedarray. - reconstruct_
with_ projection - Applies the (approximate) inverse of random projection to the
projectedarray.