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); }
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); }