Class LossScoreTransformer<I>

    • Constructor Detail

      • LossScoreTransformer

        public LossScoreTransformer​(ADecomposableDoubleMeasure<I> measure)
        Constructor for setting the measure to be transformed from loss to score or vice versa.
        Parameters:
        measure - The measure to be transformed into the opposite.
    • Method Detail

      • calculateMeasure

        public java.lang.Double calculateMeasure​(I actual,
                                                 I expected)
        Description copied from interface: IMeasure
        Computes the measure for a measured input actual and the expected outcome expected.
        Parameters:
        actual - The actually available values.
        expected - The expected values to compare the actual values with.
        Returns:
        The return value of the measure.