scienceetonnante / MCMC

Code used in the video https://www.youtube.com/watch?v=z4tkHuWZbRA

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decipher using Markov Chain Monte Carlo

Code used in my Youtube video : https://www.youtube.com/watch?v=z4tkHuWZbRA

Provided "as is" and without warranties of any kind :-)

I don't do any maintenance on it.

Run create_dictionnary.py once to create the dictionary.data file

Then run decipher_MCMC.py :

  • set COUNT_BIGRAMS = True at least once to create the bigrams file (can then subsequently set to False)
  • text to decipher should be in ciphered_text string (line 58)

About

Code used in the video https://www.youtube.com/watch?v=z4tkHuWZbRA


Languages

Language:Python 100.0%