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
+3 -3
View File
@@ -9,7 +9,7 @@ require_relative 'trace'
EPS = 0.01
set :bind, '0.0.0.0'
set :port, 4568
set :port, 4567
set :server, 'webrick'
disable :protection
set :host_authorization, { allow_if: ->(_env) { true } }
@@ -51,7 +51,7 @@ post '/recall_steps' do
MAX_MAXNET_ITER.times do
nxt = maxnet_step(outputs, eps)
hamming_steps << nxt.map { |v| v.round(2) }
break if nxt.count { |v| v > 0 } <= 1
break if nxt.count { |v| v > 1e-9 } <= 1
outputs = nxt
end
@@ -88,7 +88,7 @@ post '/recall_trace' do
MAX_MAXNET_ITER.times do
nxt = maxnet_step(outputs, eps_val)
hamming_steps << nxt.map { |v| v.round(2) }
break if nxt.count { |v| v > 0 } <= 1
break if nxt.count { |v| v > 1e-9 } <= 1
outputs = nxt
end
winner_idx = outputs.each_with_index.max_by { |v, _| v }[1]