public TrivialLossFactory(IRegressionLoss loss) => _loss = loss;
protected RegressionLossEvaluatorBase(ArgumentsBase args, IHostEnvironment env, string registrationName) : base(env, registrationName) { Host.CheckUserArg(args.LossFunction != null, nameof(args.LossFunction), "Loss function must be specified."); LossFunction = args.LossFunction.CreateComponent(env); }
public Aggregator(IHostEnvironment env, IRegressionLoss lossFunction, bool weighted, string stratName) : base(env, lossFunction, weighted, stratName) { _counters = new Counters(); _weightedCounters = Weighted ? new Counters() : null; }
public TrivialFactory(IRegressionLoss loss) { _loss = loss; }