public static void PerformManualTest()
        {
            SprintDataReader            dataReader        = new SprintDataReader();
            IEnumerable <SprintDataRow> sprintDataset     = dataReader.LoadRecords("Dataset/Sprint_Data.csv");
            SprintVelocityPredictor     velocityPredictor = new SprintVelocityPredictor(sprintDataset);

            while (true)
            {
                Console.WriteLine("Enter new sprint details");
                int           sprintNumber  = PromptIntegerValue("Sprint number: ");
                int           hoursMember1  = PromptIntegerValue("Hours programmer 1: ");
                int           hoursMember2  = PromptIntegerValue("Hours programmer 2: ");
                int           hoursMember3  = PromptIntegerValue("Hours programmer 3: ");
                SprintDataRow sprintDataRow = new SprintDataRow(sprintNumber, hoursMember1, hoursMember2, hoursMember3);
                double        predictedNumberOfStoryPoints = velocityPredictor.PredictVelocity(sprintDataRow);
                Console.WriteLine($"I predict the team can process {predictedNumberOfStoryPoints} storypoints");
                Console.WriteLine(String.Empty);
            }
        }
Exemplo n.º 2
0
 public double PredictVelocity(SprintDataRow sprintDataRow)
 {
     double[] input = { sprintDataRow.SprintNumber, sprintDataRow.HoursProgrammer1, sprintDataRow.HoursProgrammer2, sprintDataRow.HoursProgrammer3 };
     return(this._multipleLinearRegressionModel.Transform(input));
 }