public async Task <double[]> GetMultiPickupProb(int id, double delay, double duration, double fare)
        {
            RidershipPrediction farePrediction = new RidershipPrediction(_legRepository, id);
            DateTime            fromDateTime   = DateTime.Now.AddMonths(-12);
            DateTime            toDateTime     = DateTime.Now;
            await farePrediction.LearnFromDates(fromDateTime, toDateTime);

            return(farePrediction.RidershipClassProbabilities(delay, duration, fare));
        }
        public async Task <LogisticRidershipPredictionResult> GetLogistic(int id)
        {
            RidershipPrediction farePrediction = new RidershipPrediction(_legRepository, id);
            DateTime            fromDateTime   = DateTime.Now.AddMonths(-12);
            DateTime            toDateTime     = DateTime.Now;
            await farePrediction.LearnFromDates(fromDateTime, toDateTime);

            LogisticRidershipPredictionResult result = new LogisticRidershipPredictionResult
            {
                DriverID         = id,
                FromDateTime     = fromDateTime,
                ToDateTime       = toDateTime,
                RegressionResult = farePrediction.GetRegressionModels()
            };

            return(result);
        }