zenogantner / MyMediaLite

recommender system library for the CLR (.NET)
http://mymedialite.net
499 stars 192 forks source link

Fix BPRSLIM test problem in ItemRecommendersTest #396

Closed zenogantner closed 11 years ago

zenogantner commented 11 years ago

1) Test Failure : Tests.ItemRecommendation.ItemRecommendersTest.TestSaveLoad Exception while testing recommender BPRSLIM: Argument is out of range. Parameter name: index at System.Array.InternalArray__get_Item[Int32](Int32 index) [0x00000] in :0 at (wrapper managed-to-managed) int[]:System.Collections.Generic.IList`1.get_Item (int) at MyMediaLite.ItemRecommendation.BPRSLIM.SampleItemPair (Int32 u, System.Int32& i, System.Int32& j) [0x00000] in :0 at MyMediaLite.ItemRecommendation.BPRSLIM.SampleTriple (System.Int32& u, System.Int32& i, System.Int32& j) [0x00000] in :0 at MyMediaLite.ItemRecommendation.BPRSLIM.Iterate () [0x00000] in :0 at MyMediaLite.ItemRecommendation.BPRSLIM.Train () [0x00000] in :0 at Tests.ItemRecommendation.ItemRecommendersTest.SetUpRecommender (System.Type type) [0x00000] in :0 at Tests.ItemRecommendation.ItemRecommendersTest.TestSaveLoad () [0x00000] in :0 at Tests.ItemRecommendation.ItemRecommendersTest.TestSaveLoad () [0x00000] in :0

zenogantner commented 11 years ago

Fixed. BPRSLIM is again in tested and does not fail.