3 writes to _instanceWeights
Microsoft.ML.FastTree (3)
TreeEnsemble\InternalQuantileRegressionTree.cs (3)
49
_instanceWeights
= ctx.Reader.ReadDoubleArray();
57
_instanceWeights
= buffer.ToDoubleArray(ref position);
102
_instanceWeights
= weights;
11 references to _instanceWeights
Microsoft.ML.FastTree (11)
TreeEnsemble\InternalQuantileRegressionTree.cs (11)
23
public bool IsWeightedTargets { get { return
_instanceWeights
!= null; } }
66
ctx.Writer.WriteDoubleArray(
_instanceWeights
);
82
Contracts.Check(
_instanceWeights
== null || sampleCount ==
_instanceWeights
.Length / NumLeaves, "Bad quantile weight count");
89
weights[k] = (float)
_instanceWeights
[j];
128
if (
_instanceWeights
!= null)
129
leafSampleWeights[i][j] =
_instanceWeights
[i * sampleCountPerLeaf + j];
138
return base.SizeInBytes() + _labelsDistribution.SizeInBytes() + (
_instanceWeights
!= null ?
_instanceWeights
.SizeInBytes() : 0);
145
if (
_instanceWeights
!= null)
146
_instanceWeights
.ToByteArray(buffer, ref position);