Quantcast

Documentation Center

  • Trial Software
  • Product Updates

mdsProx

Class: TreeBagger

Multidimensional scaling of proximity matrix

Syntax

[S,E] = mdsProx(B)
[S,E] = mdsProx(B,'param1',val1,'param2',val2,...)

Description

[S,E] = mdsProx(B) returns scaled coordinates, S, and eigenvalues, E, for the proximity matrix in the ensemble B. An earlier call to fillProximities(B) must create the proximity matrix.

[S,E] = mdsProx(B,'param1',val1,'param2',val2,...) specifies optional parameter name/value pairs:

'keep'Array of indices of observations in the training data to use for multidimensional scaling. By default, this argument is set to 'all'. If you provide numeric or logical indices, the method uses only the subset of the training data specified by these indices to compute the scaled coordinates and eigenvalues.
'colors'If you supply this argument, mdsProx makes overlaid scatter plots of two scaled coordinates using specified colors for different classes. You must supply the colors as a string with one character for each color. If there are more classes in the data than characters in the supplied string, mdsProx only plots the first C classes, where C is the length of the string. For regression or if you do not provide the vector of true class labels, the method uses the first color for all observations in X.
'mdscoords'Indices of the two scaled coordinates to plot. By default, mdsProx makes a scatter plot of the first and second scaled coordinates which correspond to the two largest eigenvalues. You can specify any other two or three indices not exceeding the dimensionality of the scaled data. This argument has no effect unless you also supply the 'colors' argument.

See Also

| |

Was this topic helpful?