benmiroglio / pymatch

MIT License
276 stars 129 forks source link

m.predict_scores() - list index out of range error #45

Open danzhao2 opened 3 years ago

danzhao2 commented 3 years ago

I got a list index out of range error when trying to run m.predict_scores(). Might anybody help out? Thanks.

gjdv commented 2 years ago

You probably encountered an error in fit_scores resulting in less than nmodels to be trained. Then indexing goes wrong in predict_scores. To that end, I added raising an exception in fit_scores to make that more visible (see pull request #53)