From a1a827344a28f20d312bfa5187ecdef69f2990e6 Mon Sep 17 00:00:00 2001 From: Vishesh Banna Date: Sat, 20 Jun 2026 13:08:19 +0530 Subject: [PATCH] Fix problem 85 positional encoding example (Issue #495) --- questions/85_positional-encoding-calculator/example.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/questions/85_positional-encoding-calculator/example.json b/questions/85_positional-encoding-calculator/example.json index d680efba..53b7075c 100644 --- a/questions/85_positional-encoding-calculator/example.json +++ b/questions/85_positional-encoding-calculator/example.json @@ -1,5 +1,5 @@ { "input": "position = 2, d_model = 8", - "reasoning": "The function computes the positional encoding by calculating sine values for even indices and cosine values for odd indices, ensuring that the encoding provides the required positional information.", - "output": "[[[ 0.,0.,0.,0.,1.,1.,1.,1.,]\n [ 0.8413,0.0998,0.01,0.001,0.5405,0.995,1.,1.]]]" + "reasoning": "The function computes the positional encoding by applying sine to even indices and cosine to odd indices, as specified in the original Transformer architecture.", + "output": "[[0., 1., 0., 1., 0., 1., 0., 1.],\n [0.8413, 0.5405, 0.0999, 0.995, 0.01, 1., 0.001, 1.]]" }