"NotablePerson" (Built-in Classifier)
Classes
Examples
open all close allBasic Examples (2)
Use the "NotablePerson" built-in classifier to determine what notable person is depicted in the given image:
Classify["NotablePerson", [image]]Obtain the probabilities for the most likely classes:
Classify["NotablePerson", [image], "TopProbabilities"]Obtain a ClassifierFunction for this classifier:
c = Classify["NotablePerson"]Use the classifier function to classify:
c[[image]]Classify many examples at once:
c[{[image], [image]}]Scope (1)
Load the ClassifierFunction corresponding to the built-in classifier:
c = Classify["NotablePerson"]Obtain a subset of possible classes:
Short[Information[c, "Classes"], 0.5]Options (3)
ClassPriors (1)
Use a custom ClassPriors to restrict the possible outputs:
Classify["NotablePerson", [image], ClassPriors -> <|Entity["Person", "GeorgeOrwell::9p9f8"] -> 0.5|>]IndeterminateThreshold (1)
Use a custom IndeterminateThreshold:
Classify["NotablePerson", [image], IndeterminateThreshold -> 0.4]UtilityFunction (1)
Obtain the utility function of the classifier:
utility = Information[Classify["NotablePerson"], "UtilityFunction"];utility[Entity["Person", "AmeliaEarhart::8t8s4"], Entity["Person", "MichaelCera::zb94m"]] = -3;Classify an image using this new utility:
Classify["NotablePerson", [image], UtilityFunction -> utility]Compare to the result with the default utility:
Classify["NotablePerson", [image]]Neat Examples (1)
Obtain different notable persons with their corresponding probabilities:
probabilities = Classify["NotablePerson", [image], "Probabilities"];Visualize a subset of results with the highest probabilities using WordCloud:
WordCloud[ReverseSort[probabilities][[1 ;; 10]]]See Also
Classify NetModel FindFaces FaceRecognize
Classifiers: FacialAge FacialGender FacialExpression
Related Guides
History
Introduced in 2018 (11.3)