hash.mapping: Extract mapping between hash and original values

View source: R/hash.mapping.R

hash.mappingR Documentation

Extract mapping between hash and original values

Description

Extract mapping between hash and original values

Usage

hash.mapping(matrix)

Arguments

matrix

Matrix returned by hashed.model.matrix function

Details

Generate a mapping between original values and hashes.

Option create.mapping = T needs to be used in function hashed.model.matrix.

Original values are stores in the names of the vector.

Value

a named numeric vector

Author(s)

Michael Benesty

Examples

data(ipinyou)

m <- hashed.model.matrix(~., ipinyou.train, 2^10, create.mapping = TRUE)
mapping <- hash.mapping(m)

wush978/FeatureHashing documentation built on Oct. 23, 2022, 10:16 a.m.