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)); 439using (var ch = _host.Start("Training")) 450_host.AssertValue(ch); 481int colCount = matrixColumnIndexColInfo.Type.GetKeyCountAsInt32(_host); 482int rowCount = matrixRowIndexColInfo.Type.GetKeyCountAsInt32(_host); 500predictor = new MatrixFactorizationModelParameters(_host, buffer, (KeyDataViewType)matrixColumnIndexColInfo.Type, (KeyDataViewType)matrixRowIndexColInfo.Type); 518predictor = new MatrixFactorizationModelParameters(_host, buffer, (KeyDataViewType)matrixColumnIndexColInfo.Type, (KeyDataViewType)matrixRowIndexColInfo.Type); 529return new SafeTrainingAndModelBuffer(_host, _fun, _k, _threads, 2 * _threads + 1, 549using (var ch = _host.Start("Training")) 554return new MatrixFactorizationPredictionTransformer(_host, model, trainData.Schema, MatrixColumnIndexName, MatrixRowIndexName); 569_host.CheckValue(inputSchema, nameof(inputSchema)); 574throw _host.ExceptSchemaMismatch(nameof(col), columnRole, cachedColumn.Name); 577throw _host.ExceptSchemaMismatch(nameof(inputSchema), columnRole, cachedColumn.Name,