Exemple #1
0
        public void InitPersistedModel()
        {
            //gp panel
            if (Factory != null && Factory.Parameters != null)
            {
                var p = Factory.Parameters;

                //Input data
                //Inputs = ExpData.GetInputData(p.Constants);
                var rv      = ExpData.GetInputData();
                var dataSet = new ExperimentData(rv.train, rv.test, p.Constants);
                dataSet.SetExperiment(ExpData);
                Inputs = dataSet;

                //Calculate nonPersisted parameter properties
                Factory.Parameters.FeatureCount     = ExpData.GetEncodedColumnInputCount();
                Factory.Parameters.IsMultipleOutput = ExpData.GetEncodedColumnOutputCount() > 1;
            }
        }
Exemple #2
0
        private List <int> terminalSet(Parameters p)
        {
            var colCount = ExpData.GetColumnInputCount() + p.ConstNum;

            if (colCount > 1000)
            {
                throw new Exception("GPdotNET supports up to 1000 features.");
            }

            p.FeatureCount     = ExpData.GetEncodedColumnInputCount();
            p.IsMultipleOutput = ExpData.GetEncodedColumnOutputCount() > 1;

            var term = new List <int>();

            for (int i = 0; i < colCount; i++)
            {
                term.Add(1000 + i);
            }

            return(term);
        }