Description Usage Arguments Value Raises See Also
View source: R/feature_columns.R
Use this when your inputs are sparse, but you want to convert them to a dense
representation (e.g., to feed to a DNN). Inputs must be a
categorical column created by any of the column_categorical_*()
functions.
1 2 3 4 5 6 7 8 9 10 |
categorical_column |
A categorical column created by a
|
dimension |
A positive integer, specifying dimension of the embedding. |
combiner |
A string specifying how to reduce if there are multiple
entries in a single row. Currently |
initializer |
A variable initializer function to be used in embedding
variable initialization. If not specified, defaults to
|
ckpt_to_load_from |
String representing checkpoint name/pattern from
which to restore column weights. Required if |
tensor_name_in_ckpt |
Name of the |
max_norm |
If not |
trainable |
Whether or not the embedding is trainable. Default is TRUE. |
A dense column that converts from sparse input.
ValueError: if dimension
not > 0.
ValueError: if exactly one of ckpt_to_load_from
and tensor_name_in_ckpt
is specified.
ValueError: if initializer
is specified and is not callable.
Other feature column constructors:
column_bucketized()
,
column_categorical_weighted()
,
column_categorical_with_hash_bucket()
,
column_categorical_with_identity()
,
column_categorical_with_vocabulary_file()
,
column_categorical_with_vocabulary_list()
,
column_crossed()
,
column_numeric()
,
input_layer()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.