private void Load() { using (FileStream fs = new FileStream(FileName, FileMode.OpenOrCreate)) { try { bayesClassList = (BayesClassList) new BinaryFormatter().Deserialize(fs); } catch { bayesClassList = new BayesClassList(); } } }
public BayesClassifier() { bayesClassList = new BayesClassList(); Load(); }