4 writes to LeafValues
Microsoft.ML.FastTree (4)
TreeEnsemble\InternalRegressionTree.cs (4)
94
LeafValues
= new double[maxLeaves];
125
LeafValues
= buffer.ToDoubleArray(ref position);
208
LeafValues
= leafValues;
307
LeafValues
= reader.ReadDoubleArray();
33 references to LeafValues
Microsoft.ML.FastTree (33)
FastTree.cs (1)
3102
classWeights.Add(tree.
LeafValues
[leafIndex]);
RegressionTree.cs (1)
168
_leafValues = ImmutableArray.Create(_tree.
LeafValues
, 0, _tree.NumLeaves);
TreeEnsemble\InternalQuantileRegressionTree.cs (1)
127
leafSamples[i][j] =
LeafValues
[i];
TreeEnsemble\InternalRegressionTree.cs (28)
406
writer.WriteDoubleArray(
LeafValues
);
503
checker(
LeafValues
!= null &&
LeafValues
.Length == numMaxLeaves, "bad leaf value length");
523
LeafValues
.SizeInBytes();
553
LeafValues
.ToByteArray(buffer, ref position);
558
if (
LeafValues
.Length != tree.
LeafValues
.Length)
563
for (int node = 0; node <
LeafValues
.Length; ++node)
565
if (node <
LeafValues
.Length - 1 &&
589
LeafValues
[node] += tree.
LeafValues
[node];
613
public int MaxNumLeaves =>
LeafValues
.Length;
664
return
LeafValues
[leaf];
669
LeafValues
[leaf] = newValue;
675
for (int node = 0; node <
LeafValues
.Length; ++node)
676
LeafValues
[node] += value;
684
for (int i = 0; i <
LeafValues
.Length; ++i)
686
LeafValues
[i] *= scalar;
692
LeafValues
[leafIndex] += delta;
731
return
LeafValues
[leaf];
736
LeafValues
[leaf] = value;
1058
_previousLeafValue[indexOfNewNonLeaf] =
LeafValues
[leaf];
1059
LeafValues
[leaf] = lteValue;
1061
LeafValues
[NumLeaves] = gtValue;
1226
sbOutput.Append(
LeafValues
[n].ToString() + "\t");
1232
sbOutput.Append(
LeafValues
[numNonLeaves].ToString());
1331
output.AppendFormat("\nNodeType:{0}=Value\nNodeValue:{0}={1}\n", numNonLeaves + n,
LeafValues
[n]);
1349
return
LeafValues
[~node];
TreeEnsemble\TreeEnsembleCombiner.cs (2)
75
tNew.SetOutput(i, tNew.
LeafValues
[i] * paramA);
97
t.SetOutput(i, t.
LeafValues
[i] * scale);