Skip to content

Commit 1180d9c

Browse files
committed
all tests passed
1 parent 4d22e12 commit 1180d9c

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

src/strategies/adaptive.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function AdaptiveParticleSwarm(;
4848
prob_shift=0.25,
4949
rng::R=Random.GLOBAL_RNG
5050
) where {R}
51-
swarm = AdaptiveParticleSwarm{R}(n_particles, c1, c2, prob_shift, rng)
51+
swarm = AdaptiveParticleSwarm(n_particles, c1, c2, prob_shift, rng)
5252
message = MLJTuning.clean!(swarm)
5353
isempty(message) || @warn message
5454
return swarm

src/strategies/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ function ParticleSwarm(;
112112
prob_shift=0.25,
113113
rng::R=Random.GLOBAL_RNG
114114
) where {R}
115-
swarm = ParticleSwarm{R}(n_particles, w, c1, c2, prob_shift, rng)
115+
swarm = ParticleSwarm(n_particles, w, c1, c2, prob_shift, rng)
116116
message = MLJTuning.clean!(swarm)
117117
isempty(message) || @warn message
118118
return swarm

test/runtests.jl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1-
using Distributed
2-
addprocs(2)
3-
41
@everywhere begin
52
using MLJParticleSwarmOptimization
63
using Random
74
using Test
85
using ComputationalResources
96
using Distributions
107
using EvoTrees
8+
using MLJ
119
using MLJBase
1210
using MLJTuning
1311
using StableRNGs

test/strategies/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ for acceleration in (CPU1(), CPUProcesses(), CPUThreads())
3232
tuning=RandomSearch(rng=StableRNG(1234)),
3333
resampling=CV(nfolds=5, rng=StableRNG(8888)),
3434
range=[r1, r2],
35-
measure=mae,
35+
measure=MLJ.mae,
3636
n=15,
3737
acceleration=acceleration
3838
)

0 commit comments

Comments
 (0)