🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Hybrid Search and BM25: all 10 questions

Quiz: Hybrid Search and BM25 · Question 3 of 10

What does this print? (code)

What does this print?

k1 = 1.5
for tf in (1, 100):
    print(round(tf * (k1 + 1) / (tf + k1), 2))
  1. A.1.0 100.0
  2. B.2.5 2.5
  3. C.1.0 2.46
  4. D.1.5 150.0
Answer & explanation

Correct answer: 1.0 2.46

The contribution saturates below k1 + 1 = 2.5, however many times the word repeats.

Can you get the rest right without peeking?

Take the timed Quiz: Hybrid Search and BM25 quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →