Тёмный

Numba speeds up Python with ONE DECORATOR 

Carberra
Подписаться 20 тыс.
Просмотров 5 тыс.
50% 1

Numba is a one-decorator solution to amazingly fast numerical operations in Python. Hell, if you're gonna go Pythonic, might as well go all the way!
-
If you enjoy my content, consider supporting me on Patreon (or hit the JOIN button below to become a member)!
patreon.carber...
If you need help with anything, feel free to join the Discord server:
discord.carber...
I get a lot of people asking, so here's my Visual Studio Code setup!
• My Visual Studio Code ...
-
If you have any questions, don't hesitate to ask in the comments! I'll try and answer as soon as I can, providing someone else hasn't already done so.
#python #coding #howto

Опубликовано:

 

30 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@DrTodd13
@DrTodd13 4 месяца назад
Whoever wrote that automatic parallelization stuff is a freaking genius.
@JJayaraj-fs1di
@JJayaraj-fs1di 3 месяца назад
Hi. Im having a normal python dictionary which has values a list of numbers. Is there a way to convert this dictionary into a numba typed dictionary?
@idk____idk6530
@idk____idk6530 2 года назад
Please next video on -( Ctypes ) importing C compiled function in python :)
@2600D4u
@2600D4u 2 года назад
Yes please!
@Carberra
@Carberra 2 года назад
I've dabbled with ctypes before, but never really looked into it. Could be an interesting thing to look into!
@idk____idk6530
@idk____idk6530 2 года назад
@@Carberra if you try to find prime form 0-500k in Python using efficient algorithm it ma take 76-50s but i tried same algorithm in C and import in python using Ctypes -it take 0.98s 🥵 that's the power!
@ritikranjan7192
@ritikranjan7192 2 года назад
naise
@TheBuilder
@TheBuilder Год назад
wow, amazing
@charlesspringer4709
@charlesspringer4709 Год назад
Factorial is usually implemented with recursion - because computer science people love recursion. Maybe Numba can't use recursion? I would place money on it.
@DrTodd13
@DrTodd13 4 месяца назад
Factorial is often taught as a recursive algorithm just to teach programmers about recursive algorithms. Real factorial implementations can just use a simple loop. And of course Numba does support recursion.
@Gh0sTG0
@Gh0sTG0 Год назад
Hi. Thanks for video! One small offtopic question: I see there that .venv folder with virtual environment, in vscode. From where it appears? Did you create project with pycharm? Or it was some manual command to set venv?
@Carberra
@Carberra Год назад
Manual command. Python has a built-in venv module, though I use pyenv nowadays.
@hhhtocode651
@hhhtocode651 2 года назад
should numba not have a matmul function like numpy and jax? i noticed it is very hard to write one as efficient as numpy has from scratch and then apply jit to it.
@Carberra
@Carberra 2 года назад
Using the decorator rewrites the methods for you, so a matmul should exist if you call Numpy's one from inside a decorated function. Though granted not everything is available, so some things may be missing.
@starshipx1282
@starshipx1282 2 года назад
just perfect
@adasprogramuotojas2183
@adasprogramuotojas2183 2 года назад
You need to go to the point faster. Boring to watch and lots of bloat talk.
Далее
BENCHMARK your Python code with "timeit"
9:11
Просмотров 2,4 тыс.
Qalpoq - Amakivachcha (hajviy ko'rsatuv)
41:44
Просмотров 400 тыс.
荧光棒的最佳玩法UP+#short #angel #clown
00:18
Cython makes Python INSANELY FAST
19:08
Просмотров 35 тыс.
Pathlib makes file management in Python a BREEZE
15:53
Просмотров 4,7 тыс.
Writing CUDA kernels in Python with Numba
49:22
Просмотров 6 тыс.
Python 3.13's new REPL is AMAZING
10:21
Просмотров 55 тыс.
Make Python code 1000x Faster with Numba
20:33
Просмотров 444 тыс.
Compiled Python is FAST
12:57
Просмотров 111 тыс.
Itertools is a MUST-KNOW Python module
14:40
Просмотров 6 тыс.
Qalpoq - Amakivachcha (hajviy ko'rsatuv)
41:44
Просмотров 400 тыс.