• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

cigroup-ol / metaopt / 598
72%
develop: 95%

Build:
Build:
LAST BUILD BRANCH: master
DEFAULT BRANCH: develop
Ran 30 Jun 2014 02:29PM UTC
Jobs 4
Files 177
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
598

Pull #3

travis-ci

Bengt
Fix a typo and also rename randomized to mutated
diff --git a/metaopt/optimizer/saes.py b/metaopt/optimizer/saes.py
index e847e00..a0f021f 100644
--- a/metaopt/optimizer/saes.py
+++ b/metaopt/optimizer/saes.py
@@ -57,7 +57,7 @@ class SAESOptimizer(Optimizer):

         self.population = []
         self.scored_population = []
-        self.best_scored_indivual = (None, None)
+        self.best_scored_individual = (None, None)

         self.aborted = False
         self.generation = 1
@@ -89,13 +89,13 @@ class SAESOptimizer(Optimizer):
             self.score_population()

             if self.aborted:
-                return self.best_scored_indivual[0][0]
+                return self.best_scored_individual[0][0]

             self.select_parents()

             self.generation += 1

-        return self.best_scored_indivual[0][0]
+        return self.best_scored_individual[0][0]

     def exit_condition(self):
         pass
@@ -119,14 +119,14 @@ class SAESOptimizer(Optimizer):
             mean = lambda x1, x2: float((x1 + x2) / 2)
             child_args_sigma = map(mean, mother[1], father[1])

-            child_args = ArgsModifier.randomize(child_args, child_args_sigma)
+            child_args = ArgsModifier.mutate(child_args, child_args_sigma)

             self.tau0_random = gauss(0, 1)

             def mutate_sigma(sigma):
-                tau0_randomized = self.tau0 * self.tau0_random
-                tau1_randomized = self.tau1 * gauss(0, 1)
-                return sigma * exp(tau0_randomized) * exp(tau1_randomized)
+                tau0_mutated = self.tau0 * self.tau0_random
+                tau1_mutated = self.tau1 * gauss(0, 1)
+                return sigma * exp(tau0_mutated) * exp(tau1_mutated)

             child_args_sigma = map(mutate_sigma, child_args_sigma)

@@ -162,10 +162,10 @@ class SAESOptimizer(Optimizer):
         scored_individual = (individual, fitness)
         self.scored_population.append(scored_individual)

-        _,... (continued)
Pull Request #3: v0.1.0

3729 of 3729 new or added lines in 139 files covered. (100.0%)

2844 of 3881 relevant lines covered (73.28%)

1.47 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
metaopt/concurrent/invoker/invoker.py
1
100.0
metaopt/concurrent/invoker/pluggable.py
1
100.0
metaopt/core/arg/util/create_arg.py
1
100.0
metaopt/core/call/call.py
1
100.0
metaopt/core/stoppable/util/exception.py
1
100.0
metaopt/objective/integer/fast/implicit/g.py
1
100.0
metaopt/objective/integer/fast/implicit/h.py
1
100.0
metaopt/objective/integer/fast/implicit/i.py
1
100.0
metaopt/objective/integer/fast/implicit/j.py
1
100.0
metaopt/objective/integer/fast/implicit/k.py
1
100.0
metaopt/optimizer/util/default_mutation_stength.py
1
100.0
metaopt/plugin/plugin.py
1
100.0
metaopt/tests/integration/invoker/multiprocess.py
1
100.0
metaopt/tests/integration/invoker/pluggable.py
1
100.0
metaopt/tests/integration/invoker/stoppable.py
1
100.0
metaopt/tests/integration/optimizer/singleinvoke.py
1
100.0
metaopt/tests/unit/concurrent/employer/process.py
1
100.0
metaopt/tests/unit/concurrent/employer/util/determine_worker_count.py
1
100.0
metaopt/tests/unit/concurrent/invoker/util/status_db.py
1
100.0
metaopt/tests/unit/concurrent/invoker/util/worker_process.py
1
100.0
metaopt/tests/unit/core/arg/bool.py
1
100.0
metaopt/tests/unit/core/param/paramspec.py
1
100.0
metaopt/tests/unit/util/stoppable.py
2
100.0
metaopt/concurrent/employer/util/determine_worker_count.py
2
100.0
metaopt/concurrent/invoker/singleprocess.py
2
100.0
metaopt/concurrent/invoker/util/determine_package.py
2
100.0
metaopt/core/arg/util/exception.py
2
100.0
metaopt/core/arg/util/modifier.py
2
100.0
metaopt/core/stoppable/base.py
2
100.0
metaopt/objective/integer/failing/g.py
2
100.0
metaopt/objective/integer/slow/implicit/f.py
2
100.0
metaopt/objective/integer/slow/implicit/g.py
2
100.0
metaopt/tests/unit/core/arg/args.py
2
100.0
metaopt/tests/unit/core/main/main.py
2
100.0
metaopt/tests/unit/core/return/returnspec.py
3
100.0
metaopt/concurrent/invoker/util/call_handle.py
3
100.0
metaopt/concurrent/worker/base.py
3
100.0
metaopt/core/arg/util/creator.py
3
100.0
metaopt/optimizer/base.py
3
100.0
metaopt/optimizer/optimizer.py
3
100.0
metaopt/tests/integration/core/call/call.py
3
100.0
metaopt/tests/integration/core/main.py
3
100.0
metaopt/tests/unit/core/return/decorator.py
4
100.0
metaopt/concurrent/employer/process.py
4
100.0
metaopt/concurrent/worker/worker.py
4
100.0
metaopt/core/paramspec/util/exception.py
4
100.0
metaopt/core/paramspec/util/model.py
4
100.0
metaopt/core/returnspec/util/wrapper.py
4
100.0
metaopt/plugin/util/invocation.py
5
100.0
metaopt/core/arg/bool.py
5
100.0
metaopt/core/optimize/util/exception.py
5
100.0
metaopt/core/paramspec/util/param.py
5
100.0
metaopt/objective/integer/slow/implicit/h.py
5
100.0
metaopt/plugin/base.py
5
100.0
metaopt/tests/unit/util/determine_package.py
6
100.0
metaopt/core/optimize/optimize.py
6
100.0
metaopt/objective/bool/one_max_eight.py
6
100.0
metaopt/objective/bool/one_min_eight.py
6
100.0
metaopt/tests/unit/core/arg/creator.py
7
100.0
metaopt/concurrent/employer/employer.py
7
100.0
metaopt/concurrent/worker/thread.py
8
100.0
metaopt/concurrent/employer/base.py
8
100.0
metaopt/concurrent/invoker/base.py
8
100.0
metaopt/optimizer/singleinvoke.py
8
100.0
metaopt/tests/integration/util/import_function.py
10
100.0
metaopt/core/arg/int.py
10
100.0
metaopt/optimizer/caller.py
10
100.0
metaopt/plugin/print/status.py
11
100.0
metaopt/tests/unit/core/param/param.py
12
100.0
metaopt/plugin/print/debug.py
15
100.0
metaopt/__main__.py
16
100.0
metaopt/core/arg/arg.py
16
100.0
metaopt/plugin/print/optimum.py
19
100.0
metaopt/tests/util/matcher.py
20
100.0
metaopt/tests/unit/core/main.py
23
100.0
metaopt/concurrent/invoker/multiprocess.py
24
100.0
metaopt/optimizer/randomsearch.py
26
100.0
metaopt/concurrent/worker/process.py
44
100.0
metaopt/plugin/visualization/best_fitness.py
52
100.0
metaopt/concurrent/invoker/simple_multiprocess.py
53
100.0
metaopt/concurrent/invoker/util/status_db.py
66
100.0
metaopt/optimizer/saes.py
71
100.0
metaopt/optimizer/rechenberg.py
85
100.0
metaopt/plugin/visualization/landscape.py
103
100.0
metaopt/optimizer/pso.py
150
100.0
metaopt/optimizer/cmaes.py
Jobs
ID Job ID Ran Files Coverage
1 598.1 30 Jun 2014 02:29PM UTC 0
73.28
Travis Job 598.1
2 598.2 30 Jun 2014 02:30PM UTC 0
73.23
Travis Job 598.2
3 598.3 30 Jun 2014 02:30PM UTC 0
0.15
Travis Job 598.3
4 598.4 30 Jun 2014 02:32PM UTC 0
0.15
Travis Job 598.4
Source Files on build 598
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #598
  • Pull Request #3
  • Next Build on master (#600)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc