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");
569
var data = GetData(
_host
, options.NumberOfRows, dataSample);
570
_featureCount = InferMax(
_host
, data) + (ulong)(_indicesKind == FeatureIndices.ZeroBased ? 1 : 0);
572
_host
.Assert(_featureCount <= int.MaxValue);
580
var 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);
607
ctx.LoadModelOrNull<ITransformer, SignatureLoadModel>(
_host
, out _keyVectorsToIndexVectors, "KeysToIndices");
623
_host
.CheckValue(ctx, nameof(ctx));
641
var data = GetData(
_host
, null, new MultiFileSource(null));
646
new CustomMappingTransformer<IntermediateInput, Indices>(
_host
, indexParser.ParseIndices, null);
648
return CreateOutputTransformer(
_host
, (int)_featureCount,
752
_host
.CheckValue(input, nameof(input));
754
var data = GetData(
_host
, null, input);
757
new CustomMappingTransformer<IntermediateInput, Indices>(
_host
, indexParser.ParseIndices, null);
759
return CreateOutputTransformer(
_host
, (int)_featureCount, _indicesKind == FeatureIndices.Names, data.Schema).Transform(data);