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

Axelrod-Python / axelrod-dojo / 119
86%

Build:
DEFAULT BRANCH: master
Ran 14 May 2018 08:43AM UTC
Jobs 2
Files 11
Run time 1min
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
119

push

travis-ci

drvinceknight
Implement genetic algorithm for gambler (#48)

* Implement GA for Gambler archetype

* tweak mutation

* add tests for gambler's ga methods

* fix mutation and adjust tests

* add check to keep genes in bounds 0, 1

* add integration test

* Implement GA for Gambler archetype

* tweak mutation

* add tests for gambler's ga methods

* fix mutation and adjust tests

* add check to keep genes in bounds 0, 1

* add integration test

* tweak old tests

* test that player instance is created correctly

* test instance with vector

Tests that an instance of the Gambler is created correctly
when a vector is passed. That's when gambler works with
pso

* fix test on pso

This this the final tweak. Now the tests is correct because we
playing against 5 cooperators and the payoff we expect is around
5.

This was breaking previously because the player instance was not
created properly.

* typo

* fix mutation based on pr discussion.

Change the mutation to be:

- each gene has the probability to change to a number in [0, 1]

Remove the test about the genes beging between the bounds.

* fix style suggestion

* address minor comments on pr

* fix crossover as suggested on pr

* fix mutation as suggested on pr

* add line at the end of file + pep8

29 of 29 new or added lines in 2 files covered. (100.0%)

599 of 609 relevant lines covered (98.36%)

1.97 hits per line

Jobs
ID Job ID Ran Files Coverage
1 119.1 14 May 2018 08:44AM UTC 0
98.36
Travis Job 119.1
2 119.2 14 May 2018 08:43AM UTC 0
98.36
Travis Job 119.2
Source Files on build 119
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #119
  • 916e666c on github
  • Prev Build on master (#109)
  • Next Build on master (#128)
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

© 2025 Coveralls, Inc