Fix port configuration and update Hamming network logic; enhance index view formulas and add deployment workflow
Build and Push / build (push) Failing after 1m22s
Build and Push / build (push) Failing after 1m22s
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user