Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up some code in games and powersystem #420

Merged
merged 4 commits into from
Dec 30, 2019
Merged

Clean up some code in games and powersystem #420

merged 4 commits into from
Dec 30, 2019

Conversation

jrapin
Copy link
Contributor

@jrapin jrapin commented Dec 30, 2019

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Motivation and Context / Related issue

How Has This Been Tested (if it applies)

Checklist

  • The documentation is up-to-date with the changes I made.
  • I have read the CONTRIBUTING document and completed the CLA (see CONTRIBUTING).
  • All tests passed, and additional code has been covered with new tests.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Dec 30, 2019
history2 = 2 * history2 + 2 # illegal move.

return 1 if p.score() > 0 else 2
# TODO remove if not planned to be used
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the following planned to be used (phantomgo)? there are many undefined variables so I commented it, but if possible we should remove it

p1 = x[:(self.dimension // 2)]
p2 = self.instrumentation.random_state.normal(size=self.dimension // 2)
p2 = np.random.normal(size=self.dimension // 2)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using instrumentation indeed does not work, I'll try to update this when I simplify the InstrumentedFunction mess to something way simpler

@jrapin jrapin changed the title Make game experiments reproducible Clean up some code in games and powersystem Dec 30, 2019
@jrapin jrapin merged commit db6878e into master Dec 30, 2019
@jrapin jrapin deleted the repro_games branch December 30, 2019 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants