mlpy.stats.canonize_labels

mlpy.stats.canonize_labels(labels, support=None)[source]

Transform labels to 1:k.

The size of canonized is the same as ladles but every label is transformed to its corresponding 1:k. If labels does not span the support, specify the support explicitly as the 2nd argument.

Parameters:

labels : array_like

support : optional

Returns:

Transformed labels.

Examples

>>> canonize_labels()

Note

Adapted from Matlab:

Copyright (2010) Kevin Murphy and Matt Dunham
License: MIT

Warning

This is only a stub function. Implementation is still missing