1 implementation of IChannel
Microsoft.ML.Core (1)
Environment\HostEnvironmentBase.cs (1)
214protected abstract class ChannelBase : PipeBase<ChannelMessage>, IChannel
785 references to IChannel
Microsoft.ML.AutoML (63)
API\AutoMLExperimentExtension.cs (6)
163var channel = service.GetService<IChannel>(); 230var channel = service.GetRequiredService<IChannel>(); 314var channel = serviceProvider.GetRequiredService<IChannel>();
API\BinaryClassificationExperiment.cs (6)
193var channel = provider.GetService<IChannel>(); 226var channel = provider.GetService<IChannel>(); 280var channel = provider.GetService<IChannel>();
API\ExperimentBase.cs (1)
27private readonly IChannel _logger;
API\MulticlassClassificationExperiment.cs (6)
178var channel = provider.GetService<IChannel>(); 213var channel = provider.GetService<IChannel>(); 270var channel = provider.GetService<IChannel>();
API\RegressionExperiment.cs (6)
166var channel = provider.GetService<IChannel>(); 207var channel = provider.GetService<IChannel>(); 263var channel = provider.GetService<IChannel>();
AutoMLExperiment\AutoMLExperiment.cs (8)
82var channel = provider.GetRequiredService<IChannel>(); 97var channel = provider.GetRequiredService<IChannel>(); 219var logger = serviceProvider.GetRequiredService<IChannel>(); 232var logger = serviceProvider.GetRequiredService<IChannel>();
AutoMLExperiment\IMLContextManager.cs (1)
26private readonly IChannel _channel;
AutoMLExperiment\IMonitor.cs (3)
30private readonly IChannel _logger; 34public MLContextMonitor(IChannel logger, SweepablePipeline pipeline) 74public TrialResultMonitor(IChannel channel, SweepablePipeline pipeline)
AutoMLExperiment\IPerformanceMonitor.cs (2)
42private readonly IChannel _logger; 50public DefaultPerformanceMonitor(AutoMLExperiment.AutoMLExperimentSettings settings, IChannel logger, int checkIntervalInMilliseconds)
AutoMLExperiment\IStopTrainingManager.cs (5)
27private readonly IChannel? _channel; 30public CancellationTokenStopTrainingManager(CancellationToken ct, IChannel? channel) 64public TimeoutTrainingStopManager(TimeSpan timeoutInSeconds, IChannel? channel) 92public MaxModelStopManager(int maxModel, IChannel? channel) 121public AggregateTrainingStopManager(IChannel? channel, params IStopTrainingManager[] managers)
AutoMLExperiment\ITrialResultManager.cs (2)
34private readonly IChannel _channel; 39public CsvTrialResultManager(string filePath, SearchSpace.SearchSpace searchSpace, IChannel channel = null)
AutoMLExperiment\Runner\SweepablePipelineRunner.cs (2)
24private readonly IChannel? _logger; 26public SweepablePipelineRunner(MLContext context, SweepablePipeline pipeline, IEvaluateMetricManager metricManager, IDatasetManager datasetManager, IChannel? logger = null)
Experiment\Experiment.cs (2)
29private readonly IChannel _logger; 49IChannel logger)
Experiment\Runners\CrossValRunner.cs (2)
23private readonly IChannel _logger; 34IChannel logger)
Experiment\Runners\CrossValSummaryRunner.cs (2)
26private readonly IChannel _logger; 38IChannel logger)
Experiment\Runners\RunnerUtil.cs (1)
24IChannel logger) where TMetrics : class
Experiment\Runners\TrainValidateRunner.cs (2)
21private readonly IChannel _logger; 32IChannel logger)
PipelineSuggesters\PipelineSuggester.cs (3)
21IChannel logger, 35IChannel logger, 195IEnumerable<SuggestedPipelineRunDetail> history, bool isMaximizingMetric, IChannel logger)
Tuner\SmacTuner.cs (2)
30private readonly IChannel _channel; 70IChannel channel = null)
Utils\Logger.cs (1)
13private readonly IChannel _channel;
Microsoft.ML.AutoML.Tests (13)
AutoMLExperimentTests.cs (12)
41var channel = serviceProvider.GetService<IChannel>(); 80var channel = serviceProvider.GetService<IChannel>(); 128var channel = serviceProvider.GetService<IChannel>(); 167var channel = serviceProvider.GetService<IChannel>(); 190var channel = serviceProvider.GetService<IChannel>(); 433private readonly IChannel _logger; 435public DummyTrialRunner(AutoMLExperiment.AutoMLExperimentSettings automlSettings, int finishAfterNSeconds, IChannel logger)
MLContextManagerTests.cs (1)
50var channel = ((IChannelProvider)childContext).Start("childContext");
Microsoft.ML.Core (35)
Data\IHostEnvironment.cs (20)
19IChannel Start(string name); 261/// <see cref="IHostEnvironment"/>, <see cref="IHost"/>, and <see cref="IChannel"/> 268public static T Apply<T>(this IHost host, string channelName, Func<IChannel, T> func) 271using (var ch = host.Start(channelName)) 279/// Convenience variant of <see cref="IChannel.Trace(MessageSensitivity, string)"/> 282public static void Trace(this IChannel ch, string fmt) 286/// Convenience variant of <see cref="IChannel.Trace(MessageSensitivity, string, object[])"/> 289public static void Trace(this IChannel ch, string fmt, params object[] args) 293/// Convenience variant of <see cref="IChannel.Error(MessageSensitivity, string)"/> 296public static void Error(this IChannel ch, string fmt) 300/// Convenience variant of <see cref="IChannel.Error(MessageSensitivity, string, object[])"/> 303public static void Error(this IChannel ch, string fmt, params object[] args) 307/// Convenience variant of <see cref="IChannel.Warning(MessageSensitivity, string)"/> 310public static void Warning(this IChannel ch, string fmt) 314/// Convenience variant of <see cref="IChannel.Warning(MessageSensitivity, string, object[])"/> 317public static void Warning(this IChannel ch, string fmt, params object[] args) 321/// Convenience variant of <see cref="IChannel.Info(MessageSensitivity, string)"/> 324public static void Info(this IChannel ch, string fmt) 328/// Convenience variant of <see cref="IChannel.Info(MessageSensitivity, string, object[])"/> 331public static void Info(this IChannel ch, string fmt, params object[] args)
Data\RootCursorBase.cs (1)
20protected readonly IChannel Ch;
Data\ServerChannel.cs (2)
143public interface IServerFactory : IComponentFactory<IChannel, IServer> 145new IServer CreateComponent(IHostEnvironment env, IChannel ch);
Data\SynchronizedCursorBase.cs (1)
18protected readonly IChannel Ch;
Environment\ConsoleEnvironment.cs (2)
403protected override IChannel CreateCommChannel(ChannelProviderBase parent, string name) 471protected override IChannel CreateCommChannel(ChannelProviderBase parent, string name)
Environment\HostEnvironmentBase.cs (3)
210/// A base class for <see cref="IChannel"/> implementations. A message is dispatched as a 483public IChannel Start(string name) 493protected abstract IChannel CreateCommChannel(ChannelProviderBase parent, string name);
Utilities\ResourceManagerUtils.cs (6)
108public async Task<ResourceDownloadResults> EnsureResourceAsync(IHostEnvironment env, IChannel ch, string relativeUrl, string fileName, string dir, int timeout) 125private async Task<string> DownloadFromUrlWithRetryAsync(IHostEnvironment env, IChannel ch, string url, string fileName, 155private async Task<string> DownloadFromUrlAsync(IHostEnvironment env, IChannel ch, string url, string fileName, int timeout, string filePath) 177private static void TryDelete(IChannel ch, string filePath, bool warn = true) 202private static string GetFilePath(IChannel ch, string fileName, string dir, out string error) 249private async Task<Exception> DownloadResource(IHostEnvironment env, IChannel ch, HttpClient httpClient, Uri uri, string path, string fileName, CancellationToken ct)
Microsoft.ML.Core.Tests (6)
UnitTests\TestEntryPoints.cs (3)
2210using (var ch = Env.Register("LinearPredictorSummary").Start("Save Data Views")) 4274using (var ch = Env.Register("LinearPredictorSummary").Start("Save Data Views")) 4332using (var ch = Env.Register("PcaPredictorSummary").Start("Save Data Views"))
UnitTests\TestResourceDownload.cs (3)
58using (var ch = env.Start("Downloading")) 87using (var ch = env.Start("Downloading")) 114using (var ch = env.Start("Downloading"))
Microsoft.ML.Data (189)
Commands\CrossValidationCommand.cs (12)
123using (var ch = Host.Start(LoadName)) 145private void RunCore(IChannel ch, string cmd) 255private RoleMappedData ApplyAllTransformsToData(IHostEnvironment env, IChannel ch, IDataView dstData, 265private RoleMappedData CreateRoleMappedData(IHostEnvironment env, IChannel ch, IDataView data, ITrainer trainer) 285private string GetSplitColumn(IChannel ch, IDataView input, ref IDataView output) 363private readonly Func<IHostEnvironment, IChannel, IDataView, ITrainer, RoleMappedData> _createExamples; 364private readonly Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> _applyTransformsToTestData; 366private readonly Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> _applyTransformsToValidationData; 390Func<IHostEnvironment, IChannel, IDataView, ITrainer, RoleMappedData> createExamples, 391Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> applyTransformsToTestData, 395Func<IHostEnvironment, IChannel, IDataView, RoleMappedData, IDataView, RoleMappedData> applyTransformsToValidationData = null, 480using (var ch = host.Start($"Fold {fold}"))
Commands\DataCommand.cs (2)
70protected ServerChannel.IServer InitServer(IChannel ch) 247IChannel ch,
Commands\EvaluateCommand.cs (3)
150using (var ch = env.Register("EvaluateTransform").Start("Create Transform")) 214using (var ch = Host.Start("Evaluate")) 220private void RunCore(IChannel ch)
Commands\SaveDataCommand.cs (6)
52using (var ch = Host.Start(command)) 58private void RunCore(IChannel ch) 121using (var ch = Host.Start(command)) 127private void RunCore(IChannel ch) 188public static void SaveDataView(IChannel ch, IDataSaver saver, IDataView view, IFileHandle file, bool keepHidden = false) 200public static void SaveDataView(IChannel ch, IDataSaver saver, IDataView view, Stream stream, bool keepHidden = false)
Commands\SavePredictorCommand.cs (2)
134using (var ch = env.Start("Saving predictor")) 141public static void SavePredictor(IChannel ch, IPredictor predictor, RoleMappedSchema schema,
Commands\ScoreCommand.cs (2)
92using (var ch = Host.Start("Score")) 98private void RunCore(IChannel ch)
Commands\ShowSchemaCommand.cs (2)
61using (var ch = Host.Start(LoadName)) 67private void RunCore(IChannel ch)
Commands\TestCommand.cs (2)
74using (var ch = Host.Start(command)) 88private void RunCore(IChannel ch)
Commands\TrainCommand.cs (11)
114using (var ch = Host.Start(command)) 136private void RunCore(IChannel ch, string cmd) 246public static IPredictor Train(IHostEnvironment env, IChannel ch, RoleMappedData data, ITrainer trainer, 252public static IPredictor Train(IHostEnvironment env, IChannel ch, RoleMappedData data, ITrainer trainer, RoleMappedData validData, 258private static IPredictor TrainCore(IHostEnvironment env, IChannel ch, RoleMappedData data, ITrainer trainer, RoleMappedData validData, 285public static bool TryLoadPredictor(IChannel ch, IHostEnvironment env, string inputModelFile, out IPredictor inputPredictor) 317public static void SaveModel(IHostEnvironment env, IChannel ch, IFileHandle output, 342public static void SaveModel(IHostEnvironment env, IChannel ch, Stream outputStream, IPredictor predictor, RoleMappedData data, string command = null) 351using (var ch2 = env.Start("SaveModel")) 442public static bool AddNormalizerIfNeeded(IHostEnvironment env, IChannel ch, ITrainer trainer, ref IDataView view, string featureColumn, NormalizeOption autoNorm) 491private static bool AddCacheIfWanted(IHostEnvironment env, IChannel ch, ITrainer trainer, ref RoleMappedData data, bool? cacheData)
Commands\TrainTestCommand.cs (2)
97using (var ch = Host.Start(LoadName)) 119private void RunCore(IChannel ch, string cmd)
Commands\TypeInfoCommand.cs (4)
22private static readonly FuncInstanceMethodInfo1<TypeInfoCommand, IChannel, PrimitiveDataViewType, TypeNaInfo> _kindReportMethodInfo 23= FuncInstanceMethodInfo1<TypeInfoCommand, IChannel, PrimitiveDataViewType, TypeNaInfo>.Create(target => target.KindReport<int>); 80using (var ch = _host.Start("Run")) 140private TypeNaInfo KindReport<T>(IChannel ch, PrimitiveDataViewType type)
Data\DataViewUtils.cs (3)
324using (var ch = provider.Start("Consolidate")) 330private static DataViewRowCursor ConsolidateCore(IChannelProvider provider, DataViewRowCursor[] inputs, ref object[] ourPools, IChannel ch) 501using (var ch = provider.Start("CursorSplitter"))
Data\SchemaDefinition.cs (5)
151public static bool TrySetCursorChannel<T>(IExceptionContext ectx, T obj, IChannel channel) 183ectx.Check(cursorChannelAttrFieldInfo.FieldType == typeof(IChannel), 189ectx.Check(cursorChannelAttrPropertyInfo.PropertyType == typeof(IChannel), 357if (fieldInfo.FieldType == typeof(IChannel)) 367if (propertyInfo.PropertyType == typeof(IChannel))
Data\SlotCursor.cs (1)
18private protected readonly IChannel Ch;
DataLoadSave\Binary\BinaryLoader.cs (8)
310using (var ch = _parent._host.Start("Metadata TOC Read")) 317private void ReadTocMetadata(IChannel ch, Stream stream) 775using (var ch = _host.Start("Initializing")) 839using (var ch = _host.Start("Initializing")) 1092private void InitToc(IChannel ch, out TableOfContentsEntry[] aliveColumns, out TableOfContentsEntry[] deadColumns, out int allRowsPerBlock, out long tocEndOffset) 1161private void CalculateShufflePoolRows(IChannel ch, out int poolRows) 2139using (var ch = host.Start("Inspection")) 2145private void RunCore(IChannel ch, BinaryLoader loader)
DataLoadSave\Binary\BinaryLoaderSaverCatalog.cs (1)
85using (var ch = env.Start("Saving data"))
DataLoadSave\Binary\BinarySaver.cs (4)
261private long WriteMetadata(BinaryWriter writer, DataViewSchema schema, int col, IChannel ch) 409using (IChannel ch = cp.Start("Write")) 571ColumnCodec[] activeColumns, int rowsPerBlock, IChannel ch, IProgressChannel pch, ExceptionMarshaller exMarshaller) 652using (IChannel ch = _host.Start("Saving"))
DataLoadSave\Binary\CodecFactory.cs (1)
158using (IChannel ch = _host.Start("TryGetCodec"))
DataLoadSave\Database\DatabaseLoader.cs (1)
476using (var ch = parent._host.Start("Binding"))
DataLoadSave\LegacyCompositeDataLoader.cs (4)
148using (var ch = host.Start("TagValidation")) 213using (var ch = host.Start("Transforms")) 302using (var ch = h.Start("Components")) 357using (var ch = h.Start("ModelCheck"))
DataLoadSave\Text\TextLoader.cs (2)
710using (var ch = parent._host.Start("Binding")) 1337using (var ch = host.Start("Parsing options from file"))
DataLoadSave\Text\TextLoaderParser.cs (1)
142private readonly IChannel _ch;
DataLoadSave\Text\TextLoaderSaverCatalog.cs (1)
301using (var ch = env.Start("Saving data"))
DataLoadSave\Text\TextSaver.cs (5)
344using (var ch = _host.Start("Saving")) 363using (var ch = _host.Start("Writing")) 379private void ShowCount(IChannel ch, long count, int min, int max) 389private void WriteDataCore(IChannel ch, TextWriter writer, IDataView data, 464private string CreateLoaderArguments(DataViewSchema schema, ValueWriter[] pipes, bool hasHeader, IChannel ch)
DataLoadSave\TransformerChain.cs (1)
225using (var ch = env.Start("Saving pipeline"))
DataLoadSave\Transpose\TransposeSaver.cs (2)
94using (var ch = _host.Start("Saving")) 100private void SaveTransposedData(IChannel ch, Stream stream, ITransposeDataView data, int[] cols)
DataView\CacheDataView.cs (2)
393using (var ch = _host.Start("Cache Filler")) 1143protected readonly IChannel Ch;
DataView\DataViewConstructionUtils.cs (1)
533protected readonly IChannel Ch;
DataView\InternalSchemaDefinition.cs (2)
245if ((memberInfo is FieldInfo && (memberInfo as FieldInfo).FieldType == typeof(IChannel)) || 246(memberInfo is PropertyInfo && (memberInfo as PropertyInfo).PropertyType == typeof(IChannel)))
DataView\LambdaColumnMapper.cs (1)
154protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
DataView\RowToRowMapperTransform.cs (1)
255using (var ch = Host.Start("GetEntireRow"))
DataView\Transposer.cs (1)
118using (var ch = _host.Start("Init"))
DataView\TypedCursor.cs (3)
291if ((memberInfo is FieldInfo && (memberInfo as FieldInfo).FieldType == typeof(IChannel)) || 292(memberInfo is PropertyInfo && (memberInfo as PropertyInfo).PropertyType == typeof(IChannel))) 329protected readonly IChannel Ch;
Dirty\ModelParametersBase.cs (1)
86using (var ch = provider.Start("WarnNormalizer"))
Dirty\PredictorUtils.cs (5)
18public static void SaveSummary(IChannel ch, IPredictor predictor, RoleMappedSchema schema, TextWriter writer) 38public static void SaveText(IChannel ch, IPredictor predictor, RoleMappedSchema schema, TextWriter writer) 70public static void SaveBinary(IChannel ch, IPredictor predictor, BinaryWriter writer) 85public static void SaveIni(IChannel ch, IPredictor predictor, RoleMappedSchema schema, TextWriter writer) 117public static void SaveCode(IChannel ch, IPredictor predictor, RoleMappedSchema schema, TextWriter writer)
EntryPoints\EntryPointNode.cs (4)
467private EntryPointNode(IHostEnvironment env, IChannel ch, RunContext context, 522private void SetColumnArgument(IChannel ch, object inputInstance, string argName, string colName, string columnRole, params Type[] inputKinds) 579using (var ch = env.Start("Create EntryPointNode")) 889using (var ch = env.Start("Validating graph nodes"))
EntryPoints\InputBase.cs (1)
70using (var ch = host.Start("Training"))
EntryPoints\PredictorModelImpl.cs (2)
46using (var ch = env.Start("Loading predictor model")) 74using (var ch = env.Start("Saving predictor model"))
EntryPoints\TransformModelImpl.cs (2)
114using (var ch = env.Start("Loading transform model")) 174using (var ch = env.Start("Saving transform model"))
Evaluators\AnomalyDetectionEvaluator.cs (1)
664private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics)
Evaluators\BinaryClassifierEvaluator.cs (3)
1066using (var ch = Host.Start("Finding Input Columns")) 1355private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics) 1413private protected override void PrintAdditionalMetricsCore(IChannel ch, Dictionary<string, IDataView>[] metrics)
Evaluators\EvaluatorUtils.cs (5)
991private static List<string> GetMetricNames(IChannel ch, DataViewSchema schema, DataViewRow row, Func<int, bool> ignoreCol, 1124using (var ch = env.Register("GetMetricsAsString").Start("Get Metric Names")) 1694public static void PrintOverallMetrics(IHostEnvironment env, IChannel ch, string filename, IDataView overall, int numFolds) 1731public static void PrintWarnings(IChannel ch, Dictionary<string, IDataView> metrics) 1756public static void SavePerInstance(IHostEnvironment env, IChannel ch, string filename, IDataView data,
Evaluators\MamlEvaluator.cs (6)
27void PrintFoldResults(IChannel ch, Dictionary<string, IDataView> metrics); 41void PrintAdditionalMetrics(IChannel ch, params Dictionary<string, IDataView>[] metrics); 155void IMamlEvaluator.PrintFoldResults(IChannel ch, Dictionary<string, IDataView> metrics) 167private protected virtual void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics) 202void IMamlEvaluator.PrintAdditionalMetrics(IChannel ch, params Dictionary<string, IDataView>[] metrics) 214private protected virtual void PrintAdditionalMetricsCore(IChannel ch, Dictionary<string, IDataView>[] metrics)
Evaluators\MulticlassClassificationEvaluator.cs (1)
919private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics)
Evaluators\MultiOutputRegressionEvaluator.cs (1)
662private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics)
Evaluators\QuantileRegressionEvaluator.cs (1)
488private protected override void PrintFoldResultsCore(IChannel ch, Dictionary<string, IDataView> metrics)
Evaluators\RankingEvaluator.cs (1)
900private protected override void PrintAdditionalMetricsCore(IChannel ch, Dictionary<string, IDataView>[] metrics)
MLContext.cs (1)
175IChannel IChannelProvider.Start(string name) => _env.Start(name);
Model\ModelOperationsCatalog.cs (1)
130using (var ch = _env.Start("Saving Schema"))
Model\Pfa\SavePfaCommand.cs (3)
95using (var ch = Host.Start("Run")) 101private void GetPipe(IChannel ch, IDataView end, out IDataView source, out IDataView trueEnd, out LinkedList<ITransformCanSavePfa> transforms) 121private void Run(IChannel ch)
Prediction\Calibrator.cs (14)
118ICalibrator FinishTraining(IChannel ch); 138IPredictor Calibrate(IChannel ch, IDataView data, ICalibratorTrainer caliTrainer, int maxRows); 844private static bool NeedCalibration(IHostEnvironment env, IChannel ch, ICalibratorTrainer calibrator, 907public static IPredictor TrainCalibratorIfNeeded(IHostEnvironment env, IChannel ch, ICalibratorTrainer calibrator, 933public static IPredictor GetCalibratedPredictor(IHostEnvironment env, IChannel ch, ICalibratorTrainer caliTrainer, 940public static ICalibrator TrainCalibrator(IHostEnvironment env, IChannel ch, ICalibratorTrainer caliTrainer, IDataView scored, string labelColumn, string scoreColumn, string weightColumn = null, int maxRows = _maxCalibrationExamples) 1013public static ICalibrator TrainCalibrator(IHostEnvironment env, IChannel ch, ICalibratorTrainer caliTrainer, IPredictor predictor, RoleMappedData data, int maxRows = _maxCalibrationExamples) 1119ICalibrator ICalibratorTrainer.FinishTraining(IChannel ch) 1450ICalibrator ICalibratorTrainer.FinishTraining(IChannel ch) 1458public abstract ICalibrator CreateCalibrator(IChannel ch); 1484public override ICalibrator CreateCalibrator(IChannel ch) 1669ICalibrator ICalibratorTrainer.FinishTraining(IChannel ch) => new PlattCalibrator(_host, _slope, _offset); 1880public override ICalibrator CreateCalibrator(IChannel ch) 2216using (var ch = host.Start("Calibrating"))
Prediction\CalibratorCatalog.cs (1)
142using (var ch = Host.Start("Creating calibrator."))
Scorers\PredictionTransformer.cs (1)
177using (var ch = Host.Start("Saving train schema"))
Scorers\SchemaBindablePredictorWrapper.cs (5)
124using (var ch = env.Register("SchemaBindableWrapper").Start("Bind")) 155private protected abstract ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema); 355private protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) => 492private protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) 695private protected override ISchemaBoundMapper BindCore(IChannel ch, RoleMappedSchema schema) =>
Transforms\Hashing.cs (1)
229using (var ch = Host.Start("Invert hash building"))
Transforms\InvertHashUtils.cs (4)
339private static void Load(IChannel ch, ModelLoadContext ctx, CodecFactory factory, ref VBuffer<ReadOnlyMemory<char>> values) 379private static void Save(IChannel ch, ModelSaveContext ctx, CodecFactory factory, in VBuffer<ReadOnlyMemory<char>> values) 449using (var ch = host.Start("LoadTextValues")) 487using (var ch = host.Start("SaveTextValues"))
Transforms\LabelConvertTransform.cs (1)
170protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
Transforms\LabelIndicatorTransform.cs (2)
167protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, 179private ValueGetter<bool> GetGetter(IChannel ch, DataViewRow input, int iinfo)
Transforms\RangeFilter.cs (1)
104using (var ch = Host.Start("Checking parameters"))
Transforms\TrainAndScoreTransformer.cs (1)
235using (var ch = host.Start("Train"))
Transforms\TransformBase.cs (3)
182using (var ch = Host.Start("GetEntireRow")) 692protected abstract Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer); 830using (var ch = Host.Start("CreateGetters"))
Transforms\ValueMapping.cs (2)
482using (var ch = env.Start($"Processing key values from file {fileName}")) 564using (var ch = env.Start("Processing key values"))
Transforms\ValueToKeyMappingTransformer.cs (5)
254using (var ch = Host.Start("Training")) 275using (var ch = env.Start("ValidateArgs")) 386internal static IDataView GetKeyDataViewOrNull(IHostEnvironment env, IChannel ch, 467private static TermMap CreateTermMapFromData(IHostEnvironment env, IChannel ch, IDataView keyData, bool autoConvert, Builder bldr) 514private static TermMap[] Train(IHostEnvironment env, IChannel ch, ColInfo[] infos,
Transforms\ValueToKeyMappingTransformerImpl.cs (4)
85public abstract void ParseAddTermArg(ref ReadOnlyMemory<char> terms, IChannel ch); 92public abstract void ParseAddTermArg(string[] terms, IChannel ch); 207public override void ParseAddTermArg(ref ReadOnlyMemory<char> terms, IChannel ch) 233public override void ParseAddTermArg(string[] terms, IChannel ch)
Utilities\LocalEnvironment.cs (2)
75protected override IChannel CreateCommChannel(ChannelProviderBase parent, string name) 99protected override IChannel CreateCommChannel(ChannelProviderBase parent, string name)
Utilities\ModelFileUtils.cs (2)
231internal static void SaveRoleMappings(IHostEnvironment env, IChannel ch, RoleMappedSchema schema, RepositoryWriter rep) 294using (var ch = h.Start("Loading role mappings"))
Utilities\TimerScope.cs (2)
19private readonly IChannel _ch; 23public TimerScope(IHost host, IChannel ch)
Microsoft.ML.Ensemble (16)
EntryPoints\CreateEnsemble.cs (3)
117using (var ch = env.Start("Validating pipeline")) 323internal static void SerializeRoleMappedData(IHostEnvironment env, IChannel ch, RoleMappedData data, 358internal static void CheckSamePipeline(IHostEnvironment env, IChannel ch,
OutputCombiners\BaseStacking.cs (3)
130using (var ch = host.Start("Training stacked model")) 152private IDataView CreateDataView(IHostEnvironment env, IChannel ch, RoleMappedData data, ValueMapper<VBuffer<Single>, 169private IDataView CreateDataView<T>(IHostEnvironment env, IChannel ch, RoleMappedData data, ValueMapper<VBuffer<Single>, TOutput>[] maps,
PipelineEnsemble.cs (1)
322public IPredictor Calibrate(IChannel ch, IDataView data, ICalibratorTrainer caliTrainer, int maxRows)
Selector\SubModelSelector\BaseBestPerformanceSelector.cs (1)
33using (var ch = Host.Start("Pruning"))
Selector\SubModelSelector\BaseSubModelSelector.cs (2)
28protected void Print(IChannel ch, IList<FeatureSubsetModel<TOutput>> models, string metricName) 78using (var ch = Host.Start("Calculate metrics"))
Selector\SubsetSelector\BaseSubsetSelector.cs (1)
62using (var ch = Host.Start("Getting batches"))
Trainer\EnsembleModelParametersBase.cs (1)
132using (var ch = Host.Start("SaveAsText"))
Trainer\EnsembleTrainerBase.cs (4)
82using (var ch = Host.Start("Init")) 112using (var ch = Host.Start("Training")) 121private IPredictor TrainCore(IChannel ch, RoleMappedData data) 208private protected virtual void PrintMetrics(IChannel ch, List<FeatureSubsetModel<TOutput>> models)
Microsoft.ML.EntryPoints (7)
FeatureCombiner.cs (2)
52using (var ch = host.Start(featureCombiner)) 152private static List<KeyToVectorMappingEstimator.ColumnOptions> ConvertFeatures(IEnumerable<DataViewSchema.Column> feats, HashSet<string> featNames, List<KeyValuePair<string, string>> concatNames, IChannel ch,
JsonUtils\ExecuteGraphCommand.cs (1)
150using (var ch = _host.Start("Get outputs from executed graph"))
ModelOperations.cs (1)
143using (var ch = host.Start("CombineOvaModels"))
OneVersusAllMacro.cs (1)
118using (var ch = host.Start("OVA Macro GetNumberOfClasses"))
ScoreModel.cs (2)
79using (var ch = host.Start("Creating scoring pipeline")) 129using (var ch = host.Start("Creating scoring pipeline"))
Microsoft.ML.FastTree (122)
BoostingFastTree.cs (6)
34private protected override void CheckOptions(IChannel ch) 63private protected override TreeLearner ConstructTreeLearner(IChannel ch) 75private protected override OptimizationAlgorithm ConstructOptimizationAlgorithm(IChannel ch) 106private protected override IGradientAdjuster MakeGradientWrapper(IChannel ch) 119private protected override bool ShouldStop(IChannel ch, ref EarlyStoppingRuleBase earlyStoppingRule, ref int bestIteration) 154private protected override int GetBestIteration(IChannel ch)
FastTree.cs (34)
161private protected abstract void PrepareLabels(IChannel ch); 167private protected abstract OptimizationAlgorithm ConstructOptimizationAlgorithm(IChannel ch); 169private protected abstract TreeLearner ConstructTreeLearner(IChannel ch); 171private protected abstract ObjectiveFunctionBase ConstructObjFunc(IChannel ch); 214private protected void TrainCore(IChannel ch) 240private protected virtual bool ShouldStop(IChannel ch, ref EarlyStoppingRuleBase earlyStopping, ref int bestIteration) 245private protected virtual int GetBestIteration(IChannel ch) => Ensemble.NumTrees; 252private protected virtual void PrintExecutionTime(IChannel ch) 257private protected virtual void CheckOptions(IChannel ch) 322private protected void PrintTestGraph(IChannel ch) 336private protected virtual void Initialize(IChannel ch) 436private protected virtual void PrintMemoryStats(IChannel ch) 463private protected bool AreSamplesWeighted(IChannel ch) 476private protected virtual IGradientAdjuster MakeGradientWrapper(IChannel ch) 594private protected virtual void Train(IChannel ch) 788private protected virtual void PrintIterationMessage(IChannel ch, IProgressChannel pch) 796private protected virtual void PrintTestResults(IChannel ch) 814private protected virtual void PrintPrologInfo(IChannel ch) 846private double[] ComputeScoresSmart(IChannel ch, Dataset set) 860private double[] ComputeScoresSlow(IChannel ch, Dataset set) 963using (var ch = host.Start("CreateConverter")) 980using (var ch = host.Start("CreateConverter")) 1022private FeatureFlockBase CreateOneHotFlock(IChannel ch, 1107private FeatureFlockBase CreateOneHotFlockCategorical(IChannel ch, 1189private protected static SingletonFeatureFlock CreateSingletonFlock(IChannel ch, in VBuffer<double> values, int[] binnedValues, 1335using (var ch = Host.Start("Conversion")) 1801using (var ch = Host.Start("InitBoundariesAndLabels")) 1905using (var ch = Host.Start("InitBins")) 1935using (var ch = Host.Start("BinFeatures")) 1944private NHotFeatureFlock CreateNHotFlock(IChannel ch, List<int> features) 2037private IEnumerable<FeatureFlockBase> CreateFlocks(IChannel ch, IProgressChannel pch) 2066private IEnumerable<FeatureFlockBase> CreateFlocksCore(IChannel ch, IProgressChannel pch) 2178private IEnumerable<FeatureFlockBase> CreateFlocksCore(IChannel ch, IProgressChannel pch, int startFeatureIndex, int featureLim) 2747using (var ch = _host.Start("InitDataset"))
FastTreeClassification.cs (5)
191using (var ch = Host.Start("Training")) 216private protected override ObjectiveFunctionBase ConstructObjFunc(IChannel ch) 232private protected override OptimizationAlgorithm ConstructOptimizationAlgorithm(IChannel ch) 251private protected override void PrepareLabels(IChannel ch) 398public void AdjustTreeOutputs(IChannel ch, InternalRegressionTree tree,
FastTreeRanking.cs (10)
145using (var ch = Host.Start("Training")) 170private protected override void CheckOptions(IChannel ch) 195private protected override void Initialize(IChannel ch) 205private protected override ObjectiveFunctionBase ConstructObjFunc(IChannel ch) 210private protected override OptimizationAlgorithm ConstructOptimizationAlgorithm(IChannel ch) 227private protected override void PrepareLabels(IChannel ch) 302private protected override void PrintIterationMessage(IChannel ch, IProgressChannel pch) 383private protected override void Train(IChannel ch) 736public override double[] GetGradient(IChannel ch, double[] scores) 928void IStepSearch.AdjustTreeOutputs(IChannel ch, InternalRegressionTree tree, DocumentPartitioning partitioning,
FastTreeRegression.cs (8)
115using (var ch = Host.Start("Training")) 127private protected override void CheckOptions(IChannel ch) 146private protected override ObjectiveFunctionBase ConstructObjFunc(IChannel ch) 151private protected override OptimizationAlgorithm ConstructOptimizationAlgorithm(IChannel ch) 182private protected override void PrepareLabels(IChannel ch) 297private protected override void PrintIterationMessage(IChannel ch, IProgressChannel pch) 401private protected override void Train(IChannel ch) 447public void AdjustTreeOutputs(IChannel ch, InternalRegressionTree tree, DocumentPartitioning partitioning, ScoreTracker trainingScores)
FastTreeTweedie.cs (8)
124using (var ch = Host.Start("Training")) 137private protected override void CheckOptions(IChannel ch) 158private protected override ObjectiveFunctionBase ConstructObjFunc(IChannel ch) 163private protected override OptimizationAlgorithm ConstructOptimizationAlgorithm(IChannel ch) 195private protected override void PrepareLabels(IChannel ch) 276private protected override void PrintIterationMessage(IChannel ch, IProgressChannel pch) 337private protected override void Train(IChannel ch) 401public void AdjustTreeOutputs(IChannel ch, InternalRegressionTree tree, DocumentPartitioning partitioning, ScoreTracker trainingScores)
GamModelParameters.cs (6)
129using (var ch = env.Start("GamWarningChannel")) 585using (var ch = Host.Start("Run")) 623public Context(IChannel ch, GamModelParametersBase pred, RoleMappedData data, IEvaluator eval) 743public long? SaveIfNeeded(IHost host, IChannel ch, string outFile) 869private Context Init(IChannel ch) 911private void Run(IChannel ch)
GamTrainer.cs (5)
222using (var ch = Host.Start("Training")) 277private void TrainCore(IChannel ch) 294private void TrainMainEffectsModel(IChannel ch) 423private void CombineGraphs(IChannel ch) 590private void Initialize(IChannel ch)
RandomForest.cs (2)
42private protected override OptimizationAlgorithm ConstructOptimizationAlgorithm(IChannel ch) 63private protected override TreeLearner ConstructTreeLearner(IChannel ch)
RandomForestClassification.cs (4)
218using (var ch = Host.Start("Training")) 266private void TrainCoreOneDal(IChannel ch, FloatLabelCursor.Factory cursorFactory, int featureCount) 348private protected override ObjectiveFunctionBase ConstructObjFunc(IChannel ch) 353private protected override void PrepareLabels(IChannel ch)
RandomForestRegression.cs (5)
357using (var ch = Host.Start("Training")) 399private void TrainCoreOneDal(IChannel ch, FloatLabelCursor.Factory cursorFactory, int featureCount) 480private protected override void PrepareLabels(IChannel ch) 484private protected override ObjectiveFunctionBase ConstructObjFunc(IChannel ch) 567public override double[] GetGradient(IChannel ch, double[] scores)
SumupPerformanceCommand.cs (5)
104private IEnumerable<int> CreateDense(IChannel ch, Random rgen) 110private IEnumerable<int> CreateSparse(IChannel ch, Random rgen) 150private IntArray[] CreateRandomIntArrays(IChannel ch) 160Func<IChannel, Random, IEnumerable<int>> createIntArray; 269using (var ch = _host.Start("Run"))
Training\Applications\ObjectiveFunction.cs (1)
55public virtual double[] GetGradient(IChannel ch, double[] scores)
Training\EnsembleCompression\IEnsembleCompressor.cs (1)
14bool Compress(IChannel ch, InternalTreeEnsemble ensemble, double[] trainScores, int bestIteration, int maxTreesAfterCompression);
Training\EnsembleCompression\LassoBasedEnsembleCompressor.cs (2)
167private LassoFit GetLassoFit(IChannel ch, int maxAllowedFeaturesPerModel) 537bool IEnsembleCompressor<short>.Compress(IChannel ch, InternalTreeEnsemble ensemble, double[] trainScores, int bestIteration, int maxTreesAfterCompression)
Training\OptimizationAlgorithms\AcceleratedGradientDescent.cs (1)
21internal override InternalRegressionTree TrainingIteration(IChannel ch, bool[] activeFeatures)
Training\OptimizationAlgorithms\ConjugateGradientDescent.cs (1)
21private protected override double[] GetGradient(IChannel ch)
Training\OptimizationAlgorithms\GradientDescent.cs (3)
37private protected virtual double[] GetGradient(IChannel ch) 81protected virtual double[] AdjustTargetsAndSetWeights(IChannel ch) 94internal override InternalRegressionTree TrainingIteration(IChannel ch, bool[] activeFeatures)
Training\OptimizationAlgorithms\NoOptimizationAlgorithm.cs (1)
28internal override InternalRegressionTree TrainingIteration(IChannel ch, bool[] activeFeatures)
Training\OptimizationAlgorithms\OptimizationAlgorithm.cs (3)
26public delegate void PreScoreUpdateHandler(IChannel ch); 56internal abstract InternalRegressionTree TrainingIteration(IChannel ch, bool[] activeFeatures); 58internal virtual void UpdateAllScores(IChannel ch, InternalRegressionTree tree)
Training\StepSearch.cs (2)
13void AdjustTreeOutputs(IChannel ch, InternalRegressionTree tree, DocumentPartitioning partitioning, ScoreTracker trainingScores); 97void IStepSearch.AdjustTreeOutputs(IChannel ch, InternalRegressionTree tree, DocumentPartitioning partitioning,
Training\TreeLearners\FastForestLeastSquaresTreeLearner.cs (1)
32public InternalRegressionTree FitTargets(IChannel ch, bool[] activeFeatures, Double[] weightedtargets, Double[] targets, Double[] weights)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (1)
222internal sealed override InternalRegressionTree FitTargets(IChannel ch, bool[] activeFeatures, double[] targets)
Training\TreeLearners\TreeLearner.cs (1)
26internal abstract InternalRegressionTree FitTargets(IChannel ch, bool[] activeFeatures, double[] targets);
TreeEnsemble\InternalRegressionTree.cs (1)
556public void SumupValue(IChannel ch, InternalRegressionTree tree)
TreeEnsembleFeaturizationTransformer.cs (1)
165using (var ch = Host.Start("Saving train schema"))
TreeEnsembleFeaturizer.cs (4)
624using (var ch = host.Start("Create Tree Ensemble Scorer")) 702using (var ch = host.Start("Create Tree Ensemble Scorer")) 739private static IDataView AppendFloatMapper<TInput>(IHostEnvironment env, IChannel ch, IDataView input, 792private static IDataView AppendLabelTransform(IHostEnvironment env, IChannel ch, IDataView input, string labelName, int labelPermutationSeed)
Microsoft.ML.KMeansClustering (10)
KMeansPlusPlusTrainer.cs (10)
205using (var ch = Host.Start("Training")) 211private KMeansModelParameters TrainCore(IChannel ch, RoleMappedData data, int dimensionality) 334IHost host, int numThreads, IChannel ch, FeatureFloatVectorCursor.Factory cursorFactory, 468public KMeansAcceleratedRowMap(FeatureFloatVectorCursor.Factory factory, IChannel ch, 569public SharedState(FeatureFloatVectorCursor.Factory factory, IChannel ch, long baseMaxInstancesToAccelerate, 785public static void Initialize(IHost host, int numThreads, IChannel ch, FeatureFloatVectorCursor.Factory cursorFactory, 992IHost host, int numThreads, IChannel ch, FeatureFloatVectorCursor.Factory cursorFactory, 1270public SharedState(FeatureFloatVectorCursor.Factory factory, IChannel ch, long baseMaxInstancesToAccelerate, int k, 1351public static void Train(IHost host, int numThreads, IChannel ch, FeatureFloatVectorCursor.Factory cursorFactory, 1451IChannel ch, FeatureFloatVectorCursor.Factory factory, long totalTrainingInstances,
Microsoft.ML.LightGbm (29)
LightGbmBinaryTrainer.cs (2)
262private protected override void CheckDataValid(IChannel ch, RoleMappedData data) 279private protected override void CheckAndUpdateParametersBeforeTraining(IChannel ch, RoleMappedData data, float[] labels, int[] groups)
LightGbmMulticlassTrainer.cs (4)
233private protected override void CheckDataValid(IChannel ch, RoleMappedData data) 270private protected override void ConvertNaNLabels(IChannel ch, RoleMappedData data, float[] labels) 317private protected override void GetDefaultParameters(IChannel ch, int numRow, bool hasCategorical, int totalCats, bool hiddenMsg = false) 334private protected override void CheckAndUpdateParametersBeforeTraining(IChannel ch, RoleMappedData data, float[] labels, int[] groups)
LightGbmRankingTrainer.cs (2)
239private protected override void CheckDataValid(IChannel ch, RoleMappedData data) 288private protected override void CheckAndUpdateParametersBeforeTraining(IChannel ch, RoleMappedData data, float[] labels, int[] groups)
LightGbmRegressionTrainer.cs (2)
224private protected override void CheckDataValid(IChannel ch, RoleMappedData data) 241private protected override void CheckAndUpdateParametersBeforeTraining(IChannel ch, RoleMappedData data, float[] labels, int[] groups)
LightGbmTrainerBase.cs (18)
373using (var ch = Host.Start("Loading LightGBM model file")) 438using (var ch = Host.Start("Loading data for LightGBM")) 447using (var ch = Host.Start("Training with LightGBM")) 497private protected virtual void CheckDataValid(IChannel ch, RoleMappedData data) 505private protected virtual void GetDefaultParameters(IChannel ch, int numRow, bool hasCategorical, int totalCats, bool hiddenMsg = false) 610private CategoricalMetaData GetCategoricalMetaData(IChannel ch, RoleMappedData trainData, int numRow) 642private Dataset LoadTrainingData(IChannel ch, RoleMappedData trainData, out CategoricalMetaData catMetaData) 673private Dataset LoadValidationData(IChannel ch, Dataset dtrain, RoleMappedData validData, CategoricalMetaData catMetaData) 695private void TrainCore(IChannel ch, IProgressChannel pch, Dataset dtrain, CategoricalMetaData catMetaData, Dataset dvalid = null) 742private void GetMetainfo(IChannel ch, FloatLabelCursor.Factory factory, 803private protected virtual void ConvertNaNLabels(IChannel ch, RoleMappedData data, float[] labels) 822private void GetFeatureValueDense(IChannel ch, FloatLabelCursor cursor, CategoricalMetaData catMetaData, Random rand, out ReadOnlySpan<float> featureValues) 859private void GetFeatureValueSparse(IChannel ch, FloatLabelCursor cursor, 910private void CreateDatasetFromSamplingData(IChannel ch, FloatLabelCursor.Factory factory, 1001private void LoadDataset(IChannel ch, FloatLabelCursor.Factory factory, Dataset dataset, int numRow, int batchSize, CategoricalMetaData catMetaData) 1109private void CopyToArray(IChannel ch, FloatLabelCursor cursor, float[] features, CategoricalMetaData catMetaData, Random rand, ref int numElem) 1147private void CopyToCsr(IChannel ch, FloatLabelCursor cursor, 1247private protected abstract void CheckAndUpdateParametersBeforeTraining(IChannel ch,
WrappedLightGbmTraining.cs (1)
18public static Booster Train(IHost host, IChannel ch, IProgressChannel pch,
Microsoft.ML.Maml (9)
ChainCommand.cs (2)
47using (var ch = _host.Start("Run")) 57using (var chCmd = _host.Start(string.Format(CultureInfo.InvariantCulture, "Command[{0}]", i)))
HelpCommand.cs (3)
110using (var ch = _env.Start("Help")) 461using (var ch = _host.Start("Generating XML")) 494private XElement CreateDefaultValueElement(IChannel ch, string name, CmdParser.ArgInfo.Arg a)
MAML.cs (3)
107using (var ch = mainHost.Start("Main")) 258private static void PrintFullExceptionDetails(IChannel ch, Exception ex) 312private static void PrintExceptionData(IChannel ch, Exception ex, bool includeComponents)
VersionCommand.cs (1)
31using (var ch = _host.Start("Version"))
Microsoft.ML.Mkl.Components (16)
ComputeLRTrainingStdThroughHal.cs (2)
25/// <param name="ch">The <see cref="IChannel"/> used for messaging.</param> 27public override VBuffer<float> ComputeStandardDeviation(double[] hessian, int[] weightIndices, int numSelectedParams, int currentWeightsCount, IChannel ch, float l2Weight)
OlsLinearRegression.cs (4)
153using (var ch = Host.Start("Training")) 196private void ComputeOneDalRegression(IChannel ch, FloatLabelCursor.Factory cursorFactory, int m, ref Double[] beta, Double[] xtx, ref long n, ref Double yMean) 304private void ComputeMklRegression(IChannel ch, FloatLabelCursor.Factory cursorFactory, int m, ref Double[] beta, Double[] xtx, ref long n, ref Double yMean) 413private OlsModelParameters TrainCore(IChannel ch, FloatLabelCursor.Factory cursorFactory, int featureCount)
SymSgdClassificationTrainer.cs (7)
184private RoleMappedData PrepareDataFromTrainingExamples(IChannel ch, RoleMappedData examples, out int weightSetCount) 220using (var ch = Host.Start("Training")) 369private readonly IChannel _ch; 379public ArrayManager(SymbolicSgdLogisticRegressionBinaryTrainer trainer, IChannel ch) 544private readonly IChannel _ch; 554public InputDataManager(SymbolicSgdLogisticRegressionBinaryTrainer trainer, FloatLabelCursor.Factory cursorFactory, IChannel ch) 701private TPredictor TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, int weightSetCount)
VectorWhitening.cs (3)
268using (var ch = env.Start("Training")) 299private static float[][] LoadDataAsDense(IHostEnvironment env, IChannel ch, IDataView inputData, out int[] actualRowCounts, 366private static void TrainModels(IHostEnvironment env, IChannel ch, float[][] columnData, int[] rowCounts,
Microsoft.ML.OneDal (1)
OneDalUtils.cs (1)
44internal static long GetTrainData(IChannel channel, FloatLabelCursor.Factory cursorFactory, ref List<float> featuresList, ref List<float> labelsList, int numberOfFeatures)
Microsoft.ML.OnnxConverter (4)
OnnxExportExtensions.cs (1)
22using (var ch = env.Start("ONNX conversion"))
SaveOnnxCommand.cs (3)
139internal static void GetPipe(OnnxContextImpl ctx, IChannel ch, IDataView end, out IDataView source, out IDataView trueEnd, out LinkedList<ITransformCanSaveOnnx> transforms) 164internal static ModelProto ConvertTransformListToOnnxModel(OnnxContextImpl ctx, IChannel ch, IDataView inputData, IDataView outputData, 291private void Run(IChannel ch)
Microsoft.ML.Parquet (3)
ParquetLoader.cs (3)
143using (var ch = _host.Start("Initializing host")) 684private readonly IChannel _ch; 686public ParquetConversions(IChannel channel)
Microsoft.ML.PCA (4)
PcaTrainer.cs (2)
192using (var ch = Host.Start("Training")) 211private PcaModelParameters TrainCore(IChannel ch, RoleMappedData data, int dimension)
PcaTransformer.cs (2)
317using (var ch = Host.Start("Memory usage")) 341using (var ch = Host.Start("Memory usage"))
Microsoft.ML.PerformanceTests (1)
BenchmarkBase.cs (1)
51using (var ch = (mlContext as IHostEnvironment).Start("Ensuring dataset files are present."))
Microsoft.ML.Recommender (7)
MatrixFactorizationPredictor.cs (1)
538using (var ch = Host.Start("Saving train schema"))
MatrixFactorizationTrainer.cs (3)
426using (var ch = _host.Start("Training")) 435private MatrixFactorizationModelParameters TrainCore(IChannel ch, RoleMappedData data, RoleMappedData validData = null) 536using (var ch = _host.Start("Training"))
SafeTrainingAndModelBuffer.cs (3)
258private MFNode[] ConstructLabeledNodesFrom(IChannel ch, DataViewRowCursor cursor, ValueGetter<float> labGetter, 314public unsafe void Train(IChannel ch, int rowCount, int colCount, 344public unsafe void TrainWithValidation(IChannel ch, int rowCount, int colCount,
Microsoft.ML.StandardTrainers (85)
FactorizationMachine\FactorizationMachineTrainer.cs (4)
359private static double CalculateAvgLoss(IChannel ch, RoleMappedData data, bool norm, float[] linearWeights, AlignedArray latentWeightsAligned, 408private FieldAwareFactorizationMachineModelParameters TrainCore(IChannel ch, IProgressChannel pch, RoleMappedData data, 560using (var ch = _host.Start("Training")) 605using (var ch = _host.Start("Training"))
FactorizationMachine\FieldAwareFactorizationMachineModelParameters.cs (1)
407using (var ch = Host.Start("Saving train schema"))
LdSvm\LdSvmTrainer.cs (6)
192using (var ch = Host.Start("Training")) 253private LdSvmModelParameters TrainCore(IChannel ch, RoleMappedData trainingData, int numLeaf, int numFeatures) 488protected readonly IChannel Ch; 492protected Data(IChannel ch) 508public CachedData(IChannel ch, RoleMappedData data) 566public StreamingData(IChannel ch, RoleMappedData data)
Optimizer\L1Optimizer.cs (3)
44internal override OptimizerState MakeState(IChannel ch, IProgressChannelProvider progress, DifferentiableFunction function, ref VBuffer<float> initial) 75internal L1OptimizerState(IChannel ch, IProgressChannelProvider progress, DifferentiableFunction function, in VBuffer<float> initial, int m, long totalMemLimit, 197internal override bool LineSearch(IChannel ch, bool force)
Optimizer\Optimizer.cs (6)
93internal virtual OptimizerState MakeState(IChannel ch, IProgressChannelProvider progress, DifferentiableFunction function, ref VBuffer<float> initial) 102internal FunctionOptimizerState(IChannel ch, IProgressChannelProvider progress, DifferentiableFunction function, in VBuffer<float> initial, int m, 135protected readonly IChannel Ch; 196protected internal OptimizerState(IChannel ch, IProgressChannelProvider progress, in VBuffer<float> initial, 380internal virtual bool LineSearch(IChannel ch, bool force) 605using (var ch = Env.Start(computationName))
Standard\LogisticRegression\LbfgsPredictorBase.cs (7)
275using (var ch = Host.Start("Initialization")) 312private protected virtual Optimizer InitializeOptimizer(IChannel ch, FloatLabelCursor.Factory cursorFactory, 345private protected virtual VBuffer<float> InitializeWeightsSgd(IChannel ch, FloatLabelCursor.Factory cursorFactory) 449using (var ch = Host.Start("Training")) 464private protected virtual void TrainCoreOneDal(IChannel ch, RoleMappedData data) 563private protected virtual void TrainCore(IChannel ch, RoleMappedData data) 736private protected abstract void ComputeTrainingStatistics(IChannel ch, FloatLabelCursor.Factory cursorFactory, float loss, int numParams);
Standard\LogisticRegression\LogisticRegression.cs (3)
220private protected override void ComputeTrainingStatistics(IChannel ch, FloatLabelCursor.Factory cursorFactory, float loss, int numParams) 424private protected override Optimizer InitializeOptimizer(IChannel ch, FloatLabelCursor.Factory cursorFactory, 496public abstract VBuffer<float> ComputeStandardDeviation(double[] hessian, int[] weightIndices, int parametersCount, int currentWeightsCount, IChannel ch, float l2Weight);
Standard\LogisticRegression\MulticlassLogisticRegression.cs (3)
232private protected override Optimizer InitializeOptimizer(IChannel ch, FloatLabelCursor.Factory cursorFactory, 299using (var ch = Host.Start("Creating Predictor")) 308private protected override void ComputeTrainingStatistics(IChannel ch, FloatLabelCursor.Factory cursorFactory, float loss, int numParams)
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (2)
110private protected abstract TModel TrainCore(IChannel ch, RoleMappedData data, int count); 128using (var ch = Host.Start("Training"))
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
151using (var ch = Host.Start("Training"))
Standard\MulticlassClassification\OneVersusAllTrainer.cs (4)
151private protected override OneVersusAllModelParameters TrainCore(IChannel ch, RoleMappedData data, int count) 163private ISingleFeaturePredictionTransformer<TScalarPredictor> TrainOne(IChannel ch, TScalarTrainer trainer, RoleMappedData data, int cls) 221using (var ch = Host.Start("Fitting")) 302using (var ch = host.Start("Creating OVA predictor"))
Standard\MulticlassClassification\PairwiseCouplingTrainer.cs (3)
126private protected override PairwiseCouplingModelParameters TrainCore(IChannel ch, RoleMappedData data, int count) 145private ISingleFeaturePredictionTransformer<TDistPredictor> TrainOne(IChannel ch, TScalarTrainer trainer, RoleMappedData data, int cls1, int cls2) 198using (var ch = Host.Start("Fitting"))
Standard\Online\AveragedLinear.cs (3)
154private protected AveragedTrainStateBase(IChannel ch, int numFeatures, LinearModelParameters predictor, AveragedLinearTrainer<TTransformer, TModel> parent) 191public override void FinishIteration(IChannel ch) 220public override void ProcessDataInstance(IChannel ch, in VBuffer<float> feat, float label, float weight)
Standard\Online\AveragedPerceptron.cs (2)
124public TrainState(IChannel ch, int numFeatures, LinearModelParameters predictor, AveragedPerceptronTrainer parent) 212private protected override TrainStateBase MakeState(IChannel ch, int numFeatures, LinearModelParameters predictor)
Standard\Online\LinearSvm.cs (4)
136public TrainState(IChannel ch, int numFeatures, LinearModelParameters predictor, LinearSvmTrainer parent) 154public override void BeginIteration(IChannel ch) 178public override void ProcessDataInstance(IChannel ch, in VBuffer<float> feat, float label, float weight) 320private protected override TrainStateBase MakeState(IChannel ch, int numFeatures, LinearModelParameters predictor)
Standard\Online\OnlineGradientDescent.cs (2)
102public TrainState(IChannel ch, int numFeatures, LinearModelParameters predictor, OnlineGradientDescentTrainer parent) 181private protected override TrainStateBase MakeState(IChannel ch, int numFeatures, LinearModelParameters predictor)
Standard\Online\OnlineLinear.cs (13)
83/// this, and return the instance via <see cref="MakeState(IChannel, int, LinearModelParameters)"/>. 90/// The number of iterations. Incremented by <see cref="BeginIteration(IChannel)"/>. 95/// The number of examples in the current iteration. Incremented by <see cref="ProcessDataInstance(IChannel, in VBuffer{float}, float, float)"/>, 96/// and reset by <see cref="BeginIteration(IChannel)"/>. 123protected TrainStateBase(IChannel ch, int numFeatures, LinearModelParameters predictor, OnlineLinearTrainer<TTransformer, TModel> parent) 201/// Called by <see cref="TrainCore(IChannel, RoleMappedData, TrainStateBase)"/> at the start of a pass over the dataset. 203public virtual void BeginIteration(IChannel ch) 212/// Called by <see cref="TrainCore(IChannel, RoleMappedData, TrainStateBase)"/> after a pass over the dataset. 214public virtual void FinishIteration(IChannel ch) 227public virtual void ProcessDataInstance(IChannel ch, in VBuffer<float> feat, float label, float weight) 292using (var ch = Host.Start("Training")) 313private void TrainCore(IChannel ch, RoleMappedData data, TrainStateBase state) 351private protected abstract TrainStateBase MakeState(IChannel ch, int numFeatures, LinearModelParameters predictor);
Standard\PoissonRegression\PoissonRegression.cs (1)
198private protected override void ComputeTrainingStatistics(IChannel ch, FloatLabelCursor.Factory factory, float loss, int numParams)
Standard\SdcaBinary.cs (13)
72using (var ch = Host.Start("Training")) 84private protected abstract TModel TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, int weightSetCount); 95private protected RoleMappedData PrepareDataFromTrainingExamples(IChannel ch, RoleMappedData examples, out int weightSetCount) 250using (var ch = env.Start("SDCA arguments checking")) 322private protected sealed override TModel TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, int weightSetCount) 684private static int TuneDefaultMaxIterations(IChannel ch, long count, int numThreads) 698private protected virtual float TuneDefaultL2(IChannel ch, int maxIterations, long rowCount, int numThreads) 717private static float TuneDefaultL1(IChannel ch, int numFeatures) 1925using (var ch = env.Start("Argument Adjustment")) 2019private protected override TModel TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, int weightSetCount) 2205/// It's used at the end of <see cref="TrainCore(IChannel, RoleMappedData, LinearModelParameters, int)"/> to finalize the trained model. 2310/// Given weights and bias trained in <see cref="SgdBinaryTrainerBase{TModelParameters}.TrainCore(IChannel, RoleMappedData, LinearModelParameters, int)"/>, 2437/// a calibrator would be added after <see cref="SgdBinaryTrainerBase{TModelParameters}.TrainCore(IChannel, RoleMappedData, LinearModelParameters, int)"/>
Standard\SdcaRegression.cs (1)
174private protected override float TuneDefaultL2(IChannel ch, int maxIterations, long rowCount, int numThreads)
Standard\StochasticTrainerBase.cs (3)
33using (var ch = Host.Start("Training")) 59private protected RoleMappedData PrepareDataFromTrainingExamples(IChannel ch, RoleMappedData examples, out int weightSetCount) 92private protected abstract TModel TrainCore(IChannel ch, RoleMappedData data, LinearModelParameters predictor, int weightSetCount);
Microsoft.ML.Sweeper (7)
Algorithms\SmacSweeper.cs (1)
132using (IChannel ch = _host.Start("Single training"))
ConfigRunner.cs (4)
109using (var ch = Host.Start("Finish")) 164using (var ch = Host.Start("Evaluate")) 178protected abstract IEnumerable<IRunResult> RunConfigsCore(ParameterSet[] sweeps, IChannel ch, int min); 200protected override IEnumerable<IRunResult> RunConfigsCore(ParameterSet[] sweeps, IChannel ch, int min)
SweepCommand.cs (1)
86using (var ch = _host.Start("Generating sweeps"))
SynthConfigRunner.cs (1)
42protected override IEnumerable<IRunResult> RunConfigsCore(ParameterSet[] sweeps, IChannel ch, int min)
Microsoft.ML.TensorFlow (2)
TensorflowUtils.cs (2)
212using (var ch = env.Start("Ensuring meta files are present.")) 325using (var ch = env.Start("Delete folder"))
Microsoft.ML.TensorFlow.Tests (1)
TensorflowTests.cs (1)
1986using (var ch = (_mlContext as IHostEnvironment).Start("Ensuring image files are present."))
Microsoft.ML.Tests (42)
BinaryLoaderSaverTests.cs (1)
27using (var ch = Env.Start("save"))
FeatureContributionTests.cs (1)
240using (var ch = Env.Start("save"))
ImagesTests.cs (10)
194using (var ch = env.Start("save")) 355using (var ch = env.Start("save")) 430using (var ch = env.Start("save")) 506using (var ch = env.Start("save")) 581using (var ch = env.Start("save")) 656using (var ch = env.Start("save")) 732using (var ch = env.Start("save")) 807using (var ch = env.Start("save")) 883using (var ch = env.Start("save")) 957using (var ch = env.Start("save"))
OnnxConversionTest.cs (2)
804using (var conversionChannel = (mlContext as IChannelProvider).Start("ONNX conversion")) 1616using (var ch = env.Start("ONNX conversion"))
Scenarios\Api\TestApi.cs (5)
33public IChannel Channel = null; 47public IChannel ChannelOne = null; 50public IChannel ChannelTwo = null; 57public IChannel ChannelOne = null; 60public IChannel ChannelTwo = null;
TermEstimatorTests.cs (1)
83using (var ch = Env.Start("save"))
TrainerEstimators\MatrixFactorizationTests.cs (1)
539using (var ch = Env.Start("load"))
TrainerEstimators\TreeEstimators.cs (1)
521using (var ch = (mlContext as IChannelProvider).Start("Training LightGBM..."))
Transformers\CategoricalHashTests.cs (1)
232using (var ch = Env.Start("saving"))
Transformers\ConcatTests.cs (2)
87using (var ch = Env.Start("save")) 151using (var ch = Env.Start("save"))
Transformers\ConvertTests.cs (1)
393using (var ch = Env.Start("load"))
Transformers\FeatureSelectionTests.cs (4)
47using (var ch = Env.Start("save")) 84using (var ch = Env.Start("save")) 126using (var ch = Env.Start("save")) 186using (var ch = Env.Start("save"))
Transformers\HashTests.cs (1)
341using (var ch = Env.Start("save"))
Transformers\KeyToValueTests.cs (1)
52using (var ch = Env.Start("save"))
Transformers\NAIndicatorTests.cs (1)
114using (var ch = ((IHostEnvironment)ML).Start("save"))
Transformers\NormalizerTests.cs (6)
85using (var ch = Env.Start("save")) 672using (var ch = Env.Start("save")) 706using (var ch = Env.Start("save")) 769using (var ch = Env.Start("save")) 829using (var ch = Env.Start("save")) 1009using (var ch = Env.Start("save"))
Transformers\TextFeaturizerTests.cs (3)
441using (var ch = ((IHostEnvironment)ML).Start("save")) 500using (var ch = Env.Start("save")) 694using (var ch = env.Start("save"))
Microsoft.ML.TimeSeries (4)
AdaptiveSingularSpectrumSequenceModeler.cs (4)
1188using (var ch = _host.Start("Train")) 1238using (var ch = _host.Start("Train")) 1313using (var ch = _host.Start("Train")) 1357using (var ch = _host.Start("Train"))
Microsoft.ML.TorchSharp (46)
AutoFormerV2\ObjectDetectionTrainer.cs (10)
161using (var ch = Host.Start("TrainModel")) 202private readonly IChannel _channel; 204public Trainer(ObjectDetectionTrainer parent, IChannel ch, IDataView input) 269using (var ch = (Parent.Host as IHostEnvironment).Start("Ensuring model file is present.")) 686var ch = env.Start("Load Model"); 795var ch = Host.Start("Make Getter"); 804private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 828private Delegate MakePredictedLabelGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 852private Delegate MakeBoundingBoxGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 882var ch = Host.Start("Make Getters");
Extensions\TokenizerExtensions.cs (1)
19internal static Tokenizer GetInstance(IChannel ch)
NasBert\NasBertTrainer.cs (2)
185public NasBertTrainerBase(TorchSharpBaseTrainer<TLabelCol, TTargetsCol> parent, IChannel ch, IDataView input, string modelUrl) : base(parent, ch, input, modelUrl) 201private protected override Module CreateModule(IChannel ch, IDataView input)
NasBert\NerTrainer.cs (5)
104private protected override TrainerBase CreateTrainer(TorchSharpBaseTrainer<VBuffer<uint>, TargetType> parent, IChannel ch, IDataView input) 121public Trainer(TorchSharpBaseTrainer<VBuffer<uint>, TargetType> parent, IChannel ch, IDataView input) : base(parent, ch, input, ModelUrlString) 328var ch = env.Start("Load Model"); 372var ch = Host.Start("Make Getter"); 412private Delegate MakePredictedLabelGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher)
NasBert\SentenceSimilarityTrainer.cs (5)
103private protected override TrainerBase CreateTrainer(TorchSharpBaseTrainer<float, float> parent, IChannel ch, IDataView input) 117public Trainer(TorchSharpBaseTrainer<float, float> parent, IChannel ch, IDataView input) : base(parent, ch, input, ModelUrlString) 241var ch = env.Start("Load Model"); 266var ch = Host.Start("Make Getter"); 270private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher)
NasBert\TextClassificationTrainer.cs (6)
103private protected override TrainerBase CreateTrainer(TorchSharpBaseTrainer<uint, long> parent, IChannel ch, IDataView input) 117public Trainer(TorchSharpBaseTrainer<uint, long> parent, IChannel ch, IDataView input) : base(parent, ch, input, ModelUrlString) 265var ch = env.Start("Load Model"); 309var ch = Host.Start("Make Getter"); 316private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 347private Delegate MakePredictedLabelGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher)
Roberta\QATrainer.cs (10)
150using (var ch = Host.Start("TrainModel")) 189private readonly IChannel _channel; 192public Trainer(QATrainer parent, IChannel ch, IDataView input) 253using (var ch = (Parent.Host as IHostEnvironment).Start("Ensuring model file is present.")) 584using (var ch = Host.Start("Initialize Tokenizer")) 697var ch = env.Start("Load Model"); 766var ch = Host.Start("Make Getter"); 773private Delegate MakeScoreGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 800private Delegate MakePredictedAnswerGetter(DataViewRow input, IChannel ch, TensorCacher outputCacher) 833var ch = Host.Start("Make Getters");
TorchSharpBaseTrainer.cs (7)
103using (var ch = Host.Start("TrainModel")) 130private protected abstract TrainerBase CreateTrainer(TorchSharpBaseTrainer<TLabelCol, TTargetsCol> parent, IChannel ch, IDataView input); 145public TrainerBase(TorchSharpBaseTrainer<TLabelCol, TTargetsCol> parent, IChannel ch, IDataView input, string modelUrl) 167private protected abstract Module CreateModule(IChannel ch, IDataView input); 179using (var ch = (Parent.Host as IHostEnvironment).Start("Ensuring model file is present.")) 195public void Validate(IProgressChannel pch, IChannel ch, int epoch) 496var ch = Host.Start("Make Getters");
Microsoft.ML.Transforms (61)
CompositeTransformer.cs (1)
43using (var ch = h.Start("Loading Model"))
CountFeatureSelection.cs (1)
199using (var ch = _host.Start("Dropping Slots"))
ExpressionTransformer.cs (1)
106using (var ch = env.Start("LabmdaBinder.Run"))
GcnTransform.cs (2)
219using (var ch = env.Start("ValidateArgs")) 246using (var ch = env.Start("ValidateArgs"))
HashJoiningTransform.cs (1)
466protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
KeyToVectorMapping.cs (1)
125using (var ch = env.Start("ValidateArgs"))
LearnerFeatureSelection.cs (2)
98using (var ch = host.Start("Dropping Slots")) 273using (var ch = host.Start("Train"))
MissingValueIndicatorTransform.cs (1)
237protected override Delegate GetGetterCore(IChannel ch, DataViewRow input, int iinfo, out Action disposer)
MissingValueReplacing.cs (1)
328using (var ch = Host.Start("Computing Statistics"))
MissingValueReplacingUtils.cs (29)
17private static StatAggregator CreateStatAggregator(IChannel ch, DataViewType type, ReplacementKind? kind, bool bySlot, DataViewRowCursor cursor, int col) 150protected readonly IChannel Ch; 152protected StatAggregator(IChannel ch) 185protected StatAggregator(IChannel ch, DataViewRowCursor cursor, int col) 213protected StatAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 234protected StatAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col) 270protected MinMaxAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 307protected MinMaxAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 335protected MinMaxAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col, bool returnMax) 452public double GetCurrentValue(IChannel ch, long count) 472public double GetCurrentValue(IChannel ch, DataViewRowId count) 537public MeanAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col) 557public MeanAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 577public MeanAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col) 603public MinMaxAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 624public MinMaxAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 656public MinMaxAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col, bool returnMax) 695public ModeAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col) 714public ModeAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 733public ModeAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col) 763public MeanAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col) 781public MeanAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 799public MeanAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col) 821public MinMaxAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 842public MinMaxAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col, bool returnMax) 874public MinMaxAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col, bool returnMax) 919public ModeAggregatorOne(IChannel ch, DataViewRowCursor cursor, int col) 938public ModeAggregatorAcrossSlots(IChannel ch, DataViewRowCursor cursor, int col) 957public ModeAggregatorBySlot(IChannel ch, VectorDataViewType type, DataViewRowCursor cursor, int col)
MutualInformationFeatureSelection.cs (2)
172using (var ch = _host.Start("Selecting Slots")) 484using (var ch = _host.Start("Computing mutual information scores"))
OneHotEncoding.cs (1)
117using (var ch = h.Start("Load term data"))
OneHotHashEncoding.cs (1)
329using (var ch = _host.Start(nameof(OneHotHashEncodingEstimator)))
PermutationFeatureImportance.cs (1)
45using (var ch = host.Start("GetImportanceMetrics"))
RandomFourierFeaturizing.cs (1)
419using (var ch = env.Start("ValidateArgs"))
SvmLight\SvmLightLoader.cs (1)
680using (var ch = env.Start("Infer key transform"))
SvmLight\SvmLightSaver.cs (1)
96using (var ch = _host.Start("Saving"))
Text\LdaTransform.cs (2)
695using (var ch = env.Start("Train")) 822private static List<VBuffer<ReadOnlyMemory<char>>> Train(IHostEnvironment env, IChannel ch, IDataView inputData, LdaState[] states, params LatentDirichletAllocationEstimator.ColumnOptions[] columns)
Text\NgramHashingTransformer.cs (1)
340using (var ch = env.Start("ValidateArgs"))
Text\NgramTransform.cs (1)
417using (var ch = env.Start("ValidateArgs"))
Text\StopWordsRemovingTransformer.cs (5)
290using (var ch = Host.Start("Check resources")) 778private ILegacyDataLoader GetLoaderForStopwords(IChannel ch, string dataFile, 831private void LoadStopWords(IChannel ch, ReadOnlyMemory<char> stopwords, string dataFile, string stopwordsColumn, 931var ch = Host.Start("LoadStopWords"); 983using (var ch = Host.Start("Deserialization"))
Text\WordBagTransform.cs (1)
517using (var ch = env.Start("Create key data view"))
Text\WordEmbeddingsExtractor.cs (3)
110public void AddWordVector(IChannel ch, string word, float[] wordVector) 630using (var ch = Host.Start("Ensuring resources")) 676using (var ch = Host.Start(LoaderSignature))
Microsoft.ML.Vision (2)
DnnRetrainTransform.cs (1)
338using (var ch = Host.Start("Training TensorFlow model..."))
ImageClassificationTrainer.cs (1)
564var logger = Host.Start(nameof(ImageClassificationTrainer));