2 writes to _host
Microsoft.ML.Recommender (2)
MatrixFactorizationTrainer.cs (2)
361
_host
= env.Register(LoadNameValue);
410
_host
= env.Register(LoadNameValue);
20 references to _host
Microsoft.ML.Recommender (20)
MatrixFactorizationTrainer.cs (20)
364
_host
.CheckValue(options, nameof(options));
365
_host
.CheckUserArg(options.ApproximationRank > 0, nameof(options.ApproximationRank), posError);
366
_host
.CheckUserArg(!options.NumberOfThreads.HasValue || options.NumberOfThreads > 0, nameof(options.NumberOfThreads), posError);
367
_host
.CheckUserArg(options.NumberOfIterations > 0, nameof(options.NumberOfIterations), posError);
368
_host
.CheckUserArg(options.Lambda > 0, nameof(options.Lambda), posError);
369
_host
.CheckUserArg(options.LearningRate > 0, nameof(options.LearningRate), posError);
370
_host
.CheckUserArg(options.Alpha > 0, nameof(options.Alpha), posError);
438
_host
.CheckValue(context, nameof(context));
439
using (var ch =
_host
.Start("Training"))
450
_host
.AssertValue(ch);
481
int colCount = matrixColumnIndexColInfo.Type.GetKeyCountAsInt32(
_host
);
482
int rowCount = matrixRowIndexColInfo.Type.GetKeyCountAsInt32(
_host
);
500
predictor = new MatrixFactorizationModelParameters(
_host
, buffer, (KeyDataViewType)matrixColumnIndexColInfo.Type, (KeyDataViewType)matrixRowIndexColInfo.Type);
518
predictor = new MatrixFactorizationModelParameters(
_host
, buffer, (KeyDataViewType)matrixColumnIndexColInfo.Type, (KeyDataViewType)matrixRowIndexColInfo.Type);
529
return new SafeTrainingAndModelBuffer(
_host
, _fun, _k, _threads, 2 * _threads + 1,
549
using (var ch =
_host
.Start("Training"))
554
return new MatrixFactorizationPredictionTransformer(
_host
, model, trainData.Schema, MatrixColumnIndexName, MatrixRowIndexName);
569
_host
.CheckValue(inputSchema, nameof(inputSchema));
574
throw
_host
.ExceptSchemaMismatch(nameof(col), columnRole, cachedColumn.Name);
577
throw
_host
.ExceptSchemaMismatch(nameof(inputSchema), columnRole, cachedColumn.Name,