1 write to Gradient
Microsoft.ML.FastTree (1)
Training\Applications\ObjectiveFunction.cs (1)
51Gradient = new double[Dataset.NumDocs];
9 references to Gradient
Microsoft.ML.FastTree (9)
FastTreeClassification.cs (1)
382fixed (double* pLambdas = Gradient)
FastTreeRanking.cs (2)
749Array.Clear(Gradient, begin, numDocuments); 784fixed (double* pLambdas = Gradient)
FastTreeRegression.cs (1)
466Gradient[i] = _labels[i] - Scores[i];
FastTreeTweedie.cs (2)
467Gradient[i] = Math.Exp(Scores[i]) - _labels[i]; 476Gradient[i] = Math.Exp(_index2 * Scores[i]) - _labels[i] * Math.Exp(_index1 * Scores[i]);
RandomForestClassification.cs (1)
399Gradient[i] = _labels[i] ? 1 : -1;
RandomForestRegression.cs (1)
535Gradient[i] = _labels[i];
Training\Applications\ObjectiveFunction.cs (1)
81return Gradient;