Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #98112 > unrolled thread

need help understanding a python program

Started byLee Bradley <teamprimalforce@gmail.com>
First post2015-11-02 10:35 -0800
Last post2015-11-21 13:27 -0800
Articles 3 — 2 participants

Back to article view | Back to comp.lang.python


Contents

  need help understanding a python program Lee Bradley <teamprimalforce@gmail.com> - 2015-11-02 10:35 -0800
    Re: need help understanding a python program Ben Finney <ben+python@benfinney.id.au> - 2015-11-03 05:45 +1100
      Re: need help understanding a python program Lee Bradley <teamprimalforce@gmail.com> - 2015-11-21 13:27 -0800

#98112 — need help understanding a python program

FromLee Bradley <teamprimalforce@gmail.com>
Date2015-11-02 10:35 -0800
Subjectneed help understanding a python program
Message-ID<f25cc66a-3003-41cb-8c47-bbece515c275@googlegroups.com>
http://pastebin.com/ndDYjYe1

The above link takes you to a very interesting way of solving the classic game of Bulls and Cows. It uses an entropy-based decision algorithm. I realize this is asking a lot but I am not yet proficient enough in python to follow some of the methods.

There is a fair amount on the internet on both the game and on entropy-based machine learning. I will provide further information if anyone is interested.

For now I am looking for someone who can dig into this code and explain what's going on. I understand a lot of it but not enough to really *get it*.

[toc] | [next] | [standalone]


#98113

FromBen Finney <ben+python@benfinney.id.au>
Date2015-11-03 05:45 +1100
Message-ID<mailman.71.1446489928.4463.python-list@python.org>
In reply to#98112
Lee Bradley <teamprimalforce@gmail.com> writes:

> http://pastebin.com/ndDYjYe1

We much prefer to discuss code in the context of plain text messages
right here, because this forum is archived longer than the expected
lifetime of content hosted on other services.

> For now I am looking for someone who can dig into this code and
> explain what's going on. I understand a lot of it but not enough to
> really *get it*.

Could you discuss your own impressions of it so far, with (parts of) the
code pasted here as plain text for context of your commentary?

-- 
 \       Moriarty: “Forty thousand million billion dollars? That money |
  `\            must be worth a fortune!” —The Goon Show, _The Sale of |
_o__)                                                       Manhattan_ |
Ben Finney

[toc] | [prev] | [next] | [standalone]


#99221

FromLee Bradley <teamprimalforce@gmail.com>
Date2015-11-21 13:27 -0800
Message-ID<0408f311-270d-49cb-9a21-48310bfa82f8@googlegroups.com>
In reply to#98113
On Monday, November 2, 2015 at 1:45:58 PM UTC-5, Ben Finney wrote:
> Lee Bradley <bradley_lee_r@sbcglobal.net> writes:
> 
> > http://pastebin.com/ndDYjYe1
> 
> We much prefer to discuss code in the context of plain text messages
> right here, because this forum is archived longer than the expected
> lifetime of content hosted on other services.
> 
> > For now I am looking for someone who can dig into this code and
> > explain what's going on. I understand a lot of it but not enough to
> > really *get it*.
> 
> Could you discuss your own impressions of it so far, with (parts of) the
> code pasted here as plain text for context of your commentary?
> 
> -- 
>  \       Moriarty: "Forty thousand million billion dollars? That money |
>   `\            must be worth a fortune!" --The Goon Show, _The Sale of |
> _o__)                                                       Manhattan_ |
> Ben Finney

Ben,

Sorry it took so long to get back on this. I did start to put together a response to you. I made all sorts of notes about what I understood and what I didn't understand. But in the end I tried to write a solution myself using his ideas and what I had learned from many things I learned on the subject.

I believe I have a working program which I have written in C.

http://primepuzzle.com/tc/entropy.c

Incredibly interesting exercise. I am awaiting any feedback Vitaly might have on what I have built.

Lee

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.python


csiph-web