public void AnalystValidationData(List <train> validation_set) { eva = new Evaluation(); int length = validation_set.Count; for (int i = 0; i < length; ++i) { string output = ""; data tmp = new data(validation_set[i].d, validation_set[i].msg1, validation_set[i].msg2); List <bool> result = ClassifierList(tmp); eva.Add(validation_set[i].flag, result); #region log output += i + " th data: flag = " + validation_set[i].flag + " : "; for (int j = 0; j < result.Count; ++j) { output += result[j] + ","; } output += "\n"; log(output); #endregion } eva.Analyst(); #region log String title = "classifier"; int metrics_len = metrics.Count(); for (int i = 0; i < metrics_len; ++i) { title += interval + metrics[i]; } List <String> msg = eva.Output(); List <String> msg2 = eva.Output2(); int msg_len = msg.Count(); log(title); for (int i = 0; i < msg_len; ++i) { log(msg[i]); } #endregion WriteToFile(filename, title, msg); WriteToFile(filename2, title, msg2); }