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
Auf dieser Seite können Sie das Online-Video How to Write Cleaner Python Code Right Now mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Machine Learning with Phil 21 Januar 2023 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 2,059 Mal angesehen und es wurde von 65 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!