Exemple #1
0
        public void LossExponential()
        {
            ExpLoss.Options options = new ExpLoss.Options();
            ExpLoss         loss    = new ExpLoss(options);

            TestHelper(loss, 1, 3, Math.Exp(-3), Math.Exp(-3));
            TestHelper(loss, 0, 3, Math.Exp(3), -Math.Exp(3));
            TestHelper(loss, 0, -3, Math.Exp(-3), -Math.Exp(-3));
        }
Exemple #2
0
        public void LossExponential()
        {
            ExpLoss.Arguments args = new ExpLoss.Arguments();
            ExpLoss           loss = new ExpLoss(args);

            TestHelper(loss, 1, 3, Math.Exp(-3), Math.Exp(-3));
            TestHelper(loss, 0, 3, Math.Exp(3), -Math.Exp(3));
            TestHelper(loss, 0, -3, Math.Exp(-3), -Math.Exp(-3));
        }