>>> import recommendations
>>> recommendations.topMatches(recommendations.critics,'Toby',n=3)

Traceback (most recent call last):
  File "<pyshell#1>", line 1, in <module>
    recommendations.topMatches(recommendations.critics,'Toby',n=3)
  File "C:\Python26\recommendations.py", line 71, in topMatches
    for other in prefs if other!=person]
  File "C:\Python26\recommendations.py", line 61, in sim_pearson
    den=sqrt((sum1Sq-pow(sum1,2)/n)*sum2Sq-pow(sum2,2)/n)
ValueError: math domain error



아ㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏㅏ
궁금해 ㅠ.ㅠ


----------------------------------------------------------------------------------------

헐...

강의실 컴에서는 안됐는데 내 랩탑에서는 실행되는 소스...

뭐 빼먹었나?

오타 있나?

아 놔 ㅠ.ㅠ

+ Recent posts