Пример #1
0
 public TrivialLossFactory(IRegressionLoss loss) => _loss = loss;
Пример #2
0
 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);
 }
Пример #3
0
 public Aggregator(IHostEnvironment env, IRegressionLoss lossFunction, bool weighted, string stratName)
     : base(env, lossFunction, weighted, stratName)
 {
     _counters         = new Counters();
     _weightedCounters = Weighted ? new Counters() : null;
 }
Пример #4
0
 public TrivialFactory(IRegressionLoss loss)
 {
     _loss = loss;
 }