Ejemplo n.º 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
Ejemplo n.º 2
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
Ejemplo n.º 3
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
Ejemplo n.º 4
0
        }         // LoadTimeoutSources

        private EtlCodeRepository LoadEtlCodes(bool doLoad = true)
        {
            var repo = new EtlCodeRepository(this.db, this.log);

            if (doLoad)
            {
                repo.Load();
            }

            return(repo);
        }         // LoadEtlCodes
Ejemplo n.º 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
Ejemplo n.º 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