akin icon indicating copy to clipboard operation
akin copied to clipboard

Getting a score?

Open Charuru opened this issue 4 years ago • 1 comments

My score is always undefined.

akin.recommendation.sampleRecommendationsForUser('2ucvsWKrMY9a3mrjh', 10).then((recs, err) => {
  console.log('recs', recs);
})

[
  { score: undefined, item: 'qdYpXGDpf2LZAs4Cb' },
  { score: undefined, item: '3Yw9ntZF45J7W2Aii' },
  { score: undefined, item: 'PSPmDCsK62i3q6uMC' },
  { score: undefined, item: '5WBPDdZQcybK2vn6B' },
  { score: undefined, item: 'c9rxB2hBWSzn2Anc7' },
  { score: undefined, item: 'THTuLJhACi6zxydwF' },
  { score: undefined, item: 'xGjmGQdShNt29y9N2' },
  { score: undefined, item: 'fRysRbCFq6EBYBRez' },
  { score: undefined, item: '9jH3ggZgk9JdJWQWt' },
  { score: undefined, item: 'p6ZZiZui6HDBqcZQw' }
]

I also have no itemWeights defined. Is that a problem or is that related? If I'm understanding correctly itemWeights is default 1 right?

Charuru avatar Aug 21 '20 01:08 Charuru

Just to clarify I'm looking for the score as I think akin doesn't give me enough recommendations, even when I don't have enough data I want it to try to give me more recs, checking to see if lowering some score threshold is thew way to go.

Charuru avatar Aug 21 '20 02:08 Charuru