The formula for entropy is
However, when entropy is applied to the query set output in your source code, your code looks like this
I was wondering if you missed a "➖" in line 424 of "few_shot_learning_system.py".
If these two lines of code are OK, could you please explain what you mean by this?