LossTuple

public class LossTuple

A helper class for loss methods to return labels, target, and sampleWeights

Public Constructors

LossTuple(Operand<T> labels, Operand<T> target)
Creates a LossTuple of Operands for labels, target, and sampleWeights
LossTuple(Operand<T> labels, Operand<T> target, Operand<T> sampleWeights)
Creates a LossTuple of Operands for labels, target, and sampleWeights

Public Methods

Operand<T>
Operand<T>
Operand<T>

Inherited Methods

Public Constructors

public LossTuple (Operand<T> labels, Operand<T> target)

Creates a LossTuple of Operands for labels, target, and sampleWeights

Parameters
labels the labels
target the losses or target

public LossTuple (Operand<T> labels, Operand<T> target, Operand<T> sampleWeights)

Creates a LossTuple of Operands for labels, target, and sampleWeights

Parameters
labels the labels
target the losses or target
sampleWeights the sample weights

Public Methods

public Operand<T> getLabels ()

Returns
  • the labels

public Operand<T> getSampleWeights ()

Returns
  • the sampleWeights

public Operand<T> getTarget ()

Returns
  • the target