HF RL Explorer

Cosine similarity returns incorrect results due to variable reference error

Cosine similarity returns incorrect results due to variable reference error: a task in harness-adapters: Agentic coding environments (Harbor dataset). The Cosine similarity algorithm is producing incorrect results and throwing errors. When calculating cosine similarity between strings, the…

The task

The Cosine similarity algorithm is producing incorrect results and throwing errors. When calculating cosine similarity between strings, the function references an undefined variable `intersection` and attempts operations on variables before they are properly defined.

Part of harness-hub/harness-adapters.