2 writes to _host
Microsoft.ML.Recommender (2)
MatrixFactorizationTrainer.cs (2)
348
_host
= env.Register(LoadNameValue);
397
_host
= env.Register(LoadNameValue);
20 references to _host
Microsoft.ML.Recommender (20)
MatrixFactorizationTrainer.cs (20)
351
_host
.CheckValue(options, nameof(options));
352
_host
.CheckUserArg(options.ApproximationRank > 0, nameof(options.ApproximationRank), posError);
353
_host
.CheckUserArg(!options.NumberOfThreads.HasValue || options.NumberOfThreads > 0, nameof(options.NumberOfThreads), posError);
354
_host
.CheckUserArg(options.NumberOfIterations > 0, nameof(options.NumberOfIterations), posError);
355
_host
.CheckUserArg(options.Lambda > 0, nameof(options.Lambda), posError);
356
_host
.CheckUserArg(options.LearningRate > 0, nameof(options.LearningRate), posError);
357
_host
.CheckUserArg(options.Alpha > 0, nameof(options.Alpha), posError);
425
_host
.CheckValue(context, nameof(context));
426
using (var ch =
_host
.Start("Training"))
437
_host
.AssertValue(ch);
468
int colCount = matrixColumnIndexColInfo.Type.GetKeyCountAsInt32(
_host
);
469
int rowCount = matrixRowIndexColInfo.Type.GetKeyCountAsInt32(
_host
);
487
predictor = new MatrixFactorizationModelParameters(
_host
, buffer, (KeyDataViewType)matrixColumnIndexColInfo.Type, (KeyDataViewType)matrixRowIndexColInfo.Type);
505
predictor = new MatrixFactorizationModelParameters(
_host
, buffer, (KeyDataViewType)matrixColumnIndexColInfo.Type, (KeyDataViewType)matrixRowIndexColInfo.Type);
516
return new SafeTrainingAndModelBuffer(
_host
, _fun, _k, _threads, 2 * _threads + 1,
536
using (var ch =
_host
.Start("Training"))
541
return new MatrixFactorizationPredictionTransformer(
_host
, model, trainData.Schema, MatrixColumnIndexName, MatrixRowIndexName);
556
_host
.CheckValue(inputSchema, nameof(inputSchema));
561
throw
_host
.ExceptSchemaMismatch(nameof(col), columnRole, cachedColumn.Name);
564
throw
_host
.ExceptSchemaMismatch(nameof(inputSchema), columnRole, cachedColumn.Name,