powered by
Extract mapping between hash and original values
hash.mapping(matrix)
a named numeric vector
numeric
Matrix returned by hashed.model.matrix function
hashed.model.matrix
Michael Benesty
Generate a mapping between original values and hashes.
Option create.mapping = T needs to be used in function hashed.model.matrix.
create.mapping = T
Original values are stores in the names of the vector.
data(ipinyou) m <- hashed.model.matrix(~., ipinyou.train, 2^10, create.mapping = TRUE) mapping <- hash.mapping(m)
Run the code above in your browser using DataLab