Exemplo n.º 1
0
        /// <summary>
        /// loads training data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnLoadTrainig_Click(object sender, EventArgs e)
        {
            var strFile = GPModelGlobals.GetFileFromOpenDialog();
            var data    = GPModelGlobals.LoadDataFromFile(strFile);

            LoadTrainingData(data, GPModelType.SR);
        }
Exemplo n.º 2
0
        public static double[][] LoadTestData(string fileName = "sample1_testdata.csv")
        {
            var theDirectory = GPModelGlobals.GetInstalledLocation();

            return(GPModelGlobals.LoadDataFromFile(theDirectory + "\\RunTimeTesting\\" + fileName));
            //return GPdotNET.Engine.GPModelGlobals.LoadGPData(theDirectory + "\\RunTimeTesting\\" + fileName);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Fire event for loading test data
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnLoadTesting_Click(object sender, EventArgs e)
        {
            var strFile = GPModelGlobals.GetFileFromOpenDialog();
            var data    = GPModelGlobals.LoadDataFromFile(strFile);

            if (_problemType == GPModelType.SR || _problemType == GPModelType.SRO)
            {
                LoadTestingData(data);
            }
            else if (_problemType == GPModelType.TS)
            {
                LoadSeriesData(data);
            }
            else if (_problemType == GPModelType.TSP)
            {
                LoadTrainingData(data, _problemType);
            }
            else if (_problemType == GPModelType.AP)
            {
                LoadTrainingData(data, _problemType);
            }
            else if (_problemType == GPModelType.TP)
            {
                LoadTrainingData(data, _problemType);
            }
            else
            {
                LoadTestingData(data);
            }
        }