We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48813c6 commit a29cbbfCopy full SHA for a29cbbf
src/strategies/basic.jl
@@ -166,10 +166,10 @@ function MLJTuning.models(
166
) where {T}
167
n_particles = tuning.n_particles
168
if !isnothing(history)
169
- sig = MLJTuning.signature(first(history).measure)
+ sign = MLJTuning.signature(history[1].measure[1])
170
measurements = Vector{T}(undef, n_particles)
171
map(history[end-n_particles+1:end]) do h
172
- measurements[h.metadata] = sig * h.measurement[1]
+ measurements[h.metadata] = sign * h.measurement[1]
173
end
174
pbest!(state, tuning, measurements)
175
gbest!(state, tuning)
0 commit comments