Closed Nikoleta-v3 closed 7 years ago
Multiprocessing is failing with the following error:
AttributeError: Can't pickle local object 'PSO.swarm.
.objective_function'. I tried a few things but I am not sure what is causing the error.
This points to a problem with multiprocessing needing to pickle things. Some things can't be pickled (has caused all sorts of issues with Axelrod). Try something like this:
result = getattr(foo, 'bar')()
where foo
will be the class and 'bar'
will be a string of the method name. Let me know if that makes sense.
looking at the chances through overleaf is a huge pain. I will cheat and use tig.
@Nikoleta-v3 take a look at http://wseviour.github.io/software/2016/04/25/git-latexdiff.html might be helpful for this type of stuff (planning on using it for the revision of the ml paper I send back).
The new branch with Tamsin's corrections and the new proof: https://github.com/drvinceknight/Evolutionary-game-theoretic-Model-of-Rhino-poaching/tree/tamsin_corrections
I will print the pdf with the differences so it would be easier to look at. Also my first attempt to issue 9.
I will be working on this branch from now on: https://github.com/Nikoleta-v3/Literature-Article/tree/working_article
There is just an initial commit with the correct structure of the repo. Let's ignore all the data analysis for now.
I will push the stuff I am writing later.
:tada: PR is open and ready to go.
[x] Literature work. https://github.com/Nikoleta-v3/Literature-Article/blob/working_article/main.pdf
[x] SWORDS talk: https://nikoleta-v3.github.io/talks/
Axelrod-dojo
I have re factored the dojo in such way that now an
algorithms
folder exists.pso
algorithm is now a file within the folder and does not contain any of the script code.gambler
was implemented as an archetype.pso
can now run for thefsm
archetype.The code can be found here: https://github.com/Nikoleta-v3/axelrod-dojo/tree/creating-algorithms
An update since our last meeting:
pso
at it works the way we expected. https://github.com/Nikoleta-v3/axelrod-dojo/blob/creating-algorithms/tests/algorithms/test_particle_swarm_optimization.pyfsm
to be a decision variable as well (we forgot about that).Problems
Multiprocessing is failing with the following error:
AttributeError: Can't pickle local object 'PSO.swarm.<locals>.objective_function'
.I tried a few things but I am not sure what is causing the error.
Rhino
looking at the chances through overleaf is a huge pain. I will cheat and use
tig.