"NameGender" (Built-in Classifier)
-
See Also
- Classify
- Entity
- PersonData
-
- Entity Types
- GivenName
- Person
-
- Classifiers
- FacialGender
-
- Predictors
- NameAge
- Related Guides
-
-
See Also
- Classify
- Entity
- PersonData
-
- Entity Types
- GivenName
- Person
-
- Classifiers
- FacialGender
-
- Predictors
- NameAge
- Related Guides
-
See Also
"NameGender" (Built-in Classifier)
Determine which gender a first name is.
Classes
Examples
open all close allBasic Examples (2)
Find the possible gender of a person from their first name:
Classify["NameGender", "Stacy"]Classify["NameGender", {"Tom", "Stacy", "John", "Natalie"}]Unrecognized names will return Indeterminate:
Classify["NameGender", "Joya"]Obtain the probabilities for the possible classes:
Classify["NameGender", "Joya", "Probabilities"]Obtain a ClassifierFunction for this classifier:
c = Classify["NameGender"]Apply the classifier to a list of names:
c[{"Tom", "Stacy", "John", "Natalie", "Joya"}]Scope (1)
Load the ClassifierFunction corresponding to the built-in classifier:
c = Classify["NameGender"]Information[c, "Classes"]Options (2)
ClassPriors (1)
Use a custom ClassPriors to restrict the possible outputs:
Classify["NameGender", "Joya", ClassPriors -> <|"Male" -> 0.4, "Female" -> 0.6|>]IndeterminateThreshold (1)
Use a custom IndeterminateThreshold:
Classify["NameGender", "Joya", IndeterminateThreshold -> 0.7]Related Guides
History
Introduced in 2018 (11.3)