Example #1
0
        public JsonResult GetApproximateQuaity(string engineerId, int complexity, int Duration)
        {
            IEnumerable <SubTask> subTasks = unitOfWork.SubTasks.GetEngineerComletedSubTasks(engineerId);
            SubTask newSubTask             = new SubTask
            {
                Complexity     = complexity,
                ActualDuration = Duration
            };

            PredictedQuality predictedQuality = MLClass.PredictQualityBasedonDurationandCompl(subTasks, newSubTask);

            return(Json(predictedQuality));
        }
Example #2
0
        public JsonResult GetApproximateDuration(string engineerId, int complexity, int Quality)
        {
            IEnumerable <SubTask> subTasks = unitOfWork.SubTasks.GetEngineerComletedSubTasks(engineerId);
            SubTask newSubTask             = new SubTask
            {
                Complexity = complexity,
                Quality    = Quality
            };

            PredictedDuration predictedDuration = MLClass.PredictDurationBasedonQualityandCompl(subTasks, newSubTask);

            return(Json(predictedDuration));
        }