Esempio n. 1
0
 protected override void Dispose(bool disposing)
 {
     if (disposing)
     {
         mgr = null;
     }
     base.Dispose(disposing);
 }
Esempio n. 2
0
 public App(
     TelemetryClient telemetryClient,
     ISampleManager sampleManager,
     IOptions <SampleSettings> sampleSettings
     )
 {
     _telemetryClient = telemetryClient;
     _sampleManager   = sampleManager;
     _sampleSettings  = sampleSettings.Value;
 }
Esempio n. 3
0
 /// <summary>
 /// Constructor for ML
 /// </summary>
 /// <param name="experimentResultManager"></param>
 /// <param name="modelManager"></param>
 /// <param name="modelCategoryManager"></param>
 /// <param name="lblManager"></param>
 /// <param name="sampleMgr"></param>
 /// <param name="trainingDataSetMgr"></param>
 /// <param name="userManager"></param>
 /// <param name="logger"></param>
 public MachineLearningClientAPI(IExperimentResultManager experimentResultManager, IModelManager modelManager, IModelCategoryManager modelCategoryManager,
                                 ILabelManager lblManager, ISampleManager sampleMgr, ITrainingDataSetManager trainingDataSetMgr,
                                 UserManager <AppUser> userManager, IAdminLogger logger) : base(userManager, logger)
 {
     this._experimentResultManager = experimentResultManager ?? throw new ArgumentNullException(nameof(experimentResultManager));
     this._modelManager            = modelManager ?? throw new ArgumentNullException(nameof(modelManager));
     this._modelCategoryManager    = modelCategoryManager ?? throw new ArgumentNullException(nameof(modelCategoryManager));
     this._lblManager         = lblManager ?? throw new ArgumentNullException(nameof(lblManager));
     this._sampleManager      = sampleMgr ?? throw new ArgumentNullException(nameof(sampleMgr));
     this._trainingDataSetMgr = trainingDataSetMgr ?? throw new ArgumentNullException(nameof(trainingDataSetMgr));
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="SampleRepository" /> class.
        /// </summary>
        /// <param name="modelProvider">The model provider.</param>
        /// <param name="storefrontContext">The storefront context.</param>
        /// <param name="sampleManager">The sample manager.</param>
        public SampleRepository(
            IModelProvider modelProvider,
            IStorefrontContext storefrontContext,
            ISampleManager sampleManager)
        {
            Assert.ArgumentNotNull(modelProvider, "modelProvider");
            Assert.ArgumentNotNull(storefrontContext, "storefrontContext");
            Assert.ArgumentNotNull(sampleManager, "sampleManager");

            ModelProvider     = modelProvider;
            StorefrontContext = storefrontContext;
            SampleManager     = sampleManager;
        }
Esempio n. 5
0
 public SamplesController(ISampleManager mgr)
 {
     this.mgr = mgr;
 }
Esempio n. 6
0
 public SampleController(ISampleManager sampleManager)
 {
     app = sampleManager;
 }
 public SampleController(ISampleManager sampleManager)
 {
     _sampleManager = sampleManager;
 }
Esempio n. 8
0
 public SampleController(ISampleManager sampleManager, UserManager <AppUser> userManager, IAdminLogger logger)
     : base(userManager, logger)
 {
     _sampleManager = sampleManager;
 }