2 writes to _host
Microsoft.ML.Transforms (2)
SvmLight\SvmLightLoader.cs (2)
555_host = env.Register(LoaderSignature); 597_host = host;
17 references to _host
Microsoft.ML.Transforms (17)
SvmLight\SvmLightLoader.cs (17)
558_host.CheckUserArg(options.InputSize >= 0, nameof(options.InputSize), "Maximum feature index must be positive, or 0 to infer it from the dataset"); 569var data = GetData(_host, options.NumberOfRows, dataSample); 570_featureCount = InferMax(_host, data) + (ulong)(_indicesKind == FeatureIndices.ZeroBased ? 1 : 0); 572_host.Assert(_featureCount <= int.MaxValue); 580var data = GetData(_host, options.NumberOfRows, dataSample); 581_keyVectorsToIndexVectors = new ValueToKeyMappingEstimator(_host, nameof(IntermediateInput.FeatureKeys)).Fit(data); 583_host.Assert(keyCol.HasValue); 585_host.AssertValue(keyType); 607ctx.LoadModelOrNull<ITransformer, SignatureLoadModel>(_host, out _keyVectorsToIndexVectors, "KeysToIndices"); 623_host.CheckValue(ctx, nameof(ctx)); 641var data = GetData(_host, null, new MultiFileSource(null)); 646new CustomMappingTransformer<IntermediateInput, Indices>(_host, indexParser.ParseIndices, null); 648return CreateOutputTransformer(_host, (int)_featureCount, 752_host.CheckValue(input, nameof(input)); 754var data = GetData(_host, null, input); 757new CustomMappingTransformer<IntermediateInput, Indices>(_host, indexParser.ParseIndices, null); 759return CreateOutputTransformer(_host, (int)_featureCount, _indicesKind == FeatureIndices.Names, data.Schema).Transform(data);