Exemplo n.º 1
0
        public void SaveSummary()
        {
            List <MLFeatureFunctionsSummary <LabelT, FeatureT> > ret = new List <MLFeatureFunctionsSummary <LabelT, FeatureT> >();

            ret.Add(FeatureSummary);
            string strText = DetailStringClass.getXmlByObjectList <MLFeatureFunctionsSummary <LabelT, FeatureT> >(ret);

            OnSaveEvent(strText);
        }
Exemplo n.º 2
0
        public void LoadSummary()
        {
            string txt = OnLoadLocalFile();
            List <MLFeatureFunctionsSummary <LabelT, FeatureT> > ret = DetailStringClass.getObjectListByXml <MLFeatureFunctionsSummary <LabelT, FeatureT> >(txt);

            if (ret != null && ret.Count > 0)
            {
                FeatureSummary = ret[0];
            }
        }
Exemplo n.º 3
0
 public string LoadLocalTrainData()
 {
     try
     {
         DetailStringClass dsc             = new DetailStringClass();
         string            pathSummaryPath = string.Format("{0}\\{1}_summary.data", Path.GetDirectoryName(this.GetType().Assembly.Location), typeof(MaxEnt).Name);
         string            strText         = File.ReadAllText(pathSummaryPath);
         return(strText);
     }
     catch (Exception e)
     {
         return(null);
     }
 }
Exemplo n.º 4
0
 string GetLocalFile()
 {
     try
     {
         DetailStringClass dsc             = new DetailStringClass();
         string            pathSummaryPath = string.Format("{0}\\{1}_summary.data", Path.GetDirectoryName(Application.ExecutablePath), MLType.Name);
         string            strText         = File.ReadAllText(pathSummaryPath);
         return(strText);
     }
     catch (Exception e)
     {
         string msg = e.Message;
         return(null);
     }
 }