/// <summary>
        /// 字符串,不需要反向解析,因为记录为后天学习,不遗传
        /// </summary>
        /// <param name="xh"></param>
        /// <param name="prefix"></param>
        /// <returns></returns>
        public string ToString(Inference inf, int xh, String prefix = "   ")
        {
            StringBuilder str = new StringBuilder();

            str.Append("mean" + xh.ToString() + "=" + meanToString(inf) + System.Environment.NewLine +
                       prefix + "evulation=" + evulation.ToString("F3") + System.Environment.NewLine +
                       prefix + "accuracy=" + accuracy.ToString("F3") + System.Environment.NewLine +
                       prefix + "usedCount=" + usedCount.ToString() + System.Environment.NewLine +
                       prefix + "acceptCount=" + acceptCount.ToString() + System.Environment.NewLine);
            return(str.ToString());
        }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="inf"></param>
 public InferenceRecord(Inference inf)
 {
     this.inf = inf;
 }
 private String meanToString(Inference inf)
 {
     (Vector flattenedValue, List <int> sizes) = this.means.flatten();
     return(inf.GetValueText(flattenedValue));
 }