| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| for c in alphabet if c not in state]) | ||
|
|
||
| search_list = [c for c in alphabet if c not in state] | ||
| plainchar = argmax(search_list, key=lambda c: self.decoder.P1[c]) |
There was a problem hiding this comment.
This is fine, but I wonder which is clearer:
lambda c: self.decoder.P1[c]
or
self.decoder.P1.get
Sorry, something went wrong.
There was a problem hiding this comment.
Did you mean self.decoder.P1.getitem
I got an error when I tried self.decoder.P1.get AttributeError: 'UnigramTextModel' object has no attribute 'get'
Sorry, something went wrong.
|
Sorry, I was late at getting to this, and now there is a conflict; can you fix? |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Changed max() to argmax() to make code easier to read.