Open utterances-bot opened 3 months ago
df = df[[False if entropy == 1 and in_corpus == 0 else True for entropy, in_corpus in zip(df['ENTROPY'], df['IN_CORPUS'])]]
df = df[[False if entropy == 0 and in_corpus == 0 else True for entropy, in_corpus in zip(df['ENTROPY'], df['IN_CORPUS'])]]
I didn't understand how this helping? I mean I tried running the code without these 2 lines and the output was still same..could you please clarify this?
I'm not sure why I left that in there. Since all the words in df
should be in the corpus, it doesn't do anything. Feel free to remove it. :)
Solving Wordle Using Information Theory | Michael Hotaling
Wordle has gone pretty viral in the last couple months. It’s a very simple game where you have to guess a five letter word within six guesses. Each guess reveals some information about what letters are in the word and in what positions. The faster you get the word, the better your score.
https://michaelhotaling.github.io/blog/wordle_info_theory/