How to Write Cleaner Python Code Right Now

Published: 21 January 2023
on channel: Machine Learning with Phil
2,059
65

Type Hinting can turn good python code into great python code with very little effort. Make your code more readable and more presentable by letting people know the type of each parameter and what each function returns. It's a minor detail but it's a big time saver in the long run.

You can find the code for this here:
https://gist.github.com/philtabor/c26...

Learn how to turn deep reinforcement learning papers into code:

Get instant access to all my courses, including the new Prioritized Experience Replay course, with my subscription service. $29 a month gives you instant access to 42 hours of instructional content plus access to future updates, added monthly.

Discounts available for Udemy students (enrolled longer than 30 days). Just send an email to sales@neuralnet.ai

https://www.neuralnet.ai/courses

Or, pickup my Udemy courses here:

Deep Q Learning:
https://www.udemy.com/course/deep-q-l...

Actor Critic Methods:
https://www.udemy.com/course/actor-cr...

Curiosity Driven Deep Reinforcement Learning
https://www.udemy.com/course/curiosit...

Natural Language Processing from First Principles:
https://www.udemy.com/course/natural-...

Just getting started in deep reinforcement learning? Check out my intro level course through Manning Publications.

Reinforcement Learning Fundamentals
https://www.manning.com/livevideo/rei...

Here are some books / courses I recommend (affiliate links):
Grokking Deep Learning in Motion: https://bit.ly/3fXHy8W
Grokking Deep Learning: https://bit.ly/3yJ14gT
Grokking Deep Reinforcement Learning: https://bit.ly/2VNAXql

Come hang out on Discord here:
  / discord  

Website: https://www.neuralnet.ai
Github: https://github.com/philtabor
Twitter:   / mlwithphil  

Chapters:
0:00 Intro
01:30 How Type Hinting Works
02:55 Adding Type Hinting to the Agent Class
08:23 Creating New Types
13:50 Moment of Truth


On this page of the site you can watch the video online How to Write Cleaner Python Code Right Now with a duration of hours minute second in good quality, which was uploaded by the user Machine Learning with Phil 21 January 2023, share the link with friends and acquaintances, this video has already been watched 2,059 times on youtube and it was liked by 65 viewers. Enjoy your viewing!