/r/madeinpython
A subreddit for showcasing the things you made with the Python language! Use us instead of flooding r/Python :)
Hey check out r/madeinjs for JavaScript and Typescript!
A subreddit for showcasing the things you made with the Python language! Use us instead of flooding r/Python :)
/r/madeinpython
Video 3: Enhancing Classification with Keras Tuner:
🎯 Take your monkey species classification to the next level by leveraging the power of Keras Tuner.
So , how can we decide how many layers should we define ? how many filters in each convolutional layer ?
Should we use Dropout layer ? and what should be its value ?
Which learning rate value is better ? and more similar questions.
Optimize your CNN model's hyperparameters, fine-tune its performance, and achieve even higher accuracy.
Learn the potential of hyperparameter tuning and enhance the precision of your classification results.
This is the link for part 3: https://youtu.be/RHMLCK5UWyk&list=UULFTiWJJhaH6BviSWKLJUM9sg
I shared the a link to the Python code in the video description.
This tutorial is part no. 3 out of 5 parts full tutorial :
🎥 Image Classification Tutorial Series: Five Parts 🐵
In these five videos, we will guide you through the entire process of classifying monkey species in images. We begin by covering data preparation, where you'll learn how to download, explore, and preprocess the image data.
Next, we delve into the fundamentals of Convolutional Neural Networks (CNN) and demonstrate how to build, train, and evaluate a CNN model for accurate classification.
In the third video, we use Keras Tuner, optimizing hyperparameters to fine-tune your CNN model's performance. Moving on, we explore the power of pretrained models in the fourth video,
specifically focusing on fine-tuning a VGG16 model for superior classification accuracy.
Lastly, in the fifth video, we dive into the fascinating world of deep neural networks and visualize the outcome of their layers, providing valuable insights into the classification process
Enjoy
Eran
#Python #Cnn #TensorFlow #Deeplearning #basicsofcnnindeeplearning #cnnmachinelearningmodel #tensorflowconvolutionalneuralnetworktutorial
What My Project Does:
It acts as a wrapper for the AzuraCast API, providing custom functions and classes for more straightforward use of the API in python projects.
Target Audience:
Python users who are interested in programmatically interacting with online radios hosted on AzuraCast.
Comparison:
The idea of API Wrappers is not new. However, I noticed that the only existing wrapper for this API is written in PHP, which I am not experienced with. I created this project so I, and other python programmers by extension, could have an easier time working with the API.
This is my first "major" programming project, so thoughts and feedback are welcome and greatly appreciated.
PS: Shoutout to PRAW for "inspiring" basically everything about the project's structure and functionality.
I need to build scraper which will scrape news data from multiple news sites regularly? I need to build something like Google news
github.com/FI-Mihej/InterProcessPyObjects
pypi.org/project/InterProcessPyObjects
This high-performance package delivers blazing-fast inter-process communication through shared memory, enabling Python objects to be shared across processes with exceptional efficiency. By minimizing the need for frequent serialization-deserialization, it enhances overall speed and responsiveness. The package offers a comprehensive suite of functionalities designed to support a diverse array of Python types and facilitate asynchronous IPC, optimizing performance for demanding applications.
This project is designed for production environments, offering a stable API suitable for developers looking to implement fast inter-process communication. Whether you're building complex systems or require robust data sharing and modification across processes, InterProcessPyObjects is ready to meet your needs.
Comparison with multiprocessing.shared_memory
While both InterProcessPyObjects and multiprocessing.shared_memory facilitate inter-process communication, there are several key differences to note. Unlike multiprocessing.shared_memory, InterProcessPyObjects offers the following enhancements:
These features make InterProcessPyObjects a more robust option for developers requiring advanced inter-process communication capabilities.
Stable. Guaranteed not to have breaking changes in the future. (see github.com/FI-Mihej/InterProcessPyObjects?tab=readme-ov-file#api-state for details)
Shared Memory Communication:
Lock-Free Synchronization:
Supported Python Types:
None
, bool
, 64-bit int
, large int
(arbitrary precision integers), float
, complex
, bytes
, bytearray
, str
.Decimal
, slice
, datetime
, timedelta
, timezone
, date
, time
tuple
, list
, classes inherited from: AbstractSet
(frozenset
), MutableSet
(set
), Mapping
and MutableMapping
(dict
).dataclass
None
, bool
, 64 bit int
, float
) internally, optimizing memory use and speed.NumPy and Torch Support:
Custom Class Support:
dataclasses
) onto shared dictionaries in shared memory.__dict__
attr__slots__
attrAsyncio Compatibility:
sysbench memory --memory-oper=write run
5499.28 MiB/sec
Approach | sync/async | Throughput GiB/s |
---|---|---|
InterProcessPyObjects (sync) | sync | 3.770 |
InterProcessPyObjects + uvloop | async | 3.222 |
InterProcessPyObjects + asyncio | async | 3.079 |
multiprocessing.shared_memory * | sync | 2.685 |
uvloop.UnixDomainSockets | async | 0.966 |
asyncio + cengal.Streams | async | 0.942 |
uvloop.Streams | async | 0.922 |
asyncio.Streams | async | 0.784 |
asyncio.UnixDomainSockets | async | 0.708 |
multiprocessing.Queue | sync | 0.669 |
multiprocessing.Pipe | sync | 0.469 |
*
multiprocessing.shared_memory.py - simple implementation. This is a simple implementation because it uses a similar approach to the one used in uvloop.*
, asyncio.*
, multiprocessing.Queue
, and multiprocessing.Pipe
benchmarking scripts. Similar implementations are expected to be used by the majority of projects.
hash()
callThis Python package provides a robust solution for interprocess communication, supporting a variety of Python data structures, types, and third-party libraries. Its lock-free synchronization and asyncio compatibility make it an ideal choice for high-performance, concurrent execution.
This is a stand-alone package for a specific Cengal module. Package is designed to offer users the ability to install specific Cengal functionality without the burden of the library's full set of dependencies.
The core of this approach lies in our 'cengal-light' package, which houses both Python and compiled Cengal modules. The 'cengal' package itself serves as a lightweight shell, devoid of its own modules, but dependent on 'cengal-light[full]' for a complete Cengal library installation with all required dependencies.
An equivalent import:
from cengal.hardware.memory.shared_memory import *
from cengal.parallel_execution.asyncio.ashared_memory_manager import *
Cengal library can be installed by:
pip install cengal
https://github.com/FI-Mihej/Cengal
https://pypi.org/project/cengal/
Licensed under the Apache License, Version 2.0.
Hello, I just shared a 1+ hour Data Science project on YouTube. I covered Data Analysis, Feature Engineering, Machine Learning and Web App creation in the video. I used Python, Pandas, Sk-learn and Streamlit. I also added the dataset link in the description. I am leaving the link below, have a great day!
https://www.youtube.com/watch?v=SJ_3_RlgAlU&list=PLTsu3dft3CWg69zbIVUQtFSRx_UV80OOg&index=3&t=2s
30+ Data Science Projects Playlist -> https://www.youtube.com/playlist?list=PLTsu3dft3CWg69zbIVUQtFSRx_UV80OOg
🎥 Image Classification Tutorial Series: Five Parts 🐵
In these five videos, we will guide you through the entire process of classifying monkey species in images. We begin by covering data preparation, where you'll learn how to download, explore, and preprocess the image data.
Next, we delve into the fundamentals of Convolutional Neural Networks (CNN) and demonstrate how to build, train, and evaluate a CNN model for accurate classification.
In the third video, we use Keras Tuner, optimizing hyperparameters to fine-tune your CNN model's performance. Moving on, we explore the power of pretrained models in the fourth video,
specifically focusing on fine-tuning a VGG16 model for superior classification accuracy.
Lastly, in the fifth video, we dive into the fascinating world of deep neural networks and visualize the outcome of their layers, providing valuable insights into the classification process
Video 1: Data Preparation Tutorial
In this tutorial we will download the dataset , make some data discovery , and prepare the images for the next phase of building the CNN model.
Link for the tutorial is here : https://youtu.be/ycEzhwiAXjY
Here is the code : https://github.com/feitgemel/TensorFlowProjects/tree/master/Monkey-Species
Enjoy
Eran
#Python #Cnn #TensorFlow #Deeplearning #basicsofcnnindeeplearning #cnnmachinelearningmodel #tensorflowconvolutionalneuralnetworktutorial
DEMO: https://youtu.be/45JeIpDiJdc
A Shell DSL that transforms into Python.
I created this IDE to spin up Tkinter UIs or anything Python with less boilerplate and rich cognitive and efficiency shortcuts: for me, I think this tool helps me prototype GUI apps quicker with less characters typed so less effort.
I would love to take this further if I could get anyone interested. Thanks.
Hi to all, I published yesterday my first open-source Python package named Arganic, it's a very small and lightweight library I'm using to manage *args and **kwargs arguments for classes, methods and functions, it's basically based on decorators, and make it easy to manage constraints and arguments validations. It's probably allready made by other libraries. I' m open to receive any suggestions or contributions to make it better. I don't know if it's very relevant, I stay open to any critics.
Hello r/madeinpython!
Prompting. We all need input from the user. No matter what kind of program you develop, making it interactive is important. But you do not need to care about the how.
With ItsPrompt you can ask the user for input in a few lines, without needing to care about the visuals, consistency and user experience - that is what ItsPrompt does for you!
Here you can view a GIF presenting the things ItsPrompt is capable of!
ItsPrompt can be found on PyPI and simply installed with pip
:
pip install ItsPrompt
Unlike similar tools, ItsPrompt comes with many unique features, including:
And much more!
With the update ItsPrompt v1.5, we finally have a detailed Documentation, hosted on readthedocs!
We also introduce more ways to customize your prompts and input data, like
TablePrompts
Separators
The goal of ItsPrompt is to provide you an easy way of getting input from your users without spending your time on all the details, so you can focus on the important things of your program.
And if you want to help us make ItsPrompt even better, or you simply have questions, do not hesitate to visit our Github Project or to join our Discord!
And now, have fun with ItsPrompt!
Python app for analyzing single text and dataset using 2 popular libraries textblob and Vader sentiment
This tutorial explains how can Multi-Agent Orchestration be used to build an automatic code review system where a Coder and Reviewer go back & forth improving the code quality until all issues are resolved automatically: https://youtu.be/pdnT3yLk70c?si=TUrV50BlNu7UStoI
Currently shows the use of image captcha.
Check it out here
Using diffusion trends abd facing this output: No display found. Using non interactive Agg backend
Tookie OSINT is a social media tool that can find users social media profiles just with a username. Tookie is similar to the tool called Sherlock, but Tookie provides more features and options. Tookie is 80% accurate when discovering social media accounts. Tookie is 100% free and open source. Thanks for your time and I hope you check it out.