Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error with using --user-prediction in item_recommendation #450

Open
sharathchandra92 opened this issue Nov 26, 2014 · 1 comment
Open

Error with using --user-prediction in item_recommendation #450

sharathchandra92 opened this issue Nov 26, 2014 · 1 comment
Labels

Comments

@sharathchandra92
Copy link

Hi,

I have a 300x100000 user-item matrix (sparse). I am trying to get user predictions on this. I get the following error:
$ item_recommendation --training-file=user_item_sparse.csv --compute-fit --measures=AUC --cross-validation=5 --recommender=BPRMF --user-prediction
loading_time 0.58
memory 13
training data: 94497 users, 296 items, 282453 events, sparsity 98.9902
BPRMF num_factors=10 bias_reg=0 reg_u=0.0025 reg_i=0.0025 reg_j=0.00025 num_iter=30 learn_rate=0.05 uniform_user_sampling=True with_replacement=False update_j=True


* An uncaught exception occured. Please send a bug report to [email protected],*
*** or report the problem in our issue tracker: https://github.com/zenogantner/MyMediaLite/issues ***
*** MyMediaLite 3.10 ***


Argument is out of range.
Parameter name: index at System.Collections.Generic.List1[System.Collections.Generic.IList1[System.Int32]].get_Item (Int32 index) [0x00000] in :0
at MyMediaLite.Data.DataSet.BuildItemIndices () [0x00039] in /home/sharath/Desktop/MyMediaLite-master/src/MyMediaLite/Data/DataSet.cs:190
at MyMediaLite.Data.DataSet.get_ByItem () [0x0000b] in /home/sharath/Desktop/MyMediaLite-master/src/MyMediaLite/Data/DataSet.cs:92
at MyMediaLite.Data.PosOnlyFeedbackCrossValidationSplit1[MyMediaLite.Data.PosOnlyFeedback1[MyMediaLite.DataType.SparseBooleanMatrix]]..ctor (IPosOnlyFeedback feedback, UInt32 num_folds) [0x000d2] in /home/sharath/Desktop/MyMediaLite-master/src/MyMediaLite/Data/PosOnlyFeedbackCrossValidationSplit.cs:61
at MyMediaLite.Eval.ItemsCrossValidation.DoCrossValidation (IRecommender recommender, UInt32 num_folds, IList1 test_users, IList1 candidate_items, CandidateItems candidate_item_mode, Boolean compute_fit, Boolean show_results) [0x00016] in /home/sharath/Desktop/MyMediaLite-master/src/MyMediaLite/Eval/ItemsCrossValidation.cs:51
at ItemRecommendation.Run (System.String[] args) [0x0045a] in /home/sharath/Desktop/MyMediaLite-master/src/Programs/ItemRecommendation/ItemRecommendation.cs:297
at ItemRecommendation.Main (System.String[] args) [0x00006] in /home/sharath/Desktop/MyMediaLite-master/src/Programs/ItemRecommendation/ItemRecommendation.cs:157
Terminate on unhandled exception.

Could you please help me resolve it? Thanks :)

@zenogantner
Copy link
Owner

Is this still an issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants