예제 #1
0
 public InferenceHistoryLoader(
     AConnection db,
     ASafeLog log,
     int customerID,
     DateTime now,
     bool includeTryOutData,
     int historyLength,
     BucketRepository bucketRepo,
     TimeoutSourceRepository timeoutSourceRepo,
     EtlCodeRepository etlCodeRepo
     ) : base(
         db,
         log,
         0,
         customerID,
         now,
         historyLength,
         includeTryOutData,
         0,
         bucketRepo,
         timeoutSourceRepo,
         etlCodeRepo
         )
 {
 }         // constructor
예제 #2
0
        }         // FindBucket

        private BucketRepository LoadBuckets()
        {
            var repo = new BucketRepository(this.db, this.log);

            repo.Load();
            return(repo);
        }         // LoadBuckets
예제 #3
0
        protected AInferenceLoaderBase(
            AConnection db,
            ASafeLog log,
            long responseID,
            int customerID,
            DateTime now,
            int historyLength,
            bool includeTryOutData,
            decimal monthlyPayment,
            BucketRepository bucketRepo,
            TimeoutSourceRepository timeoutSourceRepo,
            EtlCodeRepository etlCodeRepo
            ) : base(db, log, customerID, now)
        {
            this.resultSet = new SortedDictionary <long, Inference>();
            this.models    = new SortedDictionary <long, PublicModelOutput>();
            Results        = new List <Inference>();

            this.responseID        = responseID;
            this.historyLength     = historyLength;
            this.includeTryOutData = includeTryOutData;
            this.monthlyPayment    = monthlyPayment;
            this.bucketRepo        = bucketRepo;
            this.timeoutSourceRepo = timeoutSourceRepo;
            this.etlCodeRepo       = etlCodeRepo;
        }         // constructor
예제 #4
0
 internal InferenceLoader(
     AConnection db,
     ASafeLog log,
     int customerID,
     DateTime now,
     bool includeTryOutData,
     decimal monthlyPayment,
     BucketRepository bucketRepo,
     TimeoutSourceRepository timeoutSourceRepo,
     EtlCodeRepository etlCodeRepo
     ) : base(
         db,
         log,
         0,
         customerID,
         now,
         1,
         includeTryOutData,
         monthlyPayment,
         bucketRepo,
         timeoutSourceRepo,
         etlCodeRepo
         )
 {
 }         // constructor
예제 #5
0
        }         // constructor

        internal InferenceLoader(
            AConnection db,
            ASafeLog log,
            long responseID,
            int customerID,
            BucketRepository bucketRepo,
            TimeoutSourceRepository timeoutSourceRepo,
            EtlCodeRepository etlCodeRepo
            ) : base(db, log, responseID, customerID, DateTime.UtcNow, 1, true, 0, bucketRepo, timeoutSourceRepo, etlCodeRepo)
        {
        }         // constructor
예제 #6
0
 public InferenceSaver(
     AConnection db,
     ASafeLog log,
     long requestID,
     Response <Reply> response,
     BucketRepository bucketRepo,
     TimeoutSourceRepository timeoutSourceRepo,
     EtlCodeRepository etlCodeRepo
     ) : base(db, log)
 {
     this.requestID         = requestID;
     this.response          = response;
     this.bucketRepo        = bucketRepo;
     this.timeoutSourceRepo = timeoutSourceRepo;
     this.etlCodeRepo       = etlCodeRepo;
     ResponseID             = 0;
 }         // constructor