FeatureNames

FeatureNames

is an option for machine learning functions such as Classify or Predict that specifies names to use for elements of input data given.

Details

  • Possible settings for FeatureNames include:
  • Automaticassign names automatically
    {"n1","n2",}name the i^(th) 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:

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.

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

BibTeX

@misc{reference.wolfram_2024_featurenames, author="Wolfram Research", title="{FeatureNames}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FeatureNames.html}", note=[Accessed: 05-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_featurenames, organization={Wolfram Research}, title={FeatureNames}, year={2015}, url={https://reference.wolfram.com/language/ref/FeatureNames.html}, note=[Accessed: 05-October-2024 ]}