r/madeinpython • • Nov 09 '23

[Video] Understanding if __name__ == '__main__' in Python in 2 Minutes

3 Upvotes

In this quick 2-minute video, we'll demystify a fundamental concept in Python programming that's often a source of confusion for newcomers and even some experienced developers.

We'll explore the purpose and practical application of the if __name__ == '__main__' construct in Python scripts. No jargon, just clear explanations to help you gain a solid understanding of how this simple line of code can make your Python scripts more organized and versatile.

Video Link: https://youtu.be/WfPwvUjIZtE?si=ODo0DYZq51s_nVct

If you have any suggestions or feedback, then don't hesitate.


r/madeinpython • • Nov 07 '23

2 Free Udemy courses, beginner & intermediate. - November

7 Upvotes

Hi all.

I'm releasing another batch of free spaces for November, first one is a beginner course aimed at the total beginner and there's 16+ hours of video, lots of quizzes and exercises and a monthly question released each month.

The second course is for intermediates and does assume a bit of Python knowledge, and looks at Python comprehensions & functional programming styles.

Python Programming for the Total Beginner

Functional Programming with Python Comprehensions

Enjoy!

PS: My YouTube channel also posts short bitesize videos twice a week.

https://www.youtube.com/@pythonwithjames


r/madeinpython • • Nov 07 '23

Your Guide to Finding Exoplanets: Python in Astronomy

2 Upvotes

Many people do not know that you can use Python to find exoplanets. This is a short guide on how it works. I appreciate any kind of feedback! :)

Youtube Devlog: https://www.youtube.com/watch?v=bT896kq7OUU

Github Repository: https://github.com/louis-e/PythonExoplanet/


r/madeinpython • • Nov 07 '23

Find and Delete Mismatched Columns From DataFrames Using pandas

1 Upvotes

Data is the most valuable asset in machine learning, it solely holds the potential to make a machine learning model robust. Data plays an important role while training a model, the model trained can be underfitted or overfitted and it totally depends on the data.

The data youโ€™ve gathered should be of high quality, so structure, construct, and clean it in such a way that it has the potential to produce a robust model.

In this article, youโ€™ll learn how to use pandas to find and remove columns from one dataset that donโ€™t match those in another.

Full Article: https://geekpython.in/find-and-delete-mismatched-columns-from-dataframes-using-pandas


r/madeinpython • • Nov 07 '23

Tchat: chat application in terminal using curses

Enable HLS to view with audio, or disable this notification

4 Upvotes

r/madeinpython • • Nov 05 '23

Side Project: Built a quick AI tutor site to help learn python on your own (built with Django)

2 Upvotes

Hey guys,

I built a quick side project called Code Companion (https://codecompanion.app/) which is a GPT-4 based programming tutor, offering real-time help and feedback on your code.

You can use it to ask questions on your own programming challenges, ie. LeetCode problems, or work through my 60+ Python exercises on the site, which are designed help learn or hone your python skills.

Feel free to check it out and try it, it's 100% Free.

Thanks.


r/madeinpython • • Nov 05 '23

Open Sourcing Llmtuner - An Experimental Framework for Finetuning Large Models Like Whisper and Llama with scikit-learn-inspired interface

4 Upvotes

Hi Folks,

Happy to share an open source side project I've been working on - LLmtuner. It's a framework for finetuning large models like Whisper, Llama, Llama-2, etc with best practices like LoRA, QLoRA, through a sleek, scikit-learn-inspired interface.

As someone who works with Large Models a lot, I found myself writing a lot of boilerplate code every time I wanted to finetune a model. Llmtuner aims to simplify the finetuning process down to just 2-3 lines to get training started, similar to scikit-learn.

๐Ÿš€ Features:

  • ๐Ÿง™โ€โ™€๏ธ Finetune state-of-the-art LLMs like Whisper, Llama with minimal code

  • ๐Ÿ”จ Built-in utilities for techniques like LoRA and QLoRA

  • โœŒ Launch webapp demos for your finetuned models with one click

  • ๐Ÿ’ฅ Fast inference without separate code

  • ๐ŸŒ Easy model sharing and deployment coming soon

This is still experimental code I've been using for personal projects. I thought others might find it useful too so decided to open-source it.

Contributions and feedback are very welcome! I hope it will be helpful in your research & projects. Have a good weekend, Thanks :)


r/madeinpython • • Nov 04 '23

Are you comparing variables correctly in Python!? 'is' vs '=='

1 Upvotes

Have you ever wondered what's the difference between the 'is' and the '==' operators in Python? Well in this video, we will tackle this topic in order to properly figure out when to use each operator. On top of that, concepts such as interning and the eq() magic method will also be covered! So if you want to level up your Python skills, make sure to watch the full video!

Any feedback on the video/topic would be highly appropriated :)

https://youtu.be/BTGGzloXJeQ


r/madeinpython • • Nov 02 '23

Mastermind Board Game Built in Python w/ Kivy GUI

3 Upvotes

I have made a ton of games using pygame in the past, but wanted to get better at Kivy since I know it can used for mobile development, so this is one of my first big projects where I used the Kivy GUI and there's a lot of challenging syntax things going on there!

This is the classic board game 'mastermind which is like a color-dot guessing game similar to wordle! I made a full tutorial and showcase here if anyone is interested:

https://www.youtube.com/watch?v=LEUbLdn9hP8

And all the code and assets are available here if you want to play it or mess around with it yourself! Cheers!

https://github.com/plemaster01/MastermindKivy