Example #1
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);
        }