/* Constructors */ public ZipfLearningModel(IMerkleTreeContext context) { m_guid = System.Guid.NewGuid(); m_context = context; // this.Status = "init"; /* FIXME */ m_words = new List <RankFrequencyPair>(); m_progress = 0.0f; }
public GloveLearningModel(IMerkleTreeContext context) { m_context = context; cooccurArgs = new CooccurArgs(); FillCooccurArgs(ref cooccurArgs); gloveArgs = new GloveArgs(); FillGloveArgs(ref gloveArgs); shuffleArgs = new ShuffleArgs(); FillShuffleArgs(ref shuffleArgs); vocabCountArgs = new VocabCountArgs(); FillVocabCountArgs(ref vocabCountArgs); }
/* Constructors */ public LearningModelFactory(IMerkleTreeContext context) { m_context = context; m_learningModelTypes = new List <Type>(); /* Fill our array of learning model types */ // m_learningModelTypes.Add(typeof(TestLearningModel)); m_learningModelTypes.Add(typeof(TestLearningModel)); m_learningModelTypes.Add(typeof(ZipfLearningModel)); m_learningModelTypes.Add(typeof(GloveLearningModel)); /* TODO: Add learning models from DLL assemblies */ /* Ensure that each learning model type implements * ILearningModel */ foreach (Type t in m_learningModelTypes) { Debug.Assert(t.GetInterfaces() .Contains(typeof(ILearningModel))); } /* FIXME: Ensure that each learning model type implements the * needed static methods (with appropriate signatures) */ }
public MerkleController(IMerkleTreeContext context) { m_context = context; }
public TestLearningModel(IMerkleTreeContext context) { m_context = context; }