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");
568
var data = GetData(
_host
, options.NumberOfRows, dataSample);
569
_featureCount = InferMax(
_host
, data) + (ulong)(_indicesKind == FeatureIndices.ZeroBased ? 1 : 0);
571
_host
.Assert(_featureCount <= int.MaxValue);
579
var 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);
606
ctx.LoadModelOrNull<ITransformer, SignatureLoadModel>(
_host
, out _keyVectorsToIndexVectors, "KeysToIndices");
622
_host
.CheckValue(ctx, nameof(ctx));
640
var data = GetData(
_host
, null, new MultiFileSource(null));
645
new CustomMappingTransformer<IntermediateInput, Indices>(
_host
, indexParser.ParseIndices, null);
647
return CreateOutputTransformer(
_host
, (int)_featureCount,
751
_host
.CheckValue(input, nameof(input));
753
var data = GetData(
_host
, null, input);
756
new CustomMappingTransformer<IntermediateInput, Indices>(
_host
, indexParser.ParseIndices, null);
758
return CreateOutputTransformer(
_host
, (int)_featureCount, _indicesKind == FeatureIndices.Names, data.Schema).Transform(data);