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