klsh: Function that reduces a bag of words into a signature matrix...

Description Usage Arguments Value Examples

View source: R/klsh.R

Description

Function that reduces a bag of words into a signature matrix using multiple random projections

Usage

1
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

1
2
3
data(RLdata500)
data.500 <- RLdata500[-c(2,4)]
klsh.blocks <- klsh(data.500, p=20, num.blocks=5, k=2)

klsh documentation built on Jan. 13, 2021, 8:05 p.m.