How do I collate all given and generated data after prediction

I am using collabLearner and want to combine data from the original dataset (some of which may not have been used in calculations), the weight matrix (with biases), and the predictions. I have code that gets the student_id’s (from the collabList classes), student biases, and student weights, then I get the test’s (from the collabList classes), their biases, and weights. Then I zip and loop through the collective collabLine.codes, predictions (from learn.get_preds()), and targets (from learn.get_preds()). I try to collate everything, but a matrix multiply of the item and user biases and weights doesn’t give the corresponding prediction. I don’t think I am matching things up right, can someone help me with this?