bag_signatures {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
bag_signatures(sack_of_bags, p, weighting_table)
Arguments
sack_of_bags |
Sack of bag of words |
p |
Number of random projections p |
weighting_table |
Weighting table (inverse document frequency) |
Value
Computes a signature matrix using multiple random projections and the inverse document frequency weights
Examples
data(RLdata500)
data.500 <- RLdata500[-c(2,4)]
sack <- sacks_of_bags_of_words(data.500[1:3,c(-2)],k=2)
idf <- calc_idf(sack)
bag_signatures(sack, p=5, idf)
[Package klsh version 0.1.0 Index]