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

Run multiple iterations. Print final temperatures. Reduce stdout spew. #8

Merged
merged 2 commits into from
Apr 21, 2017

Conversation

Quuxplusone
Copy link
Contributor

This makes the output of the program more closely resemble that of the
original Copycat described in "FCCA" page 236:

[T]he average final temperature of an answer can be thought of as
the program's own assessment of that answer's quality, with lower
temperatures meaning higher quality.

For example, running python main.py abc abd ijk 100 produced the
following output:

ijl: 98 (avg temp 16.0)
jjk: 1 (avg temp 56.3)
ijk: 1 (avg temp 57.9)

And for python main.py abc abd ijkk 100:

ijkkk: 2 (avg temp 19.8)
ijkl: 51 (avg temp 28.1)
ijll: 46 (avg temp 28.9)
djkk: 1 (avg temp 77.4)

This makes the output of the program more closely resemble that of the
original Copycat described in "FCCA" page 236:

> [T]he average final temperature of an answer can be thought of as
> the program's own assessment of that answer's quality, with lower
> temperatures meaning higher quality.

For example, running `python main.py abc abd ijk 100` produced the
following output:

    ijl: 98 (avg temp 16.0)
    jjk: 1 (avg temp 56.3)
    ijk: 1 (avg temp 57.9)

And for `python main.py abc abd ijkk 100`:

    ijkkk: 2 (avg temp 19.8)
    ijkl: 51 (avg temp 28.1)
    ijll: 46 (avg temp 28.9)
    djkk: 1 (avg temp 77.4)
@jalanb jalanb merged commit ac43696 into jalanb:master Apr 21, 2017
@jalanb
Copy link
Owner

jalanb commented Apr 21, 2017

Apologies for slight delay, was offline on hols.

Thank you for the contribution, which enhances the code, and has been accepted

@Quuxplusone Quuxplusone deleted the ajo-ui branch May 3, 2017 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants