Jack of Some
Jack of Some
  • Видео 34
  • Просмотров 2 012 806
Custom Training Loops for Multi Headed Tensorflow 2 Models
So this is a bit random (and not a video about python packaging, sorry). I've wanted to make this for a while and it was a good case study for the new editing software I just bought (I don't like it so far). Hope it's useful to someone.
Просмотров: 4 074

Видео

C++ in Python the Easy Way! #pybind11
Просмотров 99 тыс.3 года назад
You voted, so here it is. I tried to condense everything you might need to know to get going with writing Python interfaces to C code. The breakdown is 0:00 Intro 0:39 Absolute minimum example 2:28 Exploration of generated module 3:25 Classes 4:49 STL containers, Python types 6:20 Numpy support 7:24 Properties 8:00 The GIL #python #cplusplus All the code for this can be found here: gist.github....
@lru_cache vs redis-simple-cache in Python
Просмотров 8 тыс.3 года назад
In my Python libraries video there seemed to be some confusion about why redis cache is different from lru_cache or cachetools, so in this video I'm trying to explain the difference a bit more. The python 3 packages for redis-simple-cache pypi.org/project/redis-simple-cache-py3/ pypi.org/project/redis-simple-cache-3k/ #python #redis #cache MY OTHER VIDEOS: ○ 5 Python Libraries: ruclips.net/vide...
Workflow (ASMR): Spacemacs, Emacs, Doom Emacs, Vim, Python
Просмотров 15 тыс.3 года назад
This one goes out to u/jibbit (www.reddit.com/r/spacemacs/comments/igzbh9/videos_of_advanced_navigation_to_study/). The video is mostly me brutalizing the Python list for 20 minutes by extending it in weird ways. I'm using a setup similar to Spacemacs/Doom emacs and all keypresses are shown on the right for study. Also you get to listen to the smooth sounds of my cherry brown keyboard. MY OTHER...
Supercharge your Emacs / Spacemacs / Doom with Yasnippets!
Просмотров 18 тыс.3 года назад
There are some packages that forever changed my emacs (nay, coding) workflow forever. Magit was a big one and now yasnippets joins the ranks too. If you use emacs, spacemacs, or doom emacs you owe it to yourself to learn how to use snippets and how to make your own and I show exactly that in this video.
VSpaceCode Updated! It's even more like Spacemacs Now
Просмотров 8 тыс.3 года назад
VSpaceCode is an excellent VSCode Extension which emulates the fantastic keybindings of Spacemacs. It recently got an update and I just had to cover it. THERE'S MAGIT IN VSCODE NOW!!! Twitter: safijari Channel github: github.com/safijari/jack-of-some/projects/1 #spacemacs #vscode #vspacecode
Ray: Faster Python through parallel and distributed computing
Просмотров 42 тыс.3 года назад
Parallel and Distributed computing sounds scary until you try this fantastic Python library. Ray makes it dead simple to run your code on a cluster of computers with minimal changes to the actual code. Check it out! MY OTHER VIDOES: ○ 5 Common Python Mistakes: ruclips.net/video/fMRzuwlqfzs/видео.html ○ 5 Amazing Python Libraries: ruclips.net/video/eILeIEE3C8c/видео.html ○ Making Python fast: ru...
VSCode's Python Interactive mode is AMAZING!
Просмотров 347 тыс.3 года назад
I've gone from serial Jupyter Notebook user to someone that almost never uses them and it's all thanks to VSCode's interactive mode for Python. Check it out! MY OTHER VIDOES: ○ A.I. Learns to play Snake ruclips.net/video/i0Pkgtbh1xw/видео.html ○ 5 Common Python Mistakes: ruclips.net/video/fMRzuwlqfzs/видео.html ○ 5 Amazing Python Libraries: ruclips.net/video/eILeIEE3C8c/видео.html ○ Making Pyth...
Python is NOT Single Threaded (and how to bypass the GIL)
Просмотров 108 тыс.4 года назад
I've encountered this misconception about Python a lot: Python is single threading and to use more then one core on your CPU you must use the multiprocessing module. In this video I show that this is utterly false and that you can be very CPU efficient with Python when calling out to something like a c-extension (numba in this case). I feel this is an important nuance to understand, hence this ...
Five Amazing Python Libraries you should be using!
Просмотров 76 тыс.4 года назад
Five Amazing Python Libraries you should be using!
Neural Network Learns to Play Snake using Deep Reinforcement Learning
Просмотров 26 тыс.4 года назад
Neural Network Learns to Play Snake using Deep Reinforcement Learning
[DEPRECATED] Visual Maze Solving with Deep Reinforcement Learning in Keras | Detailed Explanation
Просмотров 10 тыс.4 года назад
[DEPRECATED] Visual Maze Solving with Deep Reinforcement Learning in Keras | Detailed Explanation
5 Things You're Doing Wrong When Programming in Python
Просмотров 417 тыс.4 года назад
5 Things You're Doing Wrong When Programming in Python
Baby Learns about Artificial Intelligence | Reinforcement Learning
Просмотров 2,5 тыс.4 года назад
Baby Learns about Artificial Intelligence | Reinforcement Learning
Programming with Python and NodeJS on your Android phone with Termux
Просмотров 41 тыс.4 года назад
Programming with Python and NodeJS on your Android phone with Termux
FZF and Autojump: my favorite Linux utilities
Просмотров 13 тыс.4 года назад
FZF and Autojump: my favorite Linux utilities
How to learn Julia, a new programming language
Просмотров 26 тыс.4 года назад
How to learn Julia, a new programming language
Python Development in Spacemacs
Просмотров 31 тыс.4 года назад
Python Development in Spacemacs
Make Python code 1000x Faster with Numba
Просмотров 442 тыс.4 года назад
Make Python code 1000x Faster with Numba
Can VSCode be a reasonable Spacemacs alternative? (VSpaceCode)
Просмотров 30 тыс.4 года назад
Can VSCode be a reasonable Spacemacs alternative? (VSpaceCode)
Spacemacs Navigation Superpowers (ft. Channel Update)
Просмотров 11 тыс.4 года назад
Spacemacs Navigation Superpowers (ft. Channel Update)
Git in Spacemacs/Emacs with Magit
Просмотров 18 тыс.5 лет назад
Git in Spacemacs/Emacs with Magit
Refactoring in Spacemacs: iedit and helm-edit
Просмотров 12 тыс.5 лет назад
Refactoring in Spacemacs: iedit and helm-edit
Org mode and Spacemacs: The Absolute Minimum you need to know
Просмотров 52 тыс.5 лет назад
Org mode and Spacemacs: The Absolute Minimum you need to know
Spacemacs: Installation, Configuration, and Navigation Tutorial
Просмотров 44 тыс.5 лет назад
Spacemacs: Installation, Configuration, and Navigation Tutorial

Комментарии

  • @Popart-xh2fd
    @Popart-xh2fd 7 дней назад

    On Linux it's a piece of cake, on Windows it's impossible!

  • @shikanokonokokoshitantan
    @shikanokonokokoshitantan 11 дней назад

    Why pronounce dir as "dire" and not "dear" 😭

    • @JackofSome
      @JackofSome 11 дней назад

      Oh dear, what a dire situation.

  • @skr1208
    @skr1208 23 дня назад

    Was I the co-worker 😂

  • @rr4919
    @rr4919 28 дней назад

    It looks the same as nvim. What advantages of emacs?

  • @tejeshwar.p
    @tejeshwar.p Месяц назад

    Is my understanding correct? Python threads perform tasks concurrently by using single processor core without parallelism. With Python multiprocessing we can spawn multiple processes with different interpreters on different cores and achieve parallelism.

    • @JackofSome
      @JackofSome Месяц назад

      No. Python threads are also running in parallel but are artificially locked to running one at a time. In some cases you can get rid of this lock. With python 3.12 this is about to become a lot simpler

  • @blue_name_warrior
    @blue_name_warrior Месяц назад

    # %% but nothing happened?

  • @riccardozappitelli450
    @riccardozappitelli450 Месяц назад

    Watching this now is just painful

  • @gregmarquez8222
    @gregmarquez8222 Месяц назад

    Great video! I'm trying to teach myself Neural Networks and AI, and one of my future projects will be a "snake" playing AI based on a NN. I now have experience with basic multi-layer NNs for classifying images, etc.. What would you recommend as a "next step" to go from classifiers to NN that can play snake, etc., and some learning resources for this? I realize that this video is 4 years old, but just in case you are monitoring the comments, I thought I'd ask. Thanks!

  • @seawardspy-jl4hz
    @seawardspy-jl4hz Месяц назад

    Anyone else have trouble with PB11 not generating the Python module? Win11 Visual Studio 2022

  • @talkingbirb2808
    @talkingbirb2808 2 месяца назад

    update: interactive mode does not generate svg images now and it is advised to use %matplotlib widget or something similar instead

  • @JOHNSMITH-ve3rq
    @JOHNSMITH-ve3rq 2 месяца назад

    astonishingly efficient pedagogy here. Props man! Thanks!!

  • @user-eh4bh4no2t
    @user-eh4bh4no2t 2 месяца назад

    can you help me install python on termux without an error, when i install it i get this error message E: Sub-process /data/data/com.termux/files/usr/bin/dpkg returned an error code (2)

  • @lion123-nh6jb
    @lion123-nh6jb 3 месяца назад

    how can I use pybind11 as python-package? If I install it via conda/pip, what is then the path in find_package command in CMake?

  • @ChrisCox-wv7oo
    @ChrisCox-wv7oo 3 месяца назад

    I didn't know about Ctrl t with fzf, I usually do **<tab> for the same functionality. Ctrl t is the way to go though. Thanks!

  • @helgemunkjacobsen8452
    @helgemunkjacobsen8452 3 месяца назад

    The reason why you haven't met anyone else that uses Redis Simple Cache might be because they just use the Python standard library `functools.lru_cache()`?

  • @TheGoatsy
    @TheGoatsy 3 месяца назад

    I actually never used this to my benefit as well, but why should someone use this instead of a .ipynb file?

    • @JackofSome
      @JackofSome 3 месяца назад

      Text files are arguably more portable and are definitely easier to version control. Ultimately it's all preference though

  • @NikoKun
    @NikoKun 3 месяца назад

    I took my own weird route to playing around with this idea.. First, I wrote a more classic rules based bot to play snake, with it's own recursive function to check future choices for dead ends. It's not perfect, but it can often play the game well enough, to fill half the available space with snake before dying to more difficult to avoid dead-ends. I then used that bot to record 10,000 of it's highest scoring games frame by frame, a couple million frames in total, also recording each action it took per frame. Then I fed all that data into a basic neural network, and ran a few hundred training epochs. So far I've gotten the neural network to play the game alright, but only about as good as my bot. heh

  • @epic10l2gaming6
    @epic10l2gaming6 3 месяца назад

    1:00 when did you ever do smth computationaly intensive in python? i guess never.... meanwhile me trying to figure out how to run through 2^32 combinations of numbers using python :/

    • @JackofSome
      @JackofSome 3 месяца назад

      Don't. Pure Python is the wrong language for it. Use numba or cython for a familiar feel. Or learn to use mypyc. Or use a completely different language.

  • @unflexian
    @unflexian 4 месяца назад

    mate you're a jupyter magician

  • @jawadmansoor6064
    @jawadmansoor6064 4 месяца назад

    that is beautiful background colour on websites. how did you get it?

  • @1q1q1q1q1q1q1qw
    @1q1q1q1q1q1q1qw 4 месяца назад

    thus it also work for object oriented code class functions . or only for simple calculations.

    • @JackofSome
      @JackofSome 4 месяца назад

      Newer versions of numba have ways to compile classes

    • @1q1q1q1q1q1q1qw
      @1q1q1q1q1q1q1qw 4 месяца назад

      @@JackofSome thx :)

    • @1q1q1q1q1q1q1qw
      @1q1q1q1q1q1q1qw 4 месяца назад

      I often have the problem that my functions take objects as input and act on them. I need to build an additional wrapper to encapsulate simple calculations that can be optimized that's somehow annoying.

  • @deeplazydev
    @deeplazydev 5 месяцев назад

    Amazing video!

  • @anotherdeadguy
    @anotherdeadguy 5 месяцев назад

    can you make a video on how to customize the terminal like yours?

  • @diogoledermann7393
    @diogoledermann7393 5 месяцев назад

    Great vid 👍

  • @idirhouari3878
    @idirhouari3878 5 месяцев назад

    I usually watch videos in x2 speed, however here I had to put it in 0.5x speed 🤣 I'm discovering both C++ and pybind11 so although it is hard to follow everything yet your explanation is pretty cool as it sums up most of the functionalities available in a short time, I now understand better where I need to start ! thank you

  • @sreenath1987
    @sreenath1987 6 месяцев назад

    Awesome video. Small nit though… in the second time test… imread comes after start time. Wouldn’t that increase the time taken!?

  • @Bbdu75yg
    @Bbdu75yg 7 месяцев назад

    Amazing ❤

  • @_0xUr_
    @_0xUr_ 7 месяцев назад

    I'm 20 but I know it since python 2 days

  • @user-bk2pt5ny9h
    @user-bk2pt5ny9h 7 месяцев назад

    Been trying to install bardapi on termux for two days... Gonna try this

  • @noctesomnium
    @noctesomnium 7 месяцев назад

    is there any way to make intellisense to analyse the python module imported?

  • @girlswithgames
    @girlswithgames 7 месяцев назад

    just run python twice 8)

  • @phonglai86
    @phonglai86 8 месяцев назад

    I don't know how to write a Makefile for this :((

  • @user-ht7gg8xs3u
    @user-ht7gg8xs3u 8 месяцев назад

    This is a lifesaver! I'm used to Matlab and recently picked up Python. It's great to check what I'm doing. Thank you!

  • @hopehype6467
    @hopehype6467 8 месяцев назад

    I would love a more in depth tutorial for the 3d display you're showing please

  • @vanischesmall
    @vanischesmall 8 месяцев назад

    how to make terminal like his? its awesome

    • @hawk__
      @hawk__ 8 месяцев назад

      KDE does take care of most of the stuff transparency + blur + there's a world of community themes

  • @abrarmasumabir3809
    @abrarmasumabir3809 9 месяцев назад

    What font are you using?

  • @user-if2rh5ur5x
    @user-if2rh5ur5x 9 месяцев назад

    love u man , this is aws!!!! Very well explained

  • @syoudipta
    @syoudipta 10 месяцев назад

    After being skeptical about this library for a while, I've gotten used to it. I've watched many tutorials and read many articles and documentation. After weeks of determination to learn this technique properly,... I have become, comfortably Numba. 🤟

  • @juanwoodcock5217
    @juanwoodcock5217 10 месяцев назад

    Very nice video. +1 like and subscription

  • @user-kg4oj1fv2w
    @user-kg4oj1fv2w 10 месяцев назад

    Omg bro can type faster than I think

  • @dank8981
    @dank8981 10 месяцев назад

    Straight to the point and super clear!

  • @anshumankumar3503
    @anshumankumar3503 10 месяцев назад

    I think it would be helpful to add what kind of tasks can be multi-threaded in Python, since for certain computational tasks, without numba, the GIL would block multiple threads and make processing single-threaded.

  • @fakt7814
    @fakt7814 11 месяцев назад

    Today I encountered exactly that problem and then I remembered this video. Thank you.

  • @Cdaprod
    @Cdaprod 11 месяцев назад

    Nice!

  • @meem_hub1
    @meem_hub1 11 месяцев назад

    is it work only local network 😂 can't log over the internet 😢

  • @yash1152
    @yash1152 11 месяцев назад

    1:53 yep, discovered this accidently myself some months ago. its nice.

  • @dakshbhatnagar
    @dakshbhatnagar Год назад

    Is this possible in Jupyter Notebooks? Because if it is, the Machine learning model training is gonna be whole lot faster even for deep neural nets.

  • @nb664rbk
    @nb664rbk Год назад

    did it ever cross your mind that you're going too fast?

  • @abrarmasumabir3809
    @abrarmasumabir3809 Год назад

    Sir what theme are you using? Can I install this theme for vim!

  • @uonliaquat7957
    @uonliaquat7957 Год назад

    I had a question that how can I use Ray with Deep Q Learning in order to improve training time?