Extract mapping between hash and original values
hash.mapping(matrix)
Matrix returned by hashed.model.matrix function
hashed.model.matrix
a named numeric vector
numeric
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.
# NOT RUN { 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 DataCamp Workspace