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
|
Rev | Line | |
---|
[12332] | 1 | using System;
|
---|
| 2 | using System.Collections.Generic;
|
---|
| 3 | using System.Linq;
|
---|
| 4 | using System.Text;
|
---|
| 5 | using System.Threading.Tasks;
|
---|
| 6 | using HeuristicLab.Core;
|
---|
| 7 |
|
---|
| 8 | namespace 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.