示例#1
0
        public TrainData CreateTrainData(Problem prob)
        {
            SortedData data = new SortedData();

            data.GenTrainData(prob);
            if (data.IsSparse == true)
            {
                string mesg = /*this.GetType().ToString()+*/ "StumpLearner do not support sparse data!";
                throw new Exception(mesg);
            }
            return(data);
        }
示例#2
0
        public TrainData CreateTrainData(Problem prob)
        {
            SortedData data = new SortedData();

            data.GenTrainData(prob);
            if (data.IsSparse == true)
            {
                string mesg = "TreeLearner do not support sparse data!";
                throw new Exception(mesg);
            }
            return(data);
        }