zenogantner / MyMediaLite

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

BPRLinear test failure #397

Closed zenogantner closed 11 years ago

zenogantner commented 11 years ago

Test Failure : Tests.ItemRecommendation.ItemRecommendersTest.TestSaveLoad Exception while testing recommender BPRLinear: 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.BPRLinear.SampleItemPair (Int32 u, System.Int32& i, System.Int32& j) [0x00000] in :0 at MyMediaLite.ItemRecommendation.BPRLinear.SampleTriple (System.Int32& u, System.Int32& i, System.Int32& j) [0x00000] in :0 at MyMediaLite.ItemRecommendation.BPRLinear.Iterate () [0x00000] in :0 at MyMediaLite.ItemRecommendation.BPRLinear.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. BPRLinear is now tested again in TestSaveLoad.