2 writes to _host
Microsoft.ML.Transforms (2)
SvmLight\SvmLightLoader.cs (2)
554_host = env.Register(LoaderSignature); 596_host = host;
17 references to _host
Microsoft.ML.Transforms (17)
SvmLight\SvmLightLoader.cs (17)
557_host.CheckUserArg(options.InputSize >= 0, nameof(options.InputSize), "Maximum feature index must be positive, or 0 to infer it from the dataset"); 568var data = GetData(_host, options.NumberOfRows, dataSample); 569_featureCount = InferMax(_host, data) + (ulong)(_indicesKind == FeatureIndices.ZeroBased ? 1 : 0); 571_host.Assert(_featureCount <= int.MaxValue); 579var data = GetData(_host, options.NumberOfRows, dataSample); 580_keyVectorsToIndexVectors = new ValueToKeyMappingEstimator(_host, nameof(IntermediateInput.FeatureKeys)).Fit(data); 582_host.Assert(keyCol.HasValue); 584_host.AssertValue(keyType); 606ctx.LoadModelOrNull<ITransformer, SignatureLoadModel>(_host, out _keyVectorsToIndexVectors, "KeysToIndices"); 622_host.CheckValue(ctx, nameof(ctx)); 640var data = GetData(_host, null, new MultiFileSource(null)); 645new CustomMappingTransformer<IntermediateInput, Indices>(_host, indexParser.ParseIndices, null); 647return CreateOutputTransformer(_host, (int)_featureCount, 751_host.CheckValue(input, nameof(input)); 753var data = GetData(_host, null, input); 756new CustomMappingTransformer<IntermediateInput, Indices>(_host, indexParser.ParseIndices, null); 758return CreateOutputTransformer(_host, (int)_featureCount, _indicesKind == FeatureIndices.Names, data.Schema).Transform(data);