Wolfram Language & System 11.0 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

FeatureDistance

FeatureDistance[example1,example2,extractor]
gives the distance between example1 and example2 in the feature space defined by extractor.

FeatureDistance[extractor]
represents an operator form of FeatureDistance that can be applied to a pair of examples.

Details and OptionsDetails and Options

ExamplesExamplesopen allclose all

Basic Examples  (1)Basic Examples  (1)

Construct a dataset of dog images:

In[1]:=
Click for copyable input

Train an extractor function from this dataset:

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

Compute the distance in the feature space between two images using FeatureDistance:

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

Generate an operator form of FeatureDistance:

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

This operator form can be used to compute distances:

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

Compute the distance matrix of the dataset using this feature distance:

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

Find the dog that maximizes its distance from the others in the feature space:

In[8]:=
Click for copyable input
Out[8]=
Introduced in 2016
(11.0)