klsh {klsh} | R Documentation |
Function that reduces a bag of words into a signature matrix using multiple random projections
Description
Function that reduces a bag of words into a signature matrix using multiple random projections
Usage
klsh(r.set, p, num.blocks, k, fieldwise = FALSE, quiet = TRUE)
Arguments
r.set |
Set of records |
p |
Number of random projections p |
num.blocks |
The total number of desired blocks |
k |
The total number of tokens |
fieldwise |
Flag with default FALSE |
quiet |
Flag to turn on printed progress, default to TRUE |
Value
The blocks from performing KLSH
Examples
data(RLdata500)
data.500 <- RLdata500[-c(2,4)]
klsh.blocks <- klsh(data.500, p=20, num.blocks=5, k=2)
[Package klsh version 0.1.0 Index]