Skip to main content

binary_sort_columns

Function binary_sort_columns 

Source
pub fn binary_sort_columns(
    proj_kn: &DMatrix<f32>,
    kk: usize,
) -> Result<Vec<usize>>
Expand description

Binarize the projection matrix and assign columns to some groups

ยงArguments

  • proj_kn - random projection matrix (feature x column/cell)
  • kk - number of features, one bit of the code each; fewer than the bits of a usize