FeatureNames
Details
- Possible settings for FeatureNames include:
-
Automatic assign names automatically {"n1","n2",…} name the i feature "ni" - Feature names must be strings.
- When FeatureNamesAutomatic, features are named "f1", "f2", etc.
- In the case of a dataset with named features, FeatureNames{"n1","n2",…} can be used to define the ordering of the features.
Examples
Basic Examples (3)
Train a classifier and give a name to each feature:
Use the association format to predict a new example:
The list format can still be used:
Train a predictor on a training set with named features, and use FeatureNames to set their order:
Features are ordered as specified:
Classify a new example from a list:
Train a classifier without specifying feature names:
Use Information and FeatureNames to obtain the names that have been automatically given to features:
Use these names to classify a new example described by an association:
Text
Wolfram Research (2015), FeatureNames, Wolfram Language function, https://reference.wolfram.com/language/ref/FeatureNames.html.
CMS
Wolfram Language. 2015. "FeatureNames." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FeatureNames.html.
APA
Wolfram Language. (2015). FeatureNames. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FeatureNames.html