Exemplo n.º 1
0
 public RfmTrainingWorker(
     ITableStoreFactory tableStoreFactory,
     IServiceProvider provider,
     ILogger <RfmTrainingWorker> logger,
     AllowedModelsDictionary modelsDictionary,
     IReadOnlyDictionary <string, string> options,
     IServiceProvider serviceProvider)
     : this(tableStoreFactory, provider, logger, modelsDictionary, RfmTrainingWorkerOptionsDictionary.Parse(options), serviceProvider)
 {
 }
Exemplo n.º 2
0
 public RfmTrainingWorker(
     ITableStoreFactory tableStoreFactory,
     IServiceProvider provider,
     ILogger <RfmTrainingWorker> logger,
     AllowedModelsDictionary modelsDictionary,
     RfmTrainingWorkerOptionsDictionary options,
     IServiceProvider serviceProvider)
 {
     _tableStore      = tableStoreFactory.Create(options.SchemaName);
     _options         = options;
     _logger          = logger;
     _model           = modelsDictionary.CreateModel <Interaction>(provider, options.ModelType, options.ModelOptions);
     _serviceProvider = serviceProvider;
 }