Free cookie consent management tool by TermsFeed Policy Generator

source: branches/GBT/HeuristicLab.Algorithms.DataAnalysis/3.4/GradientBoostedTrees/LossFunctions/ILossFunction.cs @ 12332

Last change on this file since 12332 was 12332, checked in by gkronber, 10 years ago

#2261: initial import of gradient boosted trees for regression

File size: 659 bytes
RevLine 
[12332]1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using HeuristicLab.Core;
7
8namespace GradientBoostedTrees {
9  public delegate double LineSearchFunc(int[] idx, int startIdx, int endIdx);
10
11  public interface ILossFunction {
12    double GetLoss(IEnumerable<double> target, IEnumerable<double> pred, IEnumerable<double> weight);
13    IEnumerable<double> GetLossGradient(IEnumerable<double> target, IEnumerable<double> pred, IEnumerable<double> weight);
14    LineSearchFunc GetLineSearchFunc(IEnumerable<double> target, IEnumerable<double> pred, IEnumerable<double> weight);
15  }
16}
Note: See TracBrowser for help on using the repository browser.