using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using HeuristicLab.Core; namespace GradientBoostedTrees { public delegate double LineSearchFunc(int[] idx, int startIdx, int endIdx); public interface ILossFunction { double GetLoss(IEnumerable target, IEnumerable pred, IEnumerable weight); IEnumerable GetLossGradient(IEnumerable target, IEnumerable pred, IEnumerable weight); LineSearchFunc GetLineSearchFunc(IEnumerable target, IEnumerable pred, IEnumerable weight); } }