Skip to content

Commit 099441d

Browse files
authored
Merge pull request #7 from JuliaAI/dev
Fix measure orientation bug
2 parents 3b12172 + a29cbbf commit 099441d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: CI
22
on:
33
pull_request:
44
branches:
5-
- main
5+
- master
66
- dev
77
push:
88
branches:
9-
- main
9+
- master
1010
- dev
1111
tags: '*'
1212
jobs:

src/strategies/basic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,10 +166,10 @@ function MLJTuning.models(
166166
) where {T}
167167
n_particles = tuning.n_particles
168168
if !isnothing(history)
169-
sig = MLJTuning.signature(first(history).measure)
169+
sign = MLJTuning.signature(history[1].measure[1])
170170
measurements = Vector{T}(undef, n_particles)
171171
map(history[end-n_particles+1:end]) do h
172-
measurements[h.metadata] = sig * h.measurement[1]
172+
measurements[h.metadata] = sign * h.measurement[1]
173173
end
174174
pbest!(state, tuning, measurements)
175175
gbest!(state, tuning)

0 commit comments

Comments
 (0)