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