PLAY PODCASTS
Building a Neural Network and How to Write Tests in Python
Episode 54

Building a Neural Network and How to Write Tests in Python

The Real Python Podcast · Real Python

April 2, 202146m 17s

Audio is streamed directly from the publisher (dts.podtrac.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.

Show Notes

<p>Do you know how a neural network functions? What goes into building one from scratch using Python? This week on the show, David Amos is back, and he&rsquo;s brought another batch of PyCoder&rsquo;s Weekly articles and projects.</p> <p>David talks about a recent Real Python article titled &ldquo;Python AI: How to Build a Neural Network &amp; Make Predictions.&rdquo; This article covers how to train a neural network and create a linear regression model.</p> <p>We also cover several articles about testing in Python including, writing unit tests, testing code in Jupyter notebooks, and a testing style guide.</p> <p>We cover several other articles and projects from the Python community including, how to build an Asteroids game with Python and Pygame, a 5-point framework for Python performance management, how it helps to know a Python programmer if you want a vaccination appointment, a Flask mega-tutorial, and the new release of SQLAlchemy.</p> <div class="alert alert-primary" role="alert"> <p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/python-coding-interviews-tips-best-practices/">Python Coding Interviews: Tips &amp; Best Practices</a></p> <p>In this step-by-step course, you&rsquo;ll learn how to take your Python coding interview skills to the next level and use Python&rsquo;s built-in functions and modules to solve problems faster and more easily.</p> </div> <p>Topics:</p> <ul> <li>00:00:00 &ndash; Introduction</li> <li>00:02:01 &ndash; Build an Asteroids Game With Python and Pygame</li> <li>00:08:18 &ndash; Python AI: How to Build a Neural Network &amp; Make Predictions</li> <li>00:11:51 &ndash; Sponsor: Scout APM</li> <li>00:12:56 &ndash; How to Write Unit Tests in Python, Part 1: Fizz Buzz</li> <li>00:19:40 &ndash; A 5-Point Framework For Python Performance Management</li> <li>00:26:16 &ndash; Unit Testing Python Code in Jupyter Notebooks</li> <li>00:30:02 &ndash; Python Testing Style Guide</li> <li>00:31:32 &ndash; Video Course Spotlight</li> <li>00:32:47 &ndash; Want a vaccination appointment? It helps to know a Python programmer</li> <li>00:37:29 &ndash; Flask Megatutorial</li> <li>00:41:22 &ndash; SQLAlchemy version 1.4.0</li> <li>00:45:14 &ndash; Thanks and goodbye</li> </ul> <p>Show Links:</p> <p><a href="https://realpython.com/asteroids-game-python/">Build an Asteroids Game With Python and Pygame</a> &ndash; Build a clone of the Asteroids game in Python using Pygame. Step by step, you&rsquo;ll add images, input handling, game logic, sounds, and text to your program.</p> <p><a href="https://realpython.com/python-ai-neural-network/">Python AI: How to Build a Neural Network &amp; Make Predictions</a> &ndash; Build a neural network from scratch as an introduction to the world of artificial intelligence (AI) in Python. You&rsquo;ll learn how to train your neural network and make accurate predictions based on a given dataset.</p> <p><a href="https://blog.miguelgrinberg.com/post/how-to-write-unit-tests-in-python-part-1-fizz-buzz">How to Write Unit Tests in Python, Part 1: Fizz Buzz</a> &ndash; Get an introduction to unit testing in Python from the author of the <a href="https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world">Flask Megatutorial</a>.</p> <p><a href="https://medium.com/capital-one-tech/a-5-point-framework-for-python-performance-management-5af2be5739d9">A 5-Point Framework For Python Performance Management</a> &ndash; &ldquo;Performance testing — like sailboat racing — depends on the conditions along the racecourse.&rdquo;</p> <p><a href="https://www.wrighters.io/unit-testing-python-code-in-jupyter-notebooks/">Unit Testing Python Code in Jupyter Notebooks</a> &ndash; Even if you code in Jupyter notebooks, there&rsquo;s no excuse to not be testing your code!</p> <p><a href="https://blog.thea.codes/my-python-testing-style-guide/">Python Testing Style Guide</a> &ndash; Need a quick yet thorough guide to testing? This excellent resource is for you.</p> <p><a href="https://www.nbcnews.com/tech/security/want-vaccination-appointment-helps-know-python-programmer-rcna457">Want a vaccination appointment? It helps to know a Python programmer</a> &ndash; Programmers are writing scripts to help find vaccine appointments for those who are eligible.</p> <p>Projects:</p> <ul> <li><a href="https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world">Flask Megatutorial</a></li> <li><a href="https://www.sqlalchemy.org/blog/#sqlalchemy-1.4.0-released">SQLAlchemy 1.4.0 Released</a></li> </ul> <p>Additional Links:</p> <ul> <li><a href="https://realpython.com/team/pfertyk/">About Paweł Fertyk: Real Python Author</a></li> <li><a href="https://miskatonicstudio.com/">Miskatonic Studio</a></li> <li><a href="https://realpython.com/podcasts/rpp/2/">Episode 2: Learn Python Skills While Creating Games</a></li> <li><a href="https://realpython.com/podcasts/rpp/11/">Episode 11: Advice on Getting Started With Testing in Python</a></li> <li><a href="https://realpython.com/lessons/range-vs-enumerate/">Python Coding Interviews: Tips &amp; Best Practices - range() vs enumerate()</a></li> <li><a href="https://docs.python.org/3/library/doctest.html?highlight=doctest">doctest — Test interactive Python examples: Python Documentation</a></li> <li><a href="https://github.com/nteract/testbook">testbook: Unit Testing Framework Extension For Testing Code in Jupyter Notebooks</a></li> </ul> <p>Level up your Python skills with our expert-led courses:</p> <ul> <li><a href="https://realpython.com/courses/python-coding-interviews-tips-best-practices/">Python Coding Interviews: Tips &amp; Best Practices</a></li> <li><a href="https://realpython.com/courses/test-driven-development-pytest/">Test-Driven Development With pytest</a></li> <li><a href="https://realpython.com/courses/pygame-primer/">Make a 2D Side-Scroller Game With PyGame</a></li> </ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast &amp; join our community of Pythonistas</a></p>