Fix port configuration and update Hamming network logic; enhance index view formulas and add deployment workflow
Build and Push / build (push) Failing after 1m22s

This commit is contained in:
Dmitry
2026-05-17 17:21:58 +03:00
parent 7c7e28c3d6
commit 75e8f3a400
5 changed files with 49 additions and 20 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ def recall_hamming(pattern_vectors, input_vec)
outputs = hamming_layer(pattern_vectors, input_vec)
MAX_MAXNET_ITER.times do
next_out = maxnet_step(outputs, eps)
return next_out.each_with_index.max_by { |v, _| v }[1] if next_out.count { |v| v > 0 } <= 1
return next_out.each_with_index.max_by { |v, _| v }[1] if next_out.count { |v| v > 1e-9 } <= 1
outputs = next_out
end