1 write to Host
Microsoft.ML.FastTree (1)
37 references to Host
Microsoft.ML.FastTree (37)
FastTree.cs (37)
934Host.CheckValue(data, nameof(data));
942Host.AssertValue(binUpperBounds);
943Host.Assert(Utils.Size(binUpperBounds) == NumFeatures);
944Host.Assert(binUpperBounds.All(b => b != null));
1271Host.AssertValue(parallelTraining);
1327Host.CheckAlive();
1328Host.AssertValue(examples);
1329Host.Assert(examples.Schema.Feature.HasValue);
1332Host.AssertValue(BinUpperBounds);
1335using (var ch = Host.Start("Conversion"))
1351data = new LabelConvertTransform(Host, convArgs, data);
1355data = new TypeConvertingTransformer(Host, new TypeConvertingEstimator.ColumnOptions(groupName, DataKind.UInt64, groupName)).Transform(data);
1368Host.Assert(1 <= toTranspose.Count && toTranspose.Count <= 4);
1371using (Transposer trans = Transposer.Create(Host, data, false, toTranspose.ToArray()))
1390using (var pch = Host.StartProgressChannel("FastTree disk-based bins initialization"))
1408Host.CheckAlive();
1413Host.Assert(iFeature < features.Length);
1414Host.Assert(features[iFeature] == null);
1416Host.Assert(temp.Length == numExamples);
1450Host.AssertValue(BinUpperBounds[iFeature]);
1484Host.CheckAlive();
1550Host.AssertValue(upperBounds);
1562Host.CheckAlive();
1565Host.AssertValue(upperBounds);
1596throw Host.Except("Found invalid label {0}. Value should be between 0 and {1}, inclusive.", label, MaxLabel);
1634Host.Assert(features.All(f => f != null));
1777throw Host.ExceptParam(nameof(data), "Input data had {0} rows, but can only accommodate {1}", numInstances, Utils.ArrayMaxSize);
1796Host.AssertValue(binUpperBounds);
1801using (var ch = Host.Start("InitBoundariesAndLabels"))
1802using (var pch = Host.StartProgressChannel("FastTree data preparation"))
1849Host.Assert(hasGroup || cursor.Group == groupPrev);
1905using (var ch = Host.Start("InitBins"))
1906using (var pch = Host.StartProgressChannel("FastTree in-memory bins initialization"))
1917Host.CheckAlive();
1935using (var ch = Host.Start("BinFeatures"))
1936using (var pch = Host.StartProgressChannel("FastTree feature conversion"))
2229Host.CheckAlive();