#for the life of me i cant figure out what im doing wrong in my code

1 messages · Page 1 of 1 (latest)

polar saffron
#

i was given two input files and an expected output file, we are rating songs and then using user similarity to give a "predicted" rating to a song that a user didnt rate, my output file is just slightly off and I cant figure out where my math is wrong tis due tonight and my TAs got off hours ago any help appreciated

hardy ledgeBOT
#

This post has been reserved for your question.

Hey @polar saffron! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

onyx geyser
#

maybe try using a very small dataset and debug that?

#

one where you know what correlation coefficients/etc you would expect

#

Also, maybe fix your formatting/indentation

#

you can do that with Ctrl+Shift+F in Eclipse or Ctrl+Alt+L in IntelliJ I think

polar saffron
# onyx geyser maybe try using a very small dataset and debug that?

i am using a small data set 😭 its like 5 users ratings of 3 songs, and the other input file is the songs, two of the users didnt rate two songs, my prediction is off by a smidge, so im assuming something is wrong with the math but i cant figure out what, where its supposed to be a 5 and 4 i get a 4 and 1

polar saffron
onyx geyser
onyx geyser