Simulating COVID-19 using Python, NumPy & Matplotlib [in-depth tutorial]




[ad_1]

In this in-depth Python tutorial using NumPy and Matplotlib, Caelan walks you through how to simulate the spread of a virus, using covid-19 as an example. We hope in watching this tutorial that you learn something about programming and pandemics.

⭐ Kite is a free AI-powered coding assistant that will help you code faster and smarter. The Kite plugin integrates with all the top editors and IDEs to give you smart completions and documentation while you’re typing. We made this YouTube channel and Kite to help you be more productive: https://kite.com/download/?utm_medium=referral&utm_source=youtube&utm_campaign=kite&utm_content=virus_viz

***************************************
JOIN our community of developers ► https://www.facebook.com/groups/505658083720291/

SUBSCRIBE for more Python tips, tutorials, and coding interview prep! ► https://www.youtube.com/c/KiteHQ?sub_confirmation=1

Follow us Twitter ► https://twitter.com/kitehq

Completed Project Repo ►https://github.com/kiteco/python-youtube-code

Washington Post Viz ►
https://www.washingtonpost.com/graphics/2020/health/coronavirus-how-epidemics-spread-and-end/

***************************************
ADDITIONAL RESOURCES:

6 Python Tips and Tricks YOU Should Know ►
https://www.youtube.com/watch?v=qEr9iRX4K0o&t=127s

How to NAIL LeetCode Questions– Valid Parentheses ►
https://www.youtube.com/watch?v=-K6A2XP0rK8&t=2s

Sqlite 3 Python Tutorial in 5 minutes – Creating Database, Tables and Querying►
https://www.youtube.com/watch?v=girsuXz0yA8

***************************************
Don’t forget to subscribe 🙂
https://www.youtube.com/c/KiteHQ?sub_confirmation=1

STAY TUNED:
Kite ► https://kite.com/
Twitter ►https://twitter.com/kitehq
YouTube ► https://www.youtube.com/channel/UCxVRDu9ujwOrmDxu72V3ujQ

Source


[ad_2]

Comment List

  • Kite
    November 15, 2020

    Can someone help? It looks like I messed up the dictionaries.

    self.mild[recovery_day]["thetas"].append(mild_theta)

    KeyError: 10

  • Kite
    November 15, 2020

    Code please

  • Kite
    November 15, 2020

    Wayyy to fast 💨

  • Kite
    November 15, 2020

    Hi
    It's great video, thanks a lot!
    I have just a question, I can't tell what params is? I can't see in the code where you've stored or defined it, and when I check its type(params) my computer tells me: name "params" is not defined. I see you using it a few times, although I can't locate where exactly you define it or store it. Any explanation would be grand, thanks!

  • Kite
    November 15, 2020

    Hi, thx a lot – complex background available! Program doesn`t start directly from spyder (with python 3.8). Anyone a solution?

  • Kite
    November 15, 2020

    I get an error: AttributeError: 'Virus' object has no attribute 'animate' any idea where i messed up?

  • Kite
    November 15, 2020

    Is their a way to take a input of morality rate,death rate,infection ratio, etc. And then make a custom simulation based on those inputs rather than the same one each time?

  • Kite
    November 15, 2020

    that's how teachers teach us in school ..you suck

  • Kite
    November 15, 2020

    𝘸𝘩𝘺 𝘤𝘰𝘥𝘦 𝘰𝘯𝘦
    𝘸𝘩𝘦𝘯 𝘸𝘦'𝘷𝘦 𝘢𝘭𝘳𝘦𝘢𝘥𝘺 𝘴𝘵𝘢𝘳𝘵𝘦𝘥 𝘰𝘯𝘦

  • Kite
    November 15, 2020

    One more thing, the mortality rate reported is only 0.037% inflated. Your sim says 3.25% mortality rate. Ummmmmm

  • Kite
    November 15, 2020

    One problem… You can't have a virus if the test you run to find it isn't a diagnostic tool to find one… RTPCR test. Start and end there. Kerry Mullis… End the Scamdemic now!!!

  • Kite
    November 15, 2020

    too fast

  • Kite
    November 15, 2020

    Great tutorial, I've been wondering how to do this. However, seeing someone do this is making me lose faith in my abilities.

  • Kite
    November 15, 2020

    How would one go about modifying the code to allow for a larger population size?? I tried just changing the number 4500 to a larger number but that broke the code? has anybody else had this problem?

  • Kite
    November 15, 2020

    Kite Is Useless To Me. No Offence.

  • Kite
    November 15, 2020

    Code Download? I Guess Theres No Point. Python/VS Code Doesn't Even Work And Is Useless To Me And Whatever Code I Put Doesn't Work.

  • Kite
    November 15, 2020

    But why would we need to code one when we have one happening in real life xD

  • Kite
    November 15, 2020

    why does it sound like he's reading a script

  • Kite
    November 15, 2020

    BAAAA!!

  • Kite
    November 15, 2020

    if you look into the middle of the like dots things it just BOOM lite its moving but its not wait thats an optical illusion

  • Kite
    November 15, 2020

    Thanks for sharing the vid. you're a bit too fast, but all the same, great tut. Oh and Kite is amazing! makes coding way easier!

  • Kite
    November 15, 2020

    When you keep higher values for population, the sum of death & recovered is not equal to population

  • Kite
    November 15, 2020

    Is there a mental kite autocomplete to help me explain to somebody how this code I so wonderfully copy and pasted works?
    Great video anyway!

  • Kite
    November 15, 2020

    i keep getting this error? and im not totally sure how to fix it

    AttributeError: 'Virus' object has no attribute 'initial_population'

  • Kite
    November 15, 2020

    Is anyone else getting an 'Exception in Tkinter callback' ?

  • Kite
    November 15, 2020

    what is the point of kite? if you use Visual studio code you have all the features of kite anyway, oh yes, because it's a sponsorship made to look like you're company is a god compared to the companies that do the exact same thing, just are bad at marketing

  • Kite
    November 15, 2020

    my thing has a dumb syntax error for no reason

  • Kite
    November 15, 2020

    golden information – and meaty Thanks

Write a comment