public void TestLinearTrain()
        {
            var advancedClassify = new AdvancedClassify();
            var agesOnly         = advancedClassify.LoadMatch(@"TestData\agesonly.csv", true);
            var avgs             = advancedClassify.LinearTrain(agesOnly);

            _output.WriteLine(JsonConvert.SerializeObject(avgs));
        }
        public void TestScaledLinearTrain()
        {
            var advancedClassify = new AdvancedClassify();
            var numericalset     = advancedClassify.LoadNumerical();
            var result           = advancedClassify.ScaleData(numericalset);
            var scaledSet        = result.Item1;
            var scalef           = result.Item2;
            var avgs             = advancedClassify.LinearTrain(scaledSet);

            _output.WriteLine(JsonConvert.SerializeObject(numericalset[0].NumData));
            _output.WriteLine(numericalset[0].Match.ToString());
            _output.WriteLine(advancedClassify.DpClassify(scalef(numericalset[0].NumData), avgs).ToString());
            _output.WriteLine(numericalset[11].Match.ToString());
            _output.WriteLine(advancedClassify.DpClassify(scalef(numericalset[11].NumData), avgs).ToString());
        }
        public void TestDpClassify()
        {
            var advancedClassify = new AdvancedClassify();
            var agesOnly         = advancedClassify.LoadMatch(@"TestData\agesonly.csv", true);
            var avgs             = advancedClassify.LinearTrain(agesOnly);
            var classify         = advancedClassify.DpClassify(new double[] { 30, 30 }, avgs);

            _output.WriteLine(classify.ToString());
            classify = advancedClassify.DpClassify(new double[] { 30, 25 }, avgs);
            _output.WriteLine(classify.ToString());
            classify = advancedClassify.DpClassify(new double[] { 25, 40 }, avgs);
            _output.WriteLine(classify.ToString());
            classify = advancedClassify.DpClassify(new double[] { 48, 20 }, avgs);
            _output.WriteLine(classify.ToString());
        }