1 implementation of IHost
Microsoft.ML.Core (1)
Environment\HostEnvironmentBase.cs (1)
118public abstract class HostBase : HostEnvironmentBase<TEnv>, IHost
770 references to IHost
Microsoft.ML.Core (21)
CommandLine\CmdParser.cs (1)
209private readonly IHost _host;
Data\IHostEnvironment.cs (3)
64IHost Register(string name, int? seed = null, bool? verbose = null); 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)
EntryPoints\EntryPointUtils.cs (2)
91public static IHost CheckArgsAndCreateHost(IHostEnvironment env, string hostName, object input) 94var host = env.Register(hostName);
Environment\ConsoleEnvironment.cs (2)
394protected override IHost RegisterCore(HostEnvironmentBase<ConsoleEnvironment> source, string shortName, string parentFullName, Random rand, bool verbose) 487protected override IHost RegisterCore(HostEnvironmentBase<ConsoleEnvironment> source, string shortName, string parentFullName, Random rand, bool verbose)
Environment\HostEnvironmentBase.cs (13)
104if (child.TryGetTarget(out IHost host)) 135public new IHost Register(string name, int? seed = null, bool? verbose = null) 138IHost host; 141_children.RemoveAll(r => r.TryGetTarget(out IHost _) == false); 145_children.Add(new WeakReference<IHost>(host)); 366private readonly List<WeakReference<IHost>> _children; 382_children = new List<WeakReference<IHost>>(); 406_children = new List<WeakReference<IHost>>(); 414public IHost Register(string name, int? seed = null, bool? verbose = null) 417IHost host; 420_children.RemoveAll(r => r.TryGetTarget(out IHost _) == false); 430_children.Add(new WeakReference<IHost>(host)); 435protected abstract IHost RegisterCore(HostEnvironmentBase<TEnv> source, string shortName,
Microsoft.ML.Core.Tests (27)
UnitTests\TestHosts.cs (27)
30var mainHost = env.Register("Main"); 31var children = new ConcurrentDictionary<IHost, List<IHost>>(); 32var hosts = new BlockingCollection<Tuple<IHost, int>>(); 33hosts.Add(new Tuple<IHost, int>(mainHost.Register("1"), 1)); 34hosts.Add(new Tuple<IHost, int>(mainHost.Register("2"), 1)); 35hosts.Add(new Tuple<IHost, int>(mainHost.Register("3"), 1)); 36hosts.Add(new Tuple<IHost, int>(mainHost.Register("4"), 1)); 37hosts.Add(new Tuple<IHost, int>(mainHost.Register("5"), 1)); 47var newHost = randHostTuple.Item1.Register((randHostTuple.Item2 + 1).ToString()); 48hosts.Add(new Tuple<IHost, int>(newHost, randHostTuple.Item2 + 1)); 50children[randHostTuple.Item1] = new List<IHost>(); 56Queue<IHost> queue = new Queue<IHost>(); 59IHost rootHost = null; 80var currentHost = queue.Dequeue(); 93var mainHost = env.Register("Main"); 94var children = new ConcurrentDictionary<IHost, List<IHost>>(); 95var hosts = new BlockingCollection<Tuple<IHost, int>>(); 96hosts.Add(new Tuple<IHost, int>(mainHost.Register("1"), 1)); 97hosts.Add(new Tuple<IHost, int>(mainHost.Register("2"), 1)); 98hosts.Add(new Tuple<IHost, int>(mainHost.Register("3"), 1)); 99hosts.Add(new Tuple<IHost, int>(mainHost.Register("4"), 1)); 100hosts.Add(new Tuple<IHost, int>(mainHost.Register("5"), 1)); 105var newHost = tuple.Item1.Register((tuple.Item2 + 1).ToString()); 106hosts.Add(new Tuple<IHost, int>(newHost, tuple.Item2 + 1));
Microsoft.ML.Data (371)
Commands\CrossValidationCommand.cs (2)
441private IHost GetHost() 477var host = GetHost();
Commands\DataCommand.cs (1)
66protected readonly IHost Host;
Commands\SavePredictorCommand.cs (1)
56private readonly IHost _host;
Commands\TypeInfoCommand.cs (1)
33private readonly IHost _host;
Data\DataViewUtils.cs (1)
114IDataView view, IEnumerable<DataViewSchema.Column> columnsNeeded, IHost host, Random rand)
Data\RowCursorUtils.cs (2)
510private readonly IHost _host; // A channel provider is required for creating the cursor. 551public Cursor(IHost host, OneRowDataView parent, bool[] active)
DataLoadSave\Binary\BinaryLoader.cs (8)
695private readonly IHost _host; 763private BinaryLoader(Arguments args, IHost host, Stream stream, bool leaveOpen) 823private BinaryLoader(IHost host, ModelLoadContext ctx, Stream stream) 886IHost h = env.Register(LoadName); 922IHost h = env.Register(LoadName); 978var h = env.Register(LoadName); 1010var h = env.Register(LoadName); 2133var host = _env.Register(LoadName);
DataLoadSave\Binary\BinarySaver.cs (1)
54private readonly IHost _host;
DataLoadSave\Binary\CodecFactory.cs (1)
29private readonly IHost _host;
DataLoadSave\CompositeDataLoader.cs (2)
44private CompositeDataLoader(IHost host, ModelLoadContext ctx) 54IHost h = env.Register(LoaderSignature);
DataLoadSave\Database\DatabaseLoader.cs (4)
39private readonly IHost _host; 59private DatabaseLoader(IHost host, ModelLoadContext ctx) 72IHost h = env.Register(RegistrationName); 703private readonly IHost _host;
DataLoadSave\EstimatorChain.cs (1)
21private readonly IHost _host;
DataLoadSave\LegacyCompositeDataLoader.cs (13)
81private readonly IHost _host; 97var h = env.Register(RegistrationName); 116var h = env.Register(RegistrationName); 123private static ILegacyDataLoader CreateCore(IHost host, ILegacyDataLoader srcLoader, 180var h = env.Register(RegistrationName); 190private static ILegacyDataLoader ApplyTransformsCore(IHost host, ILegacyDataLoader srcLoader, 279var h = env.Register(RegistrationName); 296var h = env.Register(RegistrationName); 325var h = env.Register(RegistrationName); 350var h = env.Register(RegistrationName); 422private LegacyCompositeDataLoader(IHost host, TransformEx[] transforms) 450private static ILegacyDataLoader LoadTransforms(ModelLoadContext ctx, ILegacyDataLoader srcLoader, IHost host, Func<string, bool> isTransformTagAccepted) 523var h = env.Register(RegistrationName);
DataLoadSave\Text\TextLoader.cs (6)
1139private readonly IHost _host; 1309private static bool TryParseSchema(IHost host, IMultiStreamSource files, 1389var h = env.Register(RegistrationName); 1398private TextLoader(IHost host, ModelLoadContext ctx) 1480IHost h = env.Register(RegistrationName); 1640private readonly IHost _host;
DataLoadSave\Text\TextSaver.cs (2)
258private readonly IHost _host; 530private readonly IHost _host;
DataLoadSave\TransformWrapper.cs (3)
20private readonly IHost _host; 65private protected readonly IHost Host; 68private protected TrainedWrapperEstimatorBase(IHost host)
DataLoadSave\Transpose\TransposeLoader.cs (5)
145private IHost Host { get { return _parent._host; } } 327private readonly IHost _host; 425private TransposeLoader(IHost host, ModelLoadContext ctx, IMultiStreamSource file) 458private TransposeLoader(IHost host, ModelLoadContext ctx, IDataView schemaView) 488IHost h = env.Register(LoadName);
DataLoadSave\Transpose\TransposeSaver.cs (1)
46private readonly IHost _host;
DataLoadSave\TrivialEstimator.cs (2)
20private protected readonly IHost Host; 25private protected TrivialEstimator(IHost host, TTransformer transformer)
DataView\AppendRowsDataView.cs (1)
37private readonly IHost _host;
DataView\ArrayDataViewBuilder.cs (2)
20private readonly IHost _host; 200private readonly IHost _host;
DataView\BatchDataViewMapperBase.cs (1)
19protected readonly IHost Host;
DataView\CacheDataView.cs (2)
29private readonly IHost _host; 1282var host = parent._host;
DataView\DataViewConstructionUtils.cs (2)
209protected readonly IHost Host; 450protected readonly IHost Host;
DataView\EmptyDataView.cs (1)
18private readonly IHost _host;
DataView\RowToRowMapperTransform.cs (2)
111private RowToRowMapperTransform(IHost host, ModelLoadContext ctx, IDataView input) 124var h = env.Register(RegistrationName);
DataView\Transposer.cs (9)
29private readonly IHost _host; 58var h = env.Register("Transposer"); 78var host = env.Register("Transposer"); 85private Transposer(IHost host, IDataView view, bool forceSave, int[] columns) 203private static int[] CheckNamesAndGetIndices(IHost host, IDataView view, string[] columns) 219private static int[] CheckIndices(IHost host, IDataView view, int[] columns) 733private readonly IHost _host; 739public DataViewSlicer(IHost host, IDataView input, int[] toSlice) 1415private readonly IHost _host;
DataView\TypedCursor.cs (1)
71private readonly IHost _host;
DataView\ZipDataView.cs (3)
28private readonly IHost _host; 35var host = env.Register(RegistrationName); 45private ZipDataView(IHost host, IDataView[] sources)
Dirty\ChooseColumnsByIndexTransform.cs (2)
205private ChooseColumnsByIndexTransform(IHost host, ModelLoadContext ctx, IDataView input) 218var h = env.Register(RegistrationName);
Dirty\ModelParametersBase.cs (1)
21private protected readonly IHost Host;
EntryPoints\EntryPointNode.cs (2)
406private readonly IHost _host; 984private readonly IHost _host;
EntryPoints\InputBase.cs (2)
58public static TOut Train<TArg, TOut>(IHost host, TArg input, 90var createCacheHost = host.Register(registrationName);
EntryPoints\SchemaManipulation.cs (3)
21var host = env.Register("ConcatColumns"); 33var host = env.Register("SelectColumns"); 45var host = env.Register("CopyColumns");
EntryPoints\SelectRows.cs (4)
22var host = env.Register(RangeFilter.LoaderSignature); 35var host = env.Register("SkipFilter"); 47var host = env.Register("TakeFilter"); 59var host = env.Register("SkipTakeFilter");
EntryPoints\SummarizePredictor.cs (1)
35var host = env.Register("LinearRegressionPredictor");
Evaluators\AnomalyDetectionEvaluator.cs (1)
817var host = env.Register("EvaluateAnomalyDetection");
Evaluators\BinaryClassifierEvaluator.cs (5)
1506var host = env.Register("EvaluateBinary"); 1532private static void MatchColumns(IHost host, MamlEvaluatorBase.ArgumentsBase input, out string label, out string weight, out string name) 1546private static IDataView ExtractWarnings(IHost host, Dictionary<string, IDataView> metrics) 1559private static IDataView ExtractOverallMetrics(IHost host, Dictionary<string, IDataView> metrics, IMamlEvaluator evaluator) 1574private static IDataView ExtractConfusionMatrix(IHost host, Dictionary<string, IDataView> metrics)
Evaluators\ClusteringEvaluator.cs (1)
861var host = env.Register("EvaluateClustering");
Evaluators\EvaluatorBase.cs (3)
22protected readonly IHost Host; 243protected readonly IHost Host; 473protected readonly IHost Host;
Evaluators\EvaluatorUtils.cs (2)
1357public static string GetConfusionTableAsFormattedString(IHost host, IDataView confusionDataView, out string weightedConfusionTable, bool binary = true, int sample = -1) 1380public static ConfusionMatrix GetConfusionMatrix(IHost host, IDataView confusionDataView, bool binary = true, int sample = -1, bool getWeighted = false)
Evaluators\MamlEvaluator.cs (1)
79private protected readonly IHost Host;
Evaluators\Metrics\BinaryClassificationMetrics.cs (1)
98internal BinaryClassificationMetrics(IHost host, DataViewRow overallResult, IDataView confusionMatrix)
Evaluators\Metrics\CalibratedBinaryClassificationMetrics.cs (1)
64internal CalibratedBinaryClassificationMetrics(IHost host, DataViewRow overallResult, IDataView confusionMatrix)
Evaluators\Metrics\ConfusionMatrix.cs (2)
50private readonly IHost _host; 65internal ConfusionMatrix(IHost host, double[] precision, double[] recall, double[][] confusionTableCounts,
Evaluators\Metrics\MulticlassClassificationMetrics.cs (1)
118internal MulticlassClassificationMetrics(IHost host, DataViewRow overallResult, int topKPredictionCount, IDataView confusionMatrix)
Evaluators\MulticlassClassificationEvaluator.cs (1)
1094var host = env.Register("EvaluateMultiClass");
Evaluators\MultiOutputRegressionEvaluator.cs (1)
777var host = env.Register("EvaluateMultiOutput");
Evaluators\QuantileRegressionEvaluator.cs (1)
562var host = env.Register("EvaluateQuantileRegression");
Evaluators\RankingEvaluator.cs (2)
603var h = env.Register(RegistrationName); 1084var host = env.Register("EvaluateRanker");
Evaluators\RegressionEvaluator.cs (1)
389var host = env.Register("EvaluateRegression");
MLContext.cs (1)
167IHost IHostEnvironment.Register(string name, int? seed, bool? verbose) => _env.Register(name, seed, verbose);
Model\Pfa\BoundPfaContext.cs (1)
43private readonly IHost _host;
Model\Pfa\PfaContext.cs (1)
27private readonly IHost _host;
Prediction\Calibrator.cs (12)
192private protected readonly IHost Host; 1070private readonly IHost _host; 1188private readonly IHost _host; 1424protected readonly IHost Host; 1653private readonly IHost _host; 1691private readonly IHost _host; 1953private readonly IHost _host; 2155var host = env.Register("Platt"); 2166var host = env.Register("Naive"); 2177var host = env.Register("PAV"); 2188var host = env.Register("FixedPlatt"); 2205internal static TOut CalibratePredictor<TOut>(IHost host, CalibrateInputBase input,
Scorers\BinaryClassifierScorer.cs (2)
143private BinaryClassifierScorer(IHost host, ModelLoadContext ctx, IDataView input) 161var h = env.Register(RegistrationName);
Scorers\ClusteringScorer.cs (2)
56private ClusteringScorer(IHost host, ModelLoadContext ctx, IDataView input) 66var h = env.Register(RegistrationName);
Scorers\GenericScorer.cs (2)
180private GenericScorer(IHost host, ModelLoadContext ctx, IDataView input) 194var h = env.Register(RegistrationName);
Scorers\MulticlassClassificationScorer.cs (6)
84private readonly IHost _host; 131private LabelNameBindableMapper(IHost host, ModelLoadContext ctx) 164var h = env.Register(LoaderSignature); 254private readonly IHost _host; 523private MulticlassClassificationScorer(IHost host, ModelLoadContext ctx, IDataView input) 536var h = env.Register(RegistrationName);
Scorers\PredictedLabelScorerBase.cs (1)
311private protected PredictedLabelScorerBase(IHost host, ModelLoadContext ctx, IDataView input,
Scorers\PredictionTransformer.cs (16)
58private protected readonly IHost Host; 81private protected PredictionTransformerBase(IHost host, TModel model, DataViewSchema trainSchema) 95private protected PredictionTransformerBase(IHost host, ModelLoadContext ctx) 109private protected PredictionTransformerBase(IHost host, ModelLoadContext ctx, TModel model) 116private void InitializeLogic(IHost host, ModelLoadContext ctx) 223/// <param name="host">The local instance of <see cref="IHost"/>.</param> 227private protected SingleFeaturePredictionTransformerBase(IHost host, TModel model, DataViewSchema trainSchema, string featureColumn) 241private protected SingleFeaturePredictionTransformerBase(IHost host, ModelLoadContext ctx) 256private protected SingleFeaturePredictionTransformerBase(IHost host, ModelLoadContext ctx, TModel model) 420internal BinaryPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model) 502internal MulticlassPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model) 585internal RegressionPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model) 633internal RankingPredictionTransformer(IHostEnvironment env, ModelLoadContext ctx, IHost host, TModel model) 785internal static object Create(IHostEnvironment env, ModelLoadContext ctx, IHost host, IPredictorProducing<float> model, Type predictionTransformerType) 796internal static object Create(IHostEnvironment env, ModelLoadContext ctx, IHost host, IPredictorProducing<VBuffer<float>> model, Type predictionTransformerType) 816typeof(IHost),
Scorers\RowToRowScorerBase.cs (1)
49private protected RowToRowScorerBase(IHost host, ModelLoadContext ctx, IDataView input)
Training\TrainerEstimatorBase.cs (3)
45private protected readonly IHost Host; 58private protected TrainerEstimatorBase(IHost host, 187private protected TrainerEstimatorBaseWithGroupId(IHost host,
Transforms\BootstrapSamplingTransformer.cs (3)
109private BootstrapSamplingTransformer(IHost host, ModelLoadContext ctx, IDataView input) 156var h = env.Register(RegistrationName); 259var h = EntryPointUtils.CheckArgsAndCreateHost(env, "BootstrapSample", input);
Transforms\ColumnConcatenatingEstimator.cs (1)
41private readonly IHost _host;
Transforms\ColumnSelecting.cs (3)
162private readonly IHost _host; 523private readonly IHost _host; 655private readonly IHost _host;
Transforms\FeatureContributionCalculationTransformer.cs (1)
370var host = env.Register(nameof(FeatureContributionCalculatingTransformer));
Transforms\GenerateNumberTransform.cs (3)
287private GenerateNumberTransform(IHost host, ModelLoadContext ctx, IDataView input) 303var h = env.Register(RegistrationName); 488var h = EntryPointUtils.CheckArgsAndCreateHost(env, "GenerateNumber", input);
Transforms\Hashing.cs (3)
281var host = env.Register(RegistrationName); 288private HashingTransformer(IHost host, ModelLoadContext ctx) 1888private readonly IHost _host;
Transforms\InvertHashUtils.cs (2)
444public static void LoadAll(IHost host, ModelLoadContext ctx, int infoLim, out VBuffer<ReadOnlyMemory<char>>[] keyValues, out VectorDataViewType[] kvTypes) 478public static void SaveAll(IHost host, ModelSaveContext ctx, int infoLim, VBuffer<ReadOnlyMemory<char>>[] keyValues)
Transforms\KeyToValue.cs (2)
119var host = env.Register(nameof(KeyToValueMappingTransformer)); 125private KeyToValueMappingTransformer(IHost host, ModelLoadContext ctx)
Transforms\KeyToVector.cs (2)
164var host = env.Register(RegistrationName); 176private KeyToVectorMappingTransformer(IHost host, ModelLoadContext ctx)
Transforms\LabelConvertTransform.cs (2)
90private LabelConvertTransform(IHost host, ModelLoadContext ctx, IDataView input) 105var h = env.Register(RegistrationName);
Transforms\LabelIndicatorTransform.cs (4)
82IHost h = env.Register(LoaderSignature); 93IHost h = env.Register(LoaderSignature); 147private LabelIndicatorTransform(IHost host, ModelLoadContext ctx, IDataView input) 234var host = env.Register("LabelIndictator");
Transforms\NAFilter.cs (2)
123public NAFilter(IHost host, ModelLoadContext ctx, IDataView input) 162var h = env.Register(RegistrationName);
Transforms\NopTransform.cs (4)
26private readonly IHost _host; 73var h = env.Register(RegistrationName); 80private NopTransform(IHost host, ModelLoadContext ctx, IDataView input) 148var host = env.Register("Nop");
Transforms\NormalizeColumn.cs (34)
407protected readonly IHost Host; 410private AffineColumnFunction(IHost host) 430public static AffineColumnFunction Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 454protected ImplOne(IHost host, TFloat scale, TFloat offset) 481protected ImplVec(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset) 525protected readonly IHost Host; 528private CdfColumnFunction(IHost host) 549public static CdfColumnFunction Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 575protected ImplOne(IHost host, TFloat mean, TFloat stddev, bool useLog) 603protected ImplVec(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog) 657protected readonly IHost Host; 659protected BinColumnFunction(IHost host) 685public static BinColumnFunction Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 721protected IHost Host; 726protected OneColumnFunctionBuilderBase(IHost host, long lim, ValueGetter<TFloat> getSrc) 756protected IHost Host; 762protected VecColumnFunctionBuilderBase(IHost host, long lim, ValueGetter<VBuffer<TFloat>> getSrc) 791protected readonly IHost Host; 799protected SupervisedBinFunctionBuilderBase(IHost host, long lim, int labelColId, DataViewRow dataRow) 882protected OneColumnSupervisedBinFunctionBuilderBase(IHost host, long lim, int valueColId, int labelColId, 911protected VecColumnSupervisedBinFunctionBuilderBase(IHost host, long lim, int valueColId, int labelColId, DataViewRow dataRow) 966public static IColumnFunctionBuilder CreateBuilder(MinMaxArguments args, IHost host, 979public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.MinMaxColumnOptions column, IHost host, 1003public static IColumnFunctionBuilder CreateBuilder(MeanVarArguments args, IHost host, 1017public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, 1043public static IColumnFunctionBuilder CreateBuilder(LogMeanVarArguments args, IHost host, 1056public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, 1083public static IColumnFunctionBuilder CreateBuilder(BinArguments args, IHost host, 1097public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.BinningColumnOptions column, IHost host, 1123public static IColumnFunctionBuilder CreateBuilder(SupervisedBinArguments args, IHost host, 1150public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, 1157private static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, 1195public static IColumnFunctionBuilder CreateBuilder(RobustScalingArguments args, IHost host, 1210public static IColumnFunctionBuilder CreateBuilder(NormalizingEstimator.RobustScalingColumnOptions column, IHost host,
Transforms\NormalizeColumnDbl.cs (42)
645public static IColumnFunction Create(IHost host, TFloat scale, TFloat offset) 650public static IColumnFunction Create(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset) 660public ImplOne(IHost host, TFloat scale, TFloat offset) 665public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 724public ImplVec(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset) 729public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc) 971public static IColumnFunction Create(IHost host, TFloat mean, TFloat stddev, bool useLog) 976public static IColumnFunction Create(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog) 985public ImplOne(IHost host, TFloat mean, TFloat stddev, bool useLog) 990public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 1050public ImplVec(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog) 1055public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc) 1145public static IColumnFunction Create(IHost host, TFloat[] binUpperBounds, bool fixZero) 1150public static IColumnFunction Create(IHost host, TFloat[][] binUpperBounds, bool fixZero) 1163public ImplOne(IHost host, TFloat[] binUpperBounds, bool fixZero) 1173public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 1236public ImplVec(IHost host, TFloat[][] binUpperBounds, bool fixZero) 1258public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc) 1526protected MinMaxOneColumnFunctionBuilderBase(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc) 1546private MinMaxOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc) 1551public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, DataViewType srcType, 1574protected MinMaxVecColumnFunctionBuilderBase(IHost host, int cv, long lim, bool fix, ValueGetter<VBuffer<TFloat>> getSrc) 1595private MinMaxVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix, 1601public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, VectorDataViewType srcType, 1654private MeanVarOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc, bool useLog, bool useCdf, bool useSampleVariance) 1665public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, DataViewType srcType, 1672public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, DataViewType srcType, 1735private MeanVarVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix, 1746public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType, 1754public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType, 1859private BinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, ValueGetter<TFloat> getSrc) 1867public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, DataViewType srcType, 1903private BinVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix, int numBins, 1916public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, VectorDataViewType srcType, 1980private SupervisedBinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2000public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2018private SupervisedBinVecColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2040public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2061private RobustScalerOneColumnFunctionBuilder(IHost host, long lim, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<double> getSrc) 2084public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, DataViewType srcType, 2117private RobustScalerVecFunctionBuilder(IHost host, long lim, int vectorSize, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<VBuffer<double>> getSrc) 2153public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, VectorDataViewType srcType,
Transforms\NormalizeColumnSng.cs (42)
803public static IColumnFunction Create(IHost host, TFloat scale, TFloat offset) 808public static IColumnFunction Create(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset) 818public ImplOne(IHost host, TFloat scale, TFloat offset) 823public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 881public ImplVec(IHost host, TFloat[] scale, TFloat[] offset, int[] indicesNonZeroOffset) 886public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc) 1131public static IColumnFunction Create(IHost host, TFloat mean, TFloat stddev, bool useLog) 1136public static IColumnFunction Create(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog) 1145public ImplOne(IHost host, TFloat mean, TFloat stddev, bool useLog) 1150public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 1210public ImplVec(IHost host, TFloat[] mean, TFloat[] stddev, bool useLog) 1215public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc) 1306public static IColumnFunction Create(IHost host, TFloat[] binUpperBounds, bool fixZero) 1311public static IColumnFunction Create(IHost host, TFloat[][] binUpperBounds, bool fixZero) 1324public ImplOne(IHost host, TFloat[] binUpperBounds, bool fixZero) 1334public static new ImplOne Create(ModelLoadContext ctx, IHost host, DataViewType typeSrc) 1397public ImplVec(IHost host, TFloat[][] binUpperBounds, bool fixZero) 1419public static ImplVec Create(ModelLoadContext ctx, IHost host, VectorDataViewType typeSrc) 1689protected MinMaxOneColumnFunctionBuilderBase(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc) 1709private MinMaxOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc) 1714public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, DataViewType srcType, 1737protected MinMaxVecColumnFunctionBuilderBase(IHost host, int cv, long lim, bool fix, ValueGetter<VBuffer<TFloat>> getSrc) 1758private MinMaxVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix, 1764public static IColumnFunctionBuilder Create(NormalizingEstimator.MinMaxColumnOptions column, IHost host, VectorDataViewType srcType, 1817private MeanVarOneColumnFunctionBuilder(IHost host, long lim, bool fix, ValueGetter<TFloat> getSrc, bool useLog, bool useCdf, bool useSampleVariance) 1828public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, DataViewType srcType, 1835public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, DataViewType srcType, 1898private MeanVarVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix, 1909public static IColumnFunctionBuilder Create(NormalizingEstimator.MeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType, 1917public static IColumnFunctionBuilder Create(NormalizingEstimator.LogMeanVarianceColumnOptions column, IHost host, VectorDataViewType srcType, 2022private BinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, ValueGetter<TFloat> getSrc) 2030public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, DataViewType srcType, 2066private BinVecColumnFunctionBuilder(IHost host, int cv, long lim, bool fix, int numBins, 2079public static IColumnFunctionBuilder Create(NormalizingEstimator.BinningColumnOptions column, IHost host, VectorDataViewType srcType, 2144private SupervisedBinOneColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2164public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2182private SupervisedBinVecColumnFunctionBuilder(IHost host, long lim, bool fix, int numBins, int minBinSize, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2204public static IColumnFunctionBuilder Create(NormalizingEstimator.SupervisedBinningColumOptions column, IHost host, int valueColumnId, int labelColumnId, DataViewRow dataRow) 2225private RobustScalerOneColumnFunctionBuilder(IHost host, long lim, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<TFloat> getSrc) 2248public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, DataViewType srcType, 2281private RobustScalerVecFunctionBuilder(IHost host, long lim, int vectorSize, bool centerData, uint quantileMin, uint quantileMax, ValueGetter<VBuffer<TFloat>> getSrc) 2315public static IColumnFunctionBuilder Create(NormalizingEstimator.RobustScalingColumnOptions column, IHost host, VectorDataViewType srcType,
Transforms\Normalizer.cs (11)
144internal abstract IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor); 187internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 205internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 223internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 239internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 263internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 283internal override IColumnFunctionBuilder MakeBuilder(IHost host, int srcIndex, DataViewType srcType, DataViewRowCursor cursor) 287private readonly IHost _host; 570var host = env.Register($"Column_{i:000}"); 612private NormalizingTransformer(IHost host, ModelLoadContext ctx) 635private NormalizingTransformer(IHost host, ModelLoadContext ctx, IDataView input)
Transforms\NormalizeUtils.cs (6)
24internal delegate void SignatureLoadColumnFunction(ModelLoadContext ctx, IHost host, DataViewType typeSrc); 83var host = env.Register("MinMax"); 95var host = env.Register("MeanVar"); 107var host = env.Register("LogMeanVar"); 119var host = env.Register("Bin"); 131var host = env.Register("RobustScaling");
Transforms\OneToOneTransformerBase.cs (3)
20private protected OneToOneTransformerBase(IHost host, params (string outputColumnName, string inputColumnName)[] columns) : base(host) 37private protected OneToOneTransformerBase(IHost host, ModelLoadContext ctx) : base(host) 96protected OneToOneMapperBase(IHost host, OneToOneTransformerBase parent, DataViewSchema inputSchema) : base(host, inputSchema, parent)
Transforms\PerGroupTransformBase.cs (1)
88protected readonly IHost Host;
Transforms\RangeFilter.cs (2)
134private RangeFilter(IHost host, ModelLoadContext ctx, IDataView input) 170var h = env.Register(RegistrationName);
Transforms\RowShufflingTransformer.cs (2)
129private RowShufflingTransformer(IHost host, ModelLoadContext ctx, IDataView input) 155var h = env.Register(RegistrationName);
Transforms\RowToRowTransformerBase.cs (4)
16private protected readonly IHost Host; 19private protected RowToRowTransformerBase(IHost host) 59protected readonly IHost Host; 64protected MapperBase(IHost host, DataViewSchema inputSchema, RowToRowTransformerBase parent)
Transforms\SkipTakeFilter.cs (1)
154var h = env.Register(RegistrationName);
Transforms\TrainAndScoreTransformer.cs (1)
233var host = env.Register("TrainAndScoreTransform");
Transforms\TransformBase.cs (9)
23protected readonly IHost Host; 37protected TransformBase(IHost host, IDataView input) 115protected RowToRowTransformBase(IHost host, IDataView input) 136private protected FilterBase(IHost host, IDataView input) 162protected RowToRowMapperTransformBase(IHost host, IDataView input) 331var host = parent.Host; 368var host = parent.Host; 512private protected OneToOneTransformBase(IHost host, OneToOneColumn[] column, 526private protected OneToOneTransformBase(IHost host, ModelLoadContext ctx,
Transforms\TypeConverting.cs (3)
42var h = EntryPointUtils.CheckArgsAndCreateHost(env, "Convert", input); 239var host = env.Register(RegistrationName); 250private TypeConvertingTransformer(IHost host, ModelLoadContext ctx)
Transforms\ValueMapping.cs (1)
983private static byte[] GetBytesFromDataView(IHost host, IDataView lookup, string keyColumn, string valueColumn)
Transforms\ValueToKeyMappingEstimator.cs (1)
133private readonly IHost _host;
Transforms\ValueToKeyMappingTransformer.cs (2)
311var host = env.Register(RegistrationName); 319private ValueToKeyMappingTransformer(IHost host, ModelLoadContext ctx)
Utilities\LocalEnvironment.cs (2)
66protected override IHost RegisterCore(HostEnvironmentBase<LocalEnvironment> source, string shortName, string parentFullName, Random rand, bool verbose) 115protected override IHost RegisterCore(HostEnvironmentBase<LocalEnvironment> source, string shortName, string parentFullName, Random rand, bool verbose)
Utilities\ModelFileUtils.cs (2)
285var h = env.Register("RoleMappingUtils"); 345var h = env.Register("RoleMappingUtils");
Utilities\TimerScope.cs (2)
21private readonly IHost _host; 23public TimerScope(IHost host, IChannel ch)
Microsoft.ML.Ensemble (22)
EnsembleUtils.cs (1)
18public static RoleMappedData SelectFeatures(IHost host, RoleMappedData data, BitArray features)
EntryPoints\CreateEnsemble.cs (6)
135var host = env.Register("CombineModels"); 170var host = env.Register("CombineModels"); 202var host = env.Register("CombineModels"); 229var host = env.Register("CombineModels"); 253var host = env.Register("CombineModels"); 280var host = env.Register("CombineModels");
EntryPoints\Ensemble.cs (3)
20var host = env.Register("TrainBinaryEnsemble"); 33var host = env.Register("TrainMultiClassEnsemble"); 46var host = env.Register("TrainRegressionEnsemble");
EntryPoints\PipelineEnsemble.cs (1)
30var host = env.Register("PipelineEnsemblePredictor");
OutputCombiners\BaseAverager.cs (1)
12protected readonly IHost Host;
OutputCombiners\BaseMultiCombiner.cs (1)
16protected readonly IHost Host;
OutputCombiners\BaseStacking.cs (2)
29private protected readonly IHost Host; 126var host = env.Register(Stacking.LoadName);
OutputCombiners\Median.cs (1)
21private readonly IHost _host;
OutputCombiners\Voting.cs (1)
18private readonly IHost _host;
PipelineEnsemble.cs (1)
379protected readonly IHost Host;
Selector\FeatureSelector\RandomFeatureSelector.cs (1)
34private readonly IHost _host;
Selector\SubModelSelector\BaseSubModelSelector.cs (1)
15protected readonly IHost Host;
Selector\SubsetSelector\BaseSubsetSelector.cs (1)
23protected readonly IHost Host;
Trainer\EnsembleTrainerBase.cs (1)
61private protected readonly IHost Host;
Microsoft.ML.EntryPoints (22)
CVSplit.cs (1)
50var host = env.Register(ModuleName);
DataViewReference.cs (1)
32var host = env.Register("DataViewReference");
FeatureCombiner.cs (5)
49var host = env.Register(featureCombiner); 87private static IDataView ApplyKeyToVec(List<KeyToVectorMappingEstimator.ColumnOptions> ktv, IDataView viewTrain, IHost host) 231var host = env.Register("PrepareClassificationLabel"); 267var host = env.Register("ConvertPredictedLabel"); 289var host = env.Register("PrepareRegressionLabel");
ImportTextData.cs (2)
39var host = env.Register("ImportTextData"); 59var host = env.Register("ImportTextData");
JsonUtils\ExecuteGraphCommand.cs (1)
36private readonly IHost _host;
JsonUtils\GraphRunner.cs (1)
23private readonly IHost _host;
ModelOperations.cs (4)
87var host = env.Register("CombineTransformModels"); 103var host = env.Register("CombineModels"); 118var host = env.Register("CombineTwoModels"); 135var host = env.Register("CombineOvaModels");
OneVersusAllMacro.cs (1)
117var host = env.Register("OVA Macro GetNumberOfClasses");
PermutationFeatureImportance.cs (1)
25var host = env.Register("Pfi");
ScoreColumnSelector.cs (1)
69var host = env.Register("ScoreModel");
ScoreModel.cs (3)
71var host = env.Register("ScoreModel"); 103var host = env.Register("ScoreModelUsingTransform"); 119var host = env.Register("MakeScoringTransform");
TrainTestSplit.cs (1)
46var host = env.Register(ModuleName);
Microsoft.ML.FastTree (31)
FastTree.cs (10)
918private protected readonly IHost Host; 929private DataConverter(RoleMappedData data, IHost host, double[][] binUpperBounds, float maxLabel, 955public static DataConverter Create(RoleMappedData data, IHost host, int maxBins, 974public static DataConverter Create(RoleMappedData data, IHost host, double[][] binUpperBounds, 1266public DiskImpl(RoleMappedData data, IHost host, int maxBins, float maxLabel, PredictionKind kind, 1275public DiskImpl(RoleMappedData data, IHost host, 1759private MemImpl(RoleMappedData data, IHost host, double[][] binUpperBounds, float maxLabel, bool dummy, 1781public MemImpl(RoleMappedData data, IHost host, int maxBins, float maxLabel, bool noFlocks, int minDocsPerLeaf, 1791public MemImpl(RoleMappedData data, IHost host, double[][] binUpperBounds, float maxLabel, 2718private readonly IHost _host;
FastTreeClassification.cs (1)
437var host = env.Register("TrainFastTree");
FastTreeRanking.cs (1)
1086var host = env.Register("TrainFastTree");
FastTreeRegression.cs (1)
537var host = env.Register("TrainFastTree");
FastTreeTweedie.cs (1)
573var host = env.Register("TrainTweeedie");
GamModelParameters.cs (1)
743public long? SaveIfNeeded(IHost host, IChannel ch, string outFile)
GamTrainer.cs (2)
689var host = env.Register("TrainGAM"); 703var host = env.Register("TrainGAM");
RandomForestClassification.cs (1)
413var host = env.Register("TrainFastForest");
RandomForestRegression.cs (1)
598var host = env.Register("TrainFastForest");
SumupPerformanceCommand.cs (1)
69private readonly IHost _host;
Training\TreeLearners\FastForestLeastSquaresTreeLearner.cs (1)
18double minDocsPercentageForCategoricalSplit, Bundle bundling, int minDocsForCategoricalSplit, double bias, IHost host)
Training\TreeLearners\LeastSquaresRegressionTreeLearner.cs (2)
72protected readonly IHost Host; 125Bundle bundling, int minDocsForCategoricalSplit, double bias, IHost host)
TreeEnsemble\TreeEnsembleCombiner.cs (1)
18private readonly IHost _host;
TreeEnsembleFeaturizer.cs (4)
390private readonly IHost _host; 615var host = env.Register("Tree Featurizer Transform"); 696var host = env.Register("Tree Featurizer Transform"); 826var host = env.Register("TreeFeaturizerTransform");
Utils\FastTreeIniFileUtils.cs (2)
16IHost host, InternalTreeEnsemble ensemble, RoleMappedSchema schema, ICalibrator calibrator, 31private static string AddCalibrationToIni(IHost host, string ini, ICalibrator calibrator)
Utils\RegressionTreeBaseUtils.cs (1)
23public static IDataView RegressionTreeEnsembleAsIDataView(IHost host, double bias, IReadOnlyList<double> treeWeights, IReadOnlyList<RegressionTreeBase> trees)
Microsoft.ML.ImageAnalytics (14)
EntryPoints\ImageAnalytics.cs (5)
20var h = EntryPointUtils.CheckArgsAndCreateHost(env, "ImageLoaderTransform", input); 33var h = EntryPointUtils.CheckArgsAndCreateHost(env, "ImageResizerTransform", input); 46var h = EntryPointUtils.CheckArgsAndCreateHost(env, "ImagePixelExtractorTransform", input); 59var h = EntryPointUtils.CheckArgsAndCreateHost(env, "ImageGrayscaleTransform", input); 72var h = EntryPointUtils.CheckArgsAndCreateHost(env, "VectorToImageTransform", input);
ImageGrayscale.cs (2)
110var host = env.Register(RegistrationName); 116private ImageGrayscalingTransformer(IHost host, ModelLoadContext ctx)
ImageLoader.cs (1)
136private ImageLoadingTransformer(IHost host, ModelLoadContext ctx)
ImagePixelExtractor.cs (2)
217var host = env.Register(RegistrationName); 224private ImagePixelExtractingTransformer(IHost host, ModelLoadContext ctx)
ImageResizer.cs (2)
179var host = env.Register(RegistrationName); 187private ImageResizingTransformer(IHost host, ModelLoadContext ctx)
VectorToImageTransform.cs (2)
237private VectorToImageConvertingTransformer(IHost host, ModelLoadContext ctx) 255var h = env.Register(RegistrationName);
Microsoft.ML.KMeansClustering (7)
KMeansPlusPlusTrainer.cs (7)
294var host = env.Register("TrainKMeans"); 334IHost host, int numThreads, IChannel ch, FeatureFloatVectorCursor.Factory cursorFactory, 785public static void Initialize(IHost host, int numThreads, IChannel ch, FeatureFloatVectorCursor.Factory cursorFactory, 992IHost host, int numThreads, IChannel ch, FeatureFloatVectorCursor.Factory cursorFactory, 1351public static void Train(IHost host, int numThreads, IChannel ch, FeatureFloatVectorCursor.Factory cursorFactory, 1592IHost host, int numThreads, 1712IHost baseHost,
Microsoft.ML.LightGbm (10)
LightGbmBinaryTrainer.cs (2)
181internal override Dictionary<string, object> ToDictionary(IHost host) 317var host = env.Register("TrainLightGBM");
LightGbmMulticlassTrainer.cs (2)
122internal override Dictionary<string, object> ToDictionary(IHost host) 399var host = env.Register("TrainLightGBM");
LightGbmRankingTrainer.cs (2)
165internal override Dictionary<string, object> ToDictionary(IHost host) 329var host = env.Register("TrainLightGBM");
LightGbmRegressionTrainer.cs (2)
150internal override Dictionary<string, object> ToDictionary(IHost host) 277var host = env.Register("TrainLightGBM");
LightGbmTrainerBase.cs (1)
260internal virtual Dictionary<string, object> ToDictionary(IHost host)
WrappedLightGbmTraining.cs (1)
18public static Booster Train(IHost host, IChannel ch, IProgressChannel pch,
Microsoft.ML.Maml (4)
ChainCommand.cs (1)
32private readonly IHost _host;
HelpCommand.cs (1)
441private readonly IHost _host;
MAML.cs (1)
105var mainHost = env.Register("Main");
VersionCommand.cs (1)
20private readonly IHost _host;
Microsoft.ML.Mkl.Components (4)
OlsLinearRegression.cs (1)
678var host = env.Register("TrainOLS");
SymSgdClassificationTrainer.cs (2)
289var host = env.Register("TrainSymSGD"); 572public void RestartLoading(bool needShuffle, IHost host)
VectorWhitening.cs (1)
849private readonly IHost _host;
Microsoft.ML.OnnxConverter (1)
OnnxContextImpl.cs (1)
32private readonly IHost _host;
Microsoft.ML.Parquet (13)
ParquetLoader.cs (4)
95private readonly IHost _host; 132private ParquetLoader(Arguments args, IHost host, Stream stream) 176private ParquetLoader(IHost host, ModelLoadContext ctx, IMultiStreamSource files) 242IHost host = env.Register(LoaderName);
PartitionedFileLoader.cs (3)
159private readonly IHost _host; 210private PartitionedFileLoader(IHost host, ModelLoadContext ctx, IMultiStreamSource files) 246IHost host = env.Register(RegistrationName);
PartitionedPathParser.cs (6)
101private readonly IHost _host; 118private SimplePartitionedPathParser(IHost host, ModelLoadContext ctx) 144IHost host = env.Register(LoadName); 212private readonly IHost _host; 231private ParquetPartitionedPathParser(IHost host, ModelLoadContext ctx) 257IHost host = env.Register(LoadName);
Microsoft.ML.PCA (6)
PcaTrainer.cs (2)
298private static void Project(IHost host, FeatureFloatVectorCursor.Factory cursorFactory, ref VBuffer<float> mean, float[][] omega, float[][] y, out long numBad) 400var host = env.Register("TrainPCAAnomaly");
PcaTransformer.cs (4)
223private PrincipalComponentAnalysisTransformer(IHost host, ModelLoadContext ctx) 269var host = env.Register(nameof(PrincipalComponentAnalysisTransformer)); 684var h = EntryPointUtils.CheckArgsAndCreateHost(env, "Pca", input); 773private readonly IHost _host;
Microsoft.ML.Recommender (3)
MatrixFactorizationPredictor.cs (1)
53private readonly IHost _host;
MatrixFactorizationTrainer.cs (1)
290private readonly IHost _host;
SafeTrainingAndModelBuffer.cs (1)
213private readonly IHost _host;
Microsoft.ML.StandardTrainers (21)
FactorizationMachine\FactorizationMachineTrainer.cs (2)
178private readonly IHost _host; 577var host = env.Register("Train a field-aware factorization machine");
LdSvm\LdSvmTrainer.cs (1)
672var host = env.Register("TrainLDSVM");
Standard\LogisticRegression\LogisticRegression.cs (1)
469var host = env.Register("TrainLRBinary");
Standard\LogisticRegression\MulticlassLogisticRegression.cs (1)
400var host = env.Register("TrainLRMultiClass");
Standard\MulticlassClassification\MetaMulticlassTrainer.cs (1)
43private protected readonly IHost Host;
Standard\MulticlassClassification\MulticlassNaiveBayesTrainer.cs (1)
211var host = env.Register("TrainMultiClassNaiveBayes");
Standard\MulticlassClassification\OneVersusAllTrainer.cs (3)
298internal static OneVersusAllModelParameters Create(IHost host, OutputFormula outputFormula, TScalarPredictor[] predictors) 338internal static OneVersusAllModelParameters Create(IHost host, bool useProbability, TScalarPredictor[] predictors) 349internal static OneVersusAllModelParameters Create(IHost host, TScalarPredictor[] predictors)
Standard\Online\AveragedPerceptron.cs (1)
227var host = env.Register("TrainAP");
Standard\Online\LinearSvm.cs (1)
327var host = env.Register("TrainLinearSVM");
Standard\Online\OnlineGradientDescent.cs (1)
193var host = env.Register("TrainOGD");
Standard\Online\OnlineLinear.cs (1)
121protected readonly IHost ParentHost;
Standard\PoissonRegression\PoissonRegression.cs (1)
215var host = env.Register("TrainPoisson");
Standard\SdcaBinary.cs (2)
2470var host = env.Register("TrainHogwildSGD"); 2494var host = env.Register("TrainSDCA");
Standard\SdcaMulticlass.cs (1)
678var host = env.Register("TrainSDCA");
Standard\SdcaRegression.cs (1)
217var host = env.Register("TrainSDCA");
Standard\Simple\SimpleTrainers.cs (1)
206private readonly IHost _host;
Standard\StochasticTrainerBase.cs (1)
17public StochasticTrainerBase(IHost host, SchemaShape.Column feature, SchemaShape.Column label, SchemaShape.Column weight = default)
Microsoft.ML.Sweeper (10)
Algorithms\Grid.cs (1)
41protected readonly IHost Host;
Algorithms\KdoSweeper.cs (1)
81private readonly IHost _host;
Algorithms\SmacSweeper.cs (1)
64private readonly IHost _host;
Algorithms\SweeperProbabilityUtils.cs (3)
16public SweeperProbabilityUtils(IHost host) 160public static float[] ParameterSetAsFloatArray(IHost host, IValueGenerator[] sweepParams, ParameterSet ps, bool expandCategoricals = true) 212public static ParameterSet FloatArrayAsParameterSet(IHost host, IValueGenerator[] sweepParams, float[] array, bool expandedCategoricals = true)
AsyncSweeper.cs (1)
174private readonly IHost _host;
ConfigRunner.cs (1)
62protected readonly IHost Host;
SweepCommand.cs (1)
51private readonly IHost _host;
SweepResultEvaluator.cs (1)
30private readonly IHost _host;
Microsoft.ML.TensorFlow (4)
TensorflowTransform.cs (4)
334internal static (TF_DataType[] tfInputTypes, TensorShape[] tfInputShapes, (Operation, int)[]) GetInputInfo(IHost host, Session session, string[] inputs, int batchSize = 1) 381internal static (TF_DataType[] tfOutputTypes, DataViewType[] outputTypes, (Operation, int)[]) GetOutputInfo(IHost host, Session session, string[] outputs, bool treatOutputAsBatched) 802var h = EntryPointUtils.CheckArgsAndCreateHost(env, "TensorFlow", input); 978private readonly IHost _host;
Microsoft.ML.Tests (1)
TrainerEstimators\TreeEstimators.cs (1)
524var host = (mlContext as IHostEnvironment).Register("Training LightGBM...");
Microsoft.ML.TimeSeries (34)
AdaptiveSingularSpectrumSequenceModeler.cs (1)
162private readonly IHost _host;
SequentialAnomalyDetectionTransformBase.cs (1)
302private readonly IHost _host;
SequentialForecastingTransformBase.cs (1)
99private readonly IHost _host;
SequentialTransformBase.cs (4)
72protected IHost Host; 114public void InitState(int windowSize, int initialWindowSize, SequentialTransformBase<TInput, TOutput, TState> parentTransform, IHost host) 236private static IDataView CreateLambdaTransform(IHost host, IDataView input, string outputColumnName, string inputColumnName, 275IHost host, IDataView input, DataViewType outputColTypeOverride = null)
SequentialTransformerBase.cs (12)
38private protected IHost Host; 97IHost host) 116public void InitState(SequentialTransformerBase<TInput, TOutput, TState> parentTransform, IHost host) 324internal readonly IHost Host; 356private protected SequentialTransformerBase(IHost host, int windowSize, int initialWindowSize, 374private protected SequentialTransformerBase(IHost host, int windowSize, int initialWindowSize, 383private protected SequentialTransformerBase(IHost host, ModelLoadContext ctx) 476public SequentialDataTransform(IHost host, SequentialTransformerBase<TInput, TOutput, TState> parent, 492private static IDataView CreateLambdaTransform(IHost host, IDataView input, string inputColumnName, 695public Cursor(IHost host, SequentialDataTransform parent, DataViewRowCursor input) 773private TimeSeriesRowToRowMapperTransform(IHost host, ModelLoadContext ctx, IDataView input) 786var h = env.Register(RegistrationName);
SrCnnTransformBase.cs (1)
145private readonly IHost _host;
SsaChangePointDetector.cs (1)
232private readonly IHost _host;
SSaForecasting.cs (1)
234private readonly IHost _host;
SsaSpikeDetector.cs (1)
213private readonly IHost _host;
TimeSeriesProcessing.cs (9)
21var h = EntryPointUtils.CheckArgsAndCreateHost(env, "ExponentialAverageTransform", input); 35var h = EntryPointUtils.CheckArgsAndCreateHost(env, "IidChangePointDetector", options); 49var h = EntryPointUtils.CheckArgsAndCreateHost(env, "IidSpikeDetector", options); 63var h = EntryPointUtils.CheckArgsAndCreateHost(env, "PercentileThresholdTransform", input); 77var h = EntryPointUtils.CheckArgsAndCreateHost(env, "PValueTransform", input); 91var h = EntryPointUtils.CheckArgsAndCreateHost(env, "SlidingWindowTransform", input); 105var h = EntryPointUtils.CheckArgsAndCreateHost(env, "SsaChangePointDetector", options); 119var h = EntryPointUtils.CheckArgsAndCreateHost(env, "SsaSpikeDetector", options); 133var h = EntryPointUtils.CheckArgsAndCreateHost(env, "SsaForecasting", options);
TimeSeriesUtils.cs (2)
26internal static FixedSizeQueue<Single> DeserializeFixedSizeQueueSingle(BinaryReader reader, IHost host) 55internal static FixedSizeQueue<double> DeserializeFixedSizeQueueDouble(BinaryReader reader, IHost host)
Microsoft.ML.TorchSharp (14)
AutoFormerV2\ObjectDetectionTrainer.cs (3)
117private protected readonly IHost Host; 285public void Train(IHost host, IDataView input, IProgressChannel pch) 319private bool TrainStep(IHost host,
NasBert\NerTrainer.cs (1)
109private protected override TorchSharpBaseTransformer<VBuffer<uint>, TargetType> CreateTransformer(IHost host, Options options, torch.nn.Module model, DataViewSchema.DetachedColumn labelColumn)
NasBert\SentenceSimilarityTrainer.cs (1)
107private protected override TorchSharpBaseTransformer<float, float> CreateTransformer(IHost host, Options options, torch.nn.Module model, DataViewSchema.DetachedColumn labelColumn)
NasBert\TextClassificationTrainer.cs (1)
107private protected override TorchSharpBaseTransformer<uint, long> CreateTransformer(IHost host, Options options, torch.nn.Module model, DataViewSchema.DetachedColumn labelColumn)
Roberta\QATrainer.cs (3)
98private protected readonly IHost Host; 269public void Train(IHost host, IDataView input, IProgressChannel pch) 302private bool TrainStep(IHost host,
TorchSharpBaseTrainer.cs (5)
84private protected readonly IHost Host; 129private protected abstract TorchSharpBaseTransformer<TLabelCol, TTargetsCol> CreateTransformer(IHost host, TorchSharpBaseTrainer<TLabelCol, TTargetsCol>.Options options, Module model, DataViewSchema.DetachedColumn labelColumn); 269public void Train(IHost host, IDataView input) 299private bool TrainStep(IHost host, 371private protected TorchSharpBaseTransformer(IHost host) : base(host)
Microsoft.ML.Transforms (127)
CompositeTransformer.cs (1)
42var h = env.Register(RegistrationName);
CountFeatureSelection.cs (2)
72private readonly IHost _host; 230var host = env.Register(RegistrationName);
CustomMappingFilter.cs (1)
19protected readonly IHost Host;
CustomMappingTransformer.cs (2)
22private readonly IHost _host; 112private readonly IHost _host;
Dracula\CountTableTransformer.cs (4)
76private readonly IHost _host; 521var host = env.Register(LoaderSignature); 529private CountTableTransformer(IHost host, ModelLoadContext ctx) 743var h = EntryPointUtils.CheckArgsAndCreateHost(env, "CountTable", input);
Dracula\CountTargetEncodingTransformer.cs (5)
118private readonly IHost _host; 307private readonly IHost _host; 340private CountTargetEncodingTransformer(IHost host, ModelLoadContext ctx) 369var host = env.Register(LoaderSignature); 547var h = EntryPointUtils.CheckArgsAndCreateHost(env, nameof(CountTargetEncoder), input);
Dracula\Featurizer.cs (1)
20private readonly IHost _host;
Dracula\MultiCountTable.cs (3)
38protected readonly IHost Host; 60private readonly IHost _host; 238private readonly IHost _host;
EntryPoints\SelectFeatures.cs (2)
22var host = env.Register("CountSelect"); 37var host = env.Register("MutualInformationSelect");
EntryPoints\TextAnalytics.cs (8)
26var h = EntryPointUtils.CheckArgsAndCreateHost(env, "FeaturizeTextEstimator", input); 41var h = EntryPointUtils.CheckArgsAndCreateHost(env, "DelimitedTokenizeTransform", input); 56var h = EntryPointUtils.CheckArgsAndCreateHost(env, "NGramTransform", input); 71var h = EntryPointUtils.CheckArgsAndCreateHost(env, "TermTransform", input); 86var h = EntryPointUtils.CheckArgsAndCreateHost(env, "SentimentAnalyzer", input); 104var h = EntryPointUtils.CheckArgsAndCreateHost(env, "CharTokenize", input); 122var h = EntryPointUtils.CheckArgsAndCreateHost(env, "LightLda", input); 143var h = EntryPointUtils.CheckArgsAndCreateHost(env, "WordEmbeddings", input);
Expression\LambdaBinder.cs (1)
24private readonly IHost _host;
ExpressionTransformer.cs (1)
71private readonly IHost _host;
GcnTransform.cs (4)
265var host = env.Register(nameof(LpNormNormalizingTransformer)); 285private LpNormNormalizingTransformer(IHost host, ModelLoadContext ctx) 741var h = EntryPointUtils.CheckArgsAndCreateHost(env, "LpNormalize", input); 756var h = EntryPointUtils.CheckArgsAndCreateHost(env, "GcNormalize", input);
GroupTransform.cs (3)
125var h = env.Register(RegistrationName); 129private GroupTransform(IHost host, ModelLoadContext ctx, IDataView input) 677var h = EntryPointUtils.CheckArgsAndCreateHost(env, "GroupTransform", input);
HashJoiningTransform.cs (3)
224private HashJoiningTransform(IHost host, ModelLoadContext ctx, IDataView input) 280var h = env.Register(RegistrationName); 671var h = EntryPointUtils.CheckArgsAndCreateHost(env, "HashJoin", input);
KeyToVectorMapping.cs (2)
100var host = env.Register(RegistrationName); 108private KeyToBinaryVectorMappingTransformer(IHost host, ModelLoadContext ctx)
LearnerFeatureSelection.cs (3)
90var host = env.Register(RegistrationName); 266private static void TrainCore(IHost host, IDataView input, Options options, ref VBuffer<Single> scores) 309var host = env.Register(RegistrationName);
LoadTransform.cs (1)
68var h = env.Register("LoadTransform");
MissingValueHandlingTransformer.cs (1)
136var h = env.Register("Categorical");
MissingValueIndicatorTransform.cs (2)
85private MissingValueIndicatorTransform(IHost host, ModelLoadContext ctx, IDataView input) 101var h = env.Register(RegistrationName);
MissingValueReplacing.cs (3)
223private MissingValueReplacingTransformer(IHost host, ModelLoadContext ctx) 463var host = env.Register(LoadName); 1013private readonly IHost _host;
MutualInformationFeatureSelection.cs (5)
107private readonly IHost _host; 261var host = env.Register(RegistrationName); 395internal static float[][] TrainCore(IHost host, IDataView input, string labelColumnName, string[] columns, int numBins, int[] colSizes) 415private readonly IHost _host; 427public Impl(IHost host)
NAHandling.cs (5)
24var h = EntryPointUtils.CheckArgsAndCreateHost(env, MissingValueDroppingTransformer.ShortName, input); 39var h = EntryPointUtils.CheckArgsAndCreateHost(env, NAFilter.ShortName, input); 54var h = EntryPointUtils.CheckArgsAndCreateHost(env, "NAHandle", input); 69var h = EntryPointUtils.CheckArgsAndCreateHost(env, "NAIndicator", input); 84var h = EntryPointUtils.CheckArgsAndCreateHost(env, "NAReplace", input);
OneHotEncoding.cs (6)
97var h = env.Register("Categorical"); 263private readonly IHost _host; 356var host = env.Register("CatTransformDict"); 370var host = env.Register("CatTransformDict"); 384var host = env.Register("Term"); 398var host = env.Register("KeyToValue");
OneHotHashEncoding.cs (2)
146var h = env.Register("Categorical"); 297private readonly IHost _host;
OptionalColumnTransform.cs (3)
284private OptionalColumnTransform(IHost host, ModelLoadContext ctx, IDataView input) 297var h = env.Register(RegistrationName); 589var h = EntryPointUtils.CheckArgsAndCreateHost(env, "OptionalColumn", input);
PermutationFeatureImportance.cs (1)
34var host = env.Register(nameof(PermutationFeatureImportance<TModel, TMetric, TResult>));
ProduceIdTransform.cs (2)
109private ProduceIdTransform(IHost host, ModelLoadContext ctx, IDataView input) 122var h = env.Register(LoaderSignature);
RandomFourierFeaturizing.cs (4)
107public TransformInfo(IHost host, ApproximatedKernelMappingEstimator.ColumnOptions column, int d, float avgDist) 393private ApproximatedKernelTransformer(IHost host, ModelLoadContext ctx) 441var host = env.Register(nameof(ApproximatedKernelTransformer)); 690private readonly IHost _host;
StatefulCustomMappingTransformer.cs (1)
26private readonly IHost _host;
StatefulFilterTransform.cs (1)
30private readonly IHost _host;
SvmLight\SvmLightLoader.cs (4)
401private readonly IHost _host; 531private readonly IHost _host; 592private SvmLightLoader(IHost host, ModelLoadContext ctx) 613IHost h = env.Register(LoaderSignature);
SvmLight\SvmLightSaver.cs (1)
55private readonly IHost _host;
Text\LdaTransform.cs (3)
670private LatentDirichletAllocationTransformer(IHost host, ModelLoadContext ctx) : base(host, ctx) 736var h = env.Register(RegistrationName); 1048private readonly IHost _host;
Text\NgramHashingTransformer.cs (2)
367var host = env.Register(nameof(NgramHashingTransformer)); 1095private readonly IHost _host;
Text\NgramTransform.cs (3)
379private NgramExtractingTransformer(IHost host, ModelLoadContext ctx) : 441var host = env.Register(nameof(NgramExtractingTransformer)); 892private readonly IHost _host;
Text\SentimentAnalyzingTransform.cs (1)
55var h = env.Register(LoaderSignature);
Text\StopWordsRemovingTransformer.cs (4)
224private StopWordsRemovingTransformer(IHost host, ModelLoadContext ctx) : 247var host = env.Register(RegistrationName); 975private CustomStopWordsRemovingTransformer(IHost host, ModelLoadContext ctx) : 1023var host = env.Register(RegistrationName);
Text\TextFeaturizingEstimator.cs (4)
292private readonly IHost _host; 378var host = parent._host; 437var h = _host; 677private readonly IHost _host;
Text\TextNormalizing.cs (2)
147var host = env.Register(RegistrationName); 153private TextNormalizingTransformer(IHost host, ModelLoadContext ctx)
Text\TokenizingByCharacters.cs (2)
127private TokenizingByCharactersTransformer(IHost host, ModelLoadContext ctx) : 159var host = env.Register(RegistrationName);
Text\WordBagTransform.cs (4)
113var h = env.Register(RegistrationName); 286public Mapper(IHost host, DataViewSchema inputSchema, RowToRowTransformerBase parent) 460var h = env.Register(LoaderSignature); 574var h = env.Register(LoaderSignature);
Text\WordEmbeddingsExtractor.cs (3)
247private WordEmbeddingTransformer(IHost host, ModelLoadContext ctx) 271IHost h = env.Register(RegistrationName); 765private readonly IHost _host;
Text\WordHashBagProducingTransform.cs (4)
89var h = env.Register(RegistrationName); 325var h = env.Register(LoaderSignature); 382var h = env.Register(LoaderSignature); 419var h = env.Register(LoaderSignature);
Text\WordTokenizing.cs (2)
129private WordTokenizingTransformer(IHost host, ModelLoadContext ctx) : 169var host = env.Register(RegistrationName);
Text\WrappedTextTransformers.cs (2)
41private readonly IHost _host; 253private readonly IHost _host;
UngroupTransform.cs (3)
126var h = env.Register(LoaderSignature); 130private UngroupTransform(IHost host, ModelLoadContext ctx, IDataView input) 686var h = EntryPointUtils.CheckArgsAndCreateHost(env, "UngroupTransform", input);
Microsoft.ML.Vision (3)
DnnRetrainTransform.cs (3)
577internal static (TF_DataType[] tfInputTypes, TensorShape[] tfInputShapes, (Operation, int)[]) GetInputInfo(IHost host, Session session, string[] inputs, int batchSize = 1) 624internal static (TF_DataType[] tfOutputTypes, DataViewType[] outputTypes, (Operation, int)[]) GetOutputInfo(IHost host, Session session, string[] outputs) 1222private readonly IHost _host;