public void TestCurrentLearnRate() { var afm = new SigmoidItemAsymmetricFactorModel() { LearnRate = 1.1f, Ratings = TestUtils.CreateRatings() }; afm.InitModel(); Assert.AreEqual(1.1f, afm.LearnRate); Assert.AreEqual(1.1f, afm.current_learnrate); }
public void TestMatrixInit() { var afm = new SigmoidItemAsymmetricFactorModel() { Ratings = TestUtils.CreateRatings() }; afm.InitModel(); Assert.IsNotNull(afm.user_factors); Assert.IsNotNull(afm.item_factors); Assert.IsNotNull(afm.y); Assert.IsNotNull(afm.user_bias); Assert.IsNotNull(afm.item_bias); }