public Dictionary <string, List <object> > ModelEvaluation() { var bs = Factory.ProgresReport.BestSolution; var par = Factory.Parameters; var dic = new Dictionary <string, List <object> >(); // if (bs != null) { //get output for training data set var yy = ExpData.GetColumnOutputValues(false); var y1 = yy[0];//Inputs.GetDataOutputCol(true);//experiment var output = calculateOutput(true, true); //get output for testing data set if available var yy1 = ExpData.GetColumnOutputValues(true); var y2 = yy1 != null ? yy1[0] : null;//Inputs.GetDataOutputCol(false);//experiment var outputt = calculateOutput(false, true); // var col = ExpData.GetColumnsFromOutput().FirstOrDefault(); if (col.ColumnDataType == ColumnType.Binary || col.ColumnDataType == ColumnType.Category) { dic.Add("Classes", col.Statistics.Categories.ToList <object>()); } //add data sets dic.Add("obs_train", y1.Select(x => (object)x).ToList <object>()); dic.Add("prd_train", output.Select(x => (object)x).ToList <object>()); //add test dataset if (y2 != null) { dic.Add("obs_test", y2.Select(x => (object)x).ToList <object>()); dic.Add("prd_test", outputt.Select(x => (object)x).ToList <object>()); } return(dic); } return(null); }