No video

Parallelize Python Tasks with Joblib

  Рет қаралды 25,495

NeuralNine

NeuralNine

2 жыл бұрын

Today we learn how to parallelize Python tasks using joblib.
◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚
🐍 The Python Bible Book: www.neuralnine.com/books/
💻 The Algorithm Bible Book: www.neuralnine.com/books/
👕 Programming Merch: www.neuralnine.com/shop
🌐 Social Media & Contact 🌐
📱 Website: www.neuralnine.com/
📷 Instagram: / neuralnine
🐦 Twitter: / neuralnine
🤵 LinkedIn: / neuralnine
📁 GitHub: github.com/NeuralNine
🎙 Discord: / discord
🎵 Outro Music From: www.bensound.com/

Пікірлер: 38
@tomjohnson8986
@tomjohnson8986 Жыл бұрын
Straight to the point and clear. Well done. No fluff.
@gustavobertocco554
@gustavobertocco554 Жыл бұрын
Awesome, this is exactly the type of pipeline I was looking for in order to integrate joblib :)
@rahulkumarsingh1716
@rahulkumarsingh1716 Жыл бұрын
With every videi , i learn something new! Good Job.
@mohammedel2035
@mohammedel2035 2 жыл бұрын
Great value as always… Thanks a lot!
@viniciusfriasaleite8016
@viniciusfriasaleite8016 2 жыл бұрын
I want to apply parallel computing to the minimax algorithm I implemented on a connect 4 game. It looks like a really good improvement. Thanks for the content
@west
@west Жыл бұрын
Very useful overview, thank you!
@hopes3211
@hopes3211 2 жыл бұрын
Excellent content and easily explained. Awesome 👍
@marcosoliveira8731
@marcosoliveira8731 2 жыл бұрын
I´ve learned a great deal here. Thank you.
@thomasgoodwin2648
@thomasgoodwin2648 2 жыл бұрын
Careful of your benchmarking. The 1st time you run it single threaded, then after that all multi threaded. However, the 1st time you run it, it actually has to go out to the internet and actually download the images. Running after that is a bit of a cheat since it's likely that from then on, the images will be called up from cache rather than re-DLd. Just trying to make the point that when actually benchmarking, you need to average many runs, as initial conditions runs may not be indicative of 'normal' run times. It also illustrates a bit of the difficulty in benchmarking network programs. Many thanks as always. As usual you take "That's way above my brain limits' and transform it into 'Huh, So it's really just that easy.'
@shinrafahell
@shinrafahell 2 жыл бұрын
Excellent video!
@Y.Mahran
@Y.Mahran 2 жыл бұрын
Great video.
@bw2
@bw2 2 жыл бұрын
well-timed video, multiprocessing module was giving me a hard time, I had to selectively scrape files (around 4K files each execution) I think this will be fantastic with HTTPX (drop-in replacement of requests module but with async support)
@atom1833
@atom1833 2 жыл бұрын
Intro is amazing
@user-wr4yl7tx3w
@user-wr4yl7tx3w 2 жыл бұрын
Great video
@mdabdullahalhasib2920
@mdabdullahalhasib2920 Жыл бұрын
Awesome
@shuxiaokai
@shuxiaokai 2 жыл бұрын
So cool 🥰🥰🥰
@alexanderrubioanasco5352
@alexanderrubioanasco5352 Жыл бұрын
Thanks for share you aknowledge, i have a question,. how can i use parallelize if i am training a machine learning model? i use pyspark but, is parallelize better?
@JohnWalz97
@JohnWalz97 2 жыл бұрын
You should always use 'time.perf_counter' instead of 'time.time()' when you're trying to benchmark code. It's way more accurate.
@user-wr4yl7tx3w
@user-wr4yl7tx3w 2 жыл бұрын
I use %timeit. Is it better as well?
@JohnWalz97
@JohnWalz97 2 жыл бұрын
@@user-wr4yl7tx3w I think so but not completely sure. Since it's designed for timing code I would assume so but don't quote me on that 😅
@giovannigaiardo
@giovannigaiardo 2 жыл бұрын
I am enjoying this channel very much. Would anyone recommend a similar one but focused on JavaScript?
@splendorman7922
@splendorman7922 2 жыл бұрын
any advantages over 'unsync' library?
@alejandrobravo1221
@alejandrobravo1221 2 жыл бұрын
What font family are you using in pycharm?
@hamzarashid7579
@hamzarashid7579 2 жыл бұрын
You could use httpx instead of requests!
@alliedeena1141
@alliedeena1141 2 жыл бұрын
is it better than requests module?
@Blendershick
@Blendershick 9 ай бұрын
Amazing thank you!
@joshuabardwell2294
@joshuabardwell2294 3 ай бұрын
Why did your runtime change from n_jobs = 8 to -1?
@mallikarjunrterdal
@mallikarjunrterdal 7 ай бұрын
Multi processing with shared memory possible?
@NimaqAlizadeh
@NimaqAlizadeh 2 жыл бұрын
👌👌🌹
@user-wr4yl7tx3w
@user-wr4yl7tx3w 2 жыл бұрын
Is it faster than JAX pmap?
@PatrickSteil
@PatrickSteil 7 ай бұрын
That stupid easy. So does colors2 get returned with all the results from each run appended to a list?
@RidingWithGerdas
@RidingWithGerdas Жыл бұрын
I am currently multithreading my web scraping project, opening multi browsers and clicking many things with Selenium. Would this improve anything in my case?
@HalfEatenMushroom
@HalfEatenMushroom 7 ай бұрын
Hey, I know it's a year later but Joblib is pretty much just a wrapper for either multiprocessing or mumtithreading depending on your specified preference
@sarimbinwaseem
@sarimbinwaseem 2 жыл бұрын
It is separating the input list and making function parallel.. I want to speed up a function which is opening a xlsx file which take 22 seconds to open in openpyxl library.. Is thqt possible to speed up?
@SageBetko
@SageBetko 2 жыл бұрын
Try the read- or write-only optimized modes in openpyxl.
@sarimbinwaseem
@sarimbinwaseem 2 жыл бұрын
@@SageBetko Thanks.. I'll try.
@unknown-cj8gv
@unknown-cj8gv 2 жыл бұрын
You should be show only work and face except others things, this is thing reduce your efforts
@joshdheda8776
@joshdheda8776 Жыл бұрын
why use a stupid example?
Speed Up Your Code With Cython
16:37
NeuralNine
Рет қаралды 113 М.
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН
Получилось у Миланы?😂
00:13
ХАБИБ
Рет қаралды 4 МЛН
Я обещал подарить ему самокат!
01:00
Vlad Samokatchik
Рет қаралды 7 МЛН
Modern Python logging
21:32
mCoding
Рет қаралды 167 М.
Automate your job with Python
6:07
John Watson Rooney
Рет қаралды 386 М.
Regular Expressions in Python
18:58
NeuralNine
Рет қаралды 76 М.
Unlocking your CPU cores in Python (multiprocessing)
12:16
mCoding
Рет қаралды 298 М.
Python Asyncio, Requests, Aiohttp | Make faster API Calls
17:56
Patrick Collins
Рет қаралды 128 М.
This Is Why Python Data Classes Are Awesome
22:19
ArjanCodes
Рет қаралды 798 М.
Obfuscate Python Code With PyArmor
11:22
NeuralNine
Рет қаралды 49 М.
The moment we stopped understanding AI [AlexNet]
17:38
Welch Labs
Рет қаралды 815 М.
How to Do 90% of What Plugins Do (With Just Vim)
1:14:03
thoughtbot
Рет қаралды 879 М.
5 Useful F-String Tricks In Python
10:02
Indently
Рет қаралды 286 М.
БАБУШКИН КОМПОТ В СОЛО
00:23
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 17 МЛН