An Intro to Markov chains with Python!

  Рет қаралды 30,212

Adrian Dolinay

Adrian Dolinay

Күн бұрын

Пікірлер: 25
@spiderjerusalem
@spiderjerusalem 2 жыл бұрын
This is one of the BEST Python tutorials I have ever seen, not just among Markov Chain tutorials, but among all tutorials. Great work!
@dzuynguyen8256
@dzuynguyen8256 3 жыл бұрын
Really pulled me out of a dark place man. Thank you.
@TheDunningKrugerEffectisReal
@TheDunningKrugerEffectisReal 8 ай бұрын
Good stuff, I'm going to save it to watch it again later.
@uniqueninja6197
@uniqueninja6197 3 жыл бұрын
Thanks Adrian for this tutorial on HMM. Thanks for being so simple and practical on the concept.
@Raggaliamous
@Raggaliamous Жыл бұрын
Completely fantastic. Plus, I appreciate the ending references. Interested in making a basic weather simulator, I'm now searching a simple way of harvesting open weather data, to formulate the probabilities.
@Raggaliamous
@Raggaliamous 11 ай бұрын
I wish I new. I just improvised instead...@theman1860
@HonestADVexplorer
@HonestADVexplorer 3 жыл бұрын
Thank you very much! Clean Python code and clear explanations!
@ddiq47
@ddiq47 2 жыл бұрын
Thanks for including the reference for that book, definitely going to check that out!
@reanwithkimleng
@reanwithkimleng 8 ай бұрын
❤❤❤❤ merci monsieur
@gmonkman
@gmonkman 9 ай бұрын
Great explanation. I see the mathematical notation descriptors and just switch off, but this practical example is great. Respect for the credits as well.
@breadandcheese1880
@breadandcheese1880 2 жыл бұрын
Hands down the best example; Professors in universities please take note.
@entahgatau
@entahgatau 2 жыл бұрын
why after several iterations on n-step transitions, the rows become the columns and vice versa?
@PatrickNieto
@PatrickNieto Жыл бұрын
Is there a way to implement this if there were conditions on the transitions. I guess if it wasn't memorylessness. For example, what if I could only go to Seoul if I hadn't gone to Cairo or Paris the last 7 states?
@gmonkman
@gmonkman 9 ай бұрын
Dunno if there is an elegant way, but you'd detect in the loop on if you are in Cairo or Paris and adjust the step transition matrix
@carrotsofallages7369
@carrotsofallages7369 2 жыл бұрын
Hello, thanks for the video :). I wanted to ask what to do if you get a KeyError. Or how that error occurs in the first place
@RA777FBI
@RA777FBI 3 жыл бұрын
How did you show the plot of the markov chains?
@AdrianDolinay
@AdrianDolinay 3 жыл бұрын
I used Photoshop for the chain showing the movement to different cities. It wasn’t a Python package
@rodrigobotello2093
@rodrigobotello2093 3 жыл бұрын
Hello! when I use the code of the matrixpower, it says that matrix power is not defined, can you help me with it?
@AdrianDolinay
@AdrianDolinay 3 жыл бұрын
matrix_power is a user defined function. If you run the code snippet below it will create the function in your environment. Make sure you also have NumPy imported to run the function. Let me know if you have any additional questions and hope this helps! def matrix_power(matrix, power): if power == 0: return np.identity(len(matrix)) elif power == 1: return matrix else: return np.dot(matrix, matrix_power(matrix, power-1))
@shhreyaanand7444
@shhreyaanand7444 3 жыл бұрын
Hi why isn't the blue graph showing?
@AdrianDolinay
@AdrianDolinay 3 жыл бұрын
Which time stamp are you referring to?
@rajeshmanjrekar3614
@rajeshmanjrekar3614 3 жыл бұрын
while len(travel_sim) < 25: city=np.random.choice(mc.iloc[mc.index.get_loc(city)].index,p=mc.iloc[mc.index.get_loc(city)]) travel_sim.append(city) when i run this code it says p has to be one-dimensional as ERROR
@AdrianDolinay
@AdrianDolinay 3 жыл бұрын
Not sure about the error without seeing the rest of your notebook. If you download the notebook from GitHub and compare it to your own script that should reveal why you are getting the error. Please let me know if you continue to have issues.
@AdrianDolinay
@AdrianDolinay 3 жыл бұрын
Not sure about the error without seeing the rest of your notebook. If you download the notebook from GitHub and compare it to your own script that should reveal why you are getting the error. Please let me know if you continue to have issues.
Intro to Markov Chains & Transition Diagrams
11:25
Dr. Trefor Bazett
Рет қаралды 115 М.
Why Does Diffusion Work Better than Auto-Regression?
20:18
Algorithmic Simplicity
Рет қаралды 428 М.
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН
Mom Hack for Cooking Solo with a Little One! 🍳👶
00:15
5-Minute Crafts HOUSE
Рет қаралды 23 МЛН
It’s all not real
00:15
V.A. show / Магика
Рет қаралды 20 МЛН
Markov Chains Clearly Explained! Part - 1
9:24
Normalized Nerd
Рет қаралды 1,3 МЛН
7 Outside The Box Puzzles
12:16
MindYourDecisions
Рет қаралды 506 М.
Markov Chains - VISUALLY EXPLAINED + History!
33:07
Kapil Sachdeva
Рет қаралды 16 М.
Transformers (how LLMs work) explained visually | DL5
27:14
3Blue1Brown
Рет қаралды 4,3 МЛН
Please Master These 10 Python Functions…
22:17
Tech With Tim
Рет қаралды 258 М.
Fast Inverse Square Root - A Quake III Algorithm
20:08
Nemean
Рет қаралды 5 МЛН
When you have a very capricious child 😂😘👍
00:16
Like Asiya
Рет қаралды 18 МЛН