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)); }
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)); }