DeepLearning
NumericColumn
numeric feature column
Calling Sequence
Parameters
Options
Description
Details
Examples
Compatibility
NumericColumn(key,opts)
key
-
string; label for feature column
opts
zero or more options as specified below
datatype=one of integer[4],integer[8],float[4],float[8]
The value of option datatype specifies the type of data this column will hold.
shape=list of integers
The shape of data the feature represents. A single scalar numerical quantity corresponds to [1]. If the data to represented is a 3x3 matrix, the shape is [3,3].
The NumericColumn(c) command creates a feature column to represent a real numerical feature (integer or floating-point).
This function is part of the DeepLearning package, so it can be used in the short form NumericColumn(..) only after executing the command with(DeepLearning). However, it can always be accessed through the long form of the command by using DeepLearning[NumericColumn](..).
The implementation of NumericColumn uses the tf.feature_column.numeric_column function from the TensorFlow Python API Documentation. Consult the TensorFlow API documentation for tf.feature_column.numeric_column for more information.
Define a feature which takes a single numeric value, in this case a physical measurement from a flower.
with⁡DeepLearning:
fc≔NumericColumn⁡SepalLength,shape=1,datatype=float8
fc≔Feature ColumnNumericColumn(key='SepalLength', shape=(1,), default_value=None, dtype=tf.float64, normalizer_fn=None)
The DeepLearning[NumericColumn] command was introduced in Maple 2018.
For more information on Maple 2018 changes, see Updates in Maple 2018.
See Also
DNNClassifier
Feature Column
Download Help Document