FeatureNames
✖
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)Summary of the most common use cases
Train a classifier and give a name to each feature:

https://wolfram.com/xid/0d6fm1ix0j-48k90i

Use the association format to predict a new example:

https://wolfram.com/xid/0d6fm1ix0j-f3cwzr

The list format can still be used:

https://wolfram.com/xid/0d6fm1ix0j-6665m0

Train a predictor on a training set with named features, and use FeatureNames to set their order:

https://wolfram.com/xid/0d6fm1ix0j-ida89d

Features are ordered as specified:

https://wolfram.com/xid/0d6fm1ix0j-mo755h

Classify a new example from a list:

https://wolfram.com/xid/0d6fm1ix0j-3pb471

Train a classifier without specifying feature names:

https://wolfram.com/xid/0d6fm1ix0j-ood9u1

Use Information and FeatureNames to obtain the names that have been automatically given to features:

https://wolfram.com/xid/0d6fm1ix0j-uqpqjo

Use these names to classify a new example described by an association:

https://wolfram.com/xid/0d6fm1ix0j-glwpi3

Wolfram Research (2015), FeatureNames, Wolfram Language function, https://reference.wolfram.com/language/ref/FeatureNames.html.
Text
Wolfram Research (2015), FeatureNames, Wolfram Language function, https://reference.wolfram.com/language/ref/FeatureNames.html.
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.
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
Wolfram Language. (2015). FeatureNames. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FeatureNames.html
BibTeX
@misc{reference.wolfram_2025_featurenames, author="Wolfram Research", title="{FeatureNames}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FeatureNames.html}", note=[Accessed: 09-July-2025
]}
BibLaTeX
@online{reference.wolfram_2025_featurenames, organization={Wolfram Research}, title={FeatureNames}, year={2015}, url={https://reference.wolfram.com/language/ref/FeatureNames.html}, note=[Accessed: 09-July-2025
]}