Description Usage Arguments Value Raises See Also
View source: R/feature_columns.R
Returns a dense tensor as input layer based on given feature_columns
.
At the first layer of the model, this column oriented data should be converted
to a single tensor.
1 2 3 4 5 6 | input_layer(
features,
feature_columns,
weight_collections = NULL,
trainable = TRUE
)
|
features |
A mapping from key to tensors. Feature columns look up via
these keys. For example |
feature_columns |
An iterable containing the FeatureColumns to use as
inputs to your model. All items should be instances of classes derived from
a dense column such as |
weight_collections |
A list of collection names to which the Variable
will be added. Note that, variables will also be added to collections
|
trainable |
If |
A tensor which represents input layer of a model. Its shape is
(batch_size, first_layer_dimension) and its dtype is float32
.
first_layer_dimension is determined based on given feature_columns
.
ValueError: if an item in feature_columns
is not a dense column.
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_embedding()
,
column_numeric()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.