ClassifierFunction

ClassifierFunction[]

represents a function generated by Classify that classifies data into classes.

Details and Options

Examples

open allclose all

Basic Examples  (2)

Create a ClassifierFunction with Classify and a list of labeled examples:

In[1]:=
Click for copyable input
Out[1]=

Classify an unlabeled example with the ClassifierFunction:

In[2]:=
Click for copyable input
Out[2]=

Classify multiple examples:

In[3]:=
Click for copyable input
Out[3]=

Return the probabilities of the classes given the feature of an example:

In[4]:=
Click for copyable input
Out[4]=

Return the sorted probabilities of the most likely classes:

In[5]:=
Click for copyable input
Out[5]=

Return the probability of the most probable class:

In[6]:=
Click for copyable input
Out[6]=

Return the probability of a given class:

In[7]:=
Click for copyable input
Out[7]=

Plot the probability of class "B" as a function of the feature:

In[8]:=
Click for copyable input
Out[8]=

Generate a ClassifierFunction using multiple features:

In[1]:=
Click for copyable input
Out[1]=

Use the function on a new example:

In[2]:=
Click for copyable input
Out[2]=

Classify an example that has missing features:

In[3]:=
Click for copyable input
Out[3]=

Get the probabilities for the most probable classes:

In[4]:=
Click for copyable input
Out[4]=

Scope  (4)

Options  (4)

See Also

Classify  ClassifierMeasurements  ClassifierInformation  PredictorFunction  NearestFunction  DimensionReducerFunction

Introduced in 2014
(10.0)
| Updated in 2018
(11.3)