"NameAge" (Built-in Predictor)
Predict the age of a person in years, given their first name.
- This classifier is based on the US census data. It will give poor performances for names that are rare in the US.
Examplesopen allclose all
Basic Examples (2)
Use the built-in predictor "NameAge" to predict the age of a person from their first name:
Obtain a PredictorFunction for this predictor:
Use the predictor function to predict the age of a person from their first name:
Predict many examples at once:
Visualize the distribution of the age for a given name:
The most likely value of this distribution is the following:
Load the PredictorFunction corresponding to the built-in predictor:
Obtain information about the predictor from Information:
Obtain the utility function of the predictor that corresponds to a DiracDelta function:
This means by default, the value with the highest probability density is predicted:
Change the utility function to predict the mean value instead of the most likely value: