InitModel() 보호된 메소드

Initialize the model data structure
protected InitModel ( ) : void
리턴 void
 public void TestMatrixInit()
 {
     var mf = new MatrixFactorization() { Ratings = TestUtils.CreateRatings() };
     mf.InitModel();
     Assert.IsNotNull(mf.user_factors);
     Assert.IsNotNull(mf.item_factors);
 }
        public void TestCurrentLearnRate()
        {
            var mf = new MatrixFactorization() { LearnRate = 1.1f, Ratings = TestUtils.CreateRatings() };

            mf.InitModel();
            Assert.AreEqual(1.1f, mf.LearnRate);
            Assert.AreEqual(1.1f, mf.current_learnrate);
        }