4 writes to RawThresholds
Microsoft.ML.FastTree (4)
TreeEnsemble\InternalRegressionTree.cs (4)
121RawThresholds = buffer.ToFloatArray(ref position); 203RawThresholds = rawThresholds; 301RawThresholds = reader.ReadFloatArray(); 1090RawThresholds = new float[numNodes];
21 references to RawThresholds
Microsoft.ML.FastTree (21)
FastTree.cs (2)
3074nodesValues.Add(tree.RawThresholds[nodeIndex]); 3077if (tree.DefaultValueForMissing?[nodeIndex] <= tree.RawThresholds[nodeIndex])
RegressionTree.cs (1)
166_numericalSplitThresholds = ImmutableArray.Create(_tree.RawThresholds, 0, _tree.NumNodes);
TreeEnsemble\InternalRegressionTree.cs (18)
404writer.WriteSingleArray(RawThresholds); 497checker(Utils.Size(RawThresholds) == 0 || RawThresholds.Length == NumLeaves - 1, "bad rawthreshold length"); 498checker(RawThresholds != null || Thresholds != null, 519RawThresholds.SizeInBytes() + 549RawThresholds.ToByteArray(buffer, ref position); 654return RawThresholds[node]; 874if (fv <= RawThresholds[node]) 906if (fv <= RawThresholds[node]) 970if (val <= RawThresholds[node]) 1085if (RawThresholds != null) 1097RawThresholds[n] = (float)dataset.Flocks[flock].BinUpperBounds(subfeature)[Thresholds[n]]; 1099RawThresholds[n] = 0.5f; 1119if (RawThresholds[n] < rawThreshold) 1228double threshold = RawThresholds[n]; 1317double currentThreshold = RawThresholds[n]; 1352return PfaUtils.If(PfaUtils.Call("<=", PfaUtils.Index(feat, SplitFeatures[node]), RawThresholds[node]), lte, gt); 1603if (val <= RawThresholds[node])