InitModel() protected method

Initialize the model data structure
protected InitModel ( ) : void
return 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);
        }