Contents

map(_:)

Creates a new classification distribution by applying a transformation to every element.

Declaration

func map<T>(_ transform: (Classification<Label>) throws -> Classification<T>) rethrows -> ClassificationDistribution<T> where T : Hashable

Parameters

  • transform:

    A transformation closure.

See Also

Labeling and mapping