The Most Important Object In Python: A Full Tutorial

  Рет қаралды 40,259

Mr. P Solver

Mr. P Solver

Күн бұрын

Check out my course on UDEMY: learn the skills you need for coding in STEM:
www.udemy.com/course/python-s...
Code from this video: github.com/lukepolson/youtube...
Join the Discord Server: / discord
Follow on Instagram: / mrpsolver
0:00 Introduction
0:49 Basic 1D Arrays
3:05 Intro To Multi Dimensional Arrays
10:32 Array Reshaping
12:23 Broadcasting Rules
16:51 Broadcasting Example
19:04 Operating Along Dimensions
23:05 3 Practical Examples

Пікірлер: 63
@wanadzhar3031
@wanadzhar3031 Жыл бұрын
This isn't a shitpost.
@4001Jester
@4001Jester Жыл бұрын
i was honestly hoping for the bumpy array
@MrPSolver
@MrPSolver Жыл бұрын
You know what, maybe I will make this anyways.
@nyden94
@nyden94 Жыл бұрын
One of the best numpy videos I've found. Every time I get confused with dimensions, I come back here!
@buhariibrahim4055
@buhariibrahim4055 Жыл бұрын
@Mr. P Solver, I am an engineering grad student without coding background from undergrad. For some time now, I have been trying to learn programming for a while now jumping from tutorial to tutorial and just recently stumbled upon your channel. I must say, you are by far the best I have come across. Your examples are targeted and straight to the point, and are also very relevant to real numerical computation problems. I therefore want to express my gratitude for the time and effort you spend in creating these videos. Thank you!
@MrPSolver
@MrPSolver Жыл бұрын
Cheers :)
@fransdebruijn6763
@fransdebruijn6763 Жыл бұрын
@@MrPSolver The quality and placement of the microphone makes a HUGE difference. many tutorials are some Indian dude with a scratchy microphone in an room with a lot of echo. Others are with a crappy distorted compressed headset microphone. completely unusable.
@calebstamper1419
@calebstamper1419 Жыл бұрын
Similar boat and strongly agree!
@ronmurayama4469
@ronmurayama4469 Жыл бұрын
Excellent explanation of making complex procedures simple, thank you Luke!
@urban_sculptor
@urban_sculptor Жыл бұрын
I previously found broadcasting really confusing, but now all makes sense - thanks a lot!
@cianjones2728
@cianjones2728 Жыл бұрын
Very underrated chanel, good vid
@TheTWAlbert
@TheTWAlbert Жыл бұрын
Bro this is a nice one, you just clarify the concept of numpy so clean. Nice job!
@AnimeYTube
@AnimeYTube Жыл бұрын
My man, i get in this channel by Billy, but i found one of the best tutorials that i've ever see, u open my mind, thank you and continue, when i star earning money remember me to donate something to you haha
@andrewglick6279
@andrewglick6279 Жыл бұрын
Fantastic video! It effectively sums up (pun intended) everything about Numpy arrays in an organized manner. I will definitely be recommending this to people. One suggestion I would make is to not use images of size 256 in the future. The numbers 255 or 256 in the context of images usually makes me think of pixel values rather than size, so I had a bit of confusion there for a bit. A size of 128 or 512 would be fine, though.
@algiffaryriony
@algiffaryriony Жыл бұрын
Great video! I hope more people learning ML and using numpy get to see this.
@AWest-ns3dl
@AWest-ns3dl Жыл бұрын
Dimension analysis is also great for making sure your units work out in an equation. E.g. 6m / 3s = 2m/s
@charlesspringer4709
@charlesspringer4709 Жыл бұрын
You gotta remember to leave an empty 10 seconds on the end so we can see how it finishes without the thumbnails in the way.
@hoonji126
@hoonji126 Жыл бұрын
Sir this is absolute gold. Please turn on super thanks so I can express my gratitude in usd dollars.
@sagsolyukariasagi
@sagsolyukariasagi Жыл бұрын
Great content! Thanks for this Luke. Can you please prepare a video tutorial about physics informed NN's?
@random_netizen
@random_netizen Жыл бұрын
O.M.G this ia what i need to complate my final project, huge respect
@TaifPatwary
@TaifPatwary Жыл бұрын
Yo this is great man!! Thanks for this content
@Piipolinoo
@Piipolinoo Жыл бұрын
Awesome video, as always! Keep it up :)
@prietjepruck
@prietjepruck Жыл бұрын
Thanks for this great tutorial. For me this is the best way to learn. Keep up the good work.
@philippe6724
@philippe6724 Ай бұрын
Amazing ‘to the point’ lesson
@karansmittal
@karansmittal Жыл бұрын
This was really helpful!!
@khidhrhalab3543
@khidhrhalab3543 Жыл бұрын
thanks for the knowledge you spread !, i have a question , on the last example ,isn't the green channel index supposed to be 1 rather than 2?
@deepgalxy
@deepgalxy Жыл бұрын
Really love your video, super good
@sonugeorgealex
@sonugeorgealex Жыл бұрын
Thank you for such a wonderful lecture🥰🥰
@AJMansfield1
@AJMansfield1 Жыл бұрын
26:00 This is not an appropriate or correct use of `reshape`; it's incredibly brittle and breaks with any change to the shape of the input. The function you actually want there is `expand_dims`; or, better yet, pass `keepdims=True` as an extra argument to `sum`. Doing it with expand/keepdims means not only does it not break when x becomes a (4,50) array instead of a (3,50) array, it even still works when you add on another dimension to make it a (4,50,3) array.
@harrytsang1501
@harrytsang1501 Жыл бұрын
Numpy is great. Some courses that used to use R and Matlab are switching to it. Being accessible aside, numpy is essentially just compiled C with python bindings. That's why it can be fast and the same api can be used to take advantage of CUDA hardware with little overhead from python.
@aflous
@aflous Жыл бұрын
Nice one Mr. P ;)
@einsteinsboi
@einsteinsboi Жыл бұрын
Fantastic video thank you!
@estrastyven3752
@estrastyven3752 Жыл бұрын
Thank you shregory!
@iStrawHat07
@iStrawHat07 Жыл бұрын
I literally have no idea what the hell is Numpy but I watched this video anyways. Liked and subbed too. Hah!
@houstonbova3136
@houstonbova3136 Жыл бұрын
Have you checked out polars at all yet? It’s a lot quicker than pandas.
@mindeyi
@mindeyi Жыл бұрын
I'd like you to cover xarray library ^__^
@sunchimoonchi
@sunchimoonchi Жыл бұрын
I'm that Anything!!!. Just learning...lol
@degenyakuza
@degenyakuza Жыл бұрын
the magician
@subhashsingh8553
@subhashsingh8553 Жыл бұрын
Sir, pls make video on geometry also-circles,traingles,quad on python
@tilkesh
@tilkesh 7 ай бұрын
Thanks
@tomquareme3787
@tomquareme3787 Жыл бұрын
Numpy is realy nice if you can vectorize your code or can use list and generator comprehensions. But sometimes when I can't vectorize and have to resort to for-loops I use Numba. It's fast and great and all, but when you have to do something non-trivial involving dates and np.datetime64, it's hard to avoid cryptic errors and I tend to fall back to object-mode for some parts which will be slower... I really wish in the near future the Numba subset of Python will be expanded and most of the standard lib stuff will be usable. I was thinking to switch to Julia, but I don't know... It's ecosystem of libs for data science and ML is a lot smaller, JIT compilation can be slow for short lived programs, 1-based indexing is a bit meh but not troublesome though. Sometimes I think C/C++ isn't that bad at all, but Python's convenience for libraries and string manipulation is hard to beat. Feels like I'm stuck between suboptimal solutions.
@AWest-ns3dl
@AWest-ns3dl Жыл бұрын
My rabbit hole of optimisation:. native, numpy, patience, numba, jit, cython, patience, dask, spark, fortran.
@stymlice2332
@stymlice2332 Жыл бұрын
@@AWest-ns3dl how tf you even go from python to fortran 💀
@AWest-ns3dl
@AWest-ns3dl Жыл бұрын
@@stymlice2332 after a double serving of patience.
@TheGmr140
@TheGmr140 Жыл бұрын
Numpy is magic
@benheet6730
@benheet6730 Жыл бұрын
Which vs code theme is it?
@shikharrana2229
@shikharrana2229 Жыл бұрын
It's jupyter notebook on Vs code
@benheet6730
@benheet6730 Жыл бұрын
@@shikharrana2229 yea I know, talking bout that green highlighting of the font
@Zzznmop
@Zzznmop Жыл бұрын
Would the underlying data structure be more import, since numpy arrays can’t exist without them?
@I_Unintentionally_Morph
@I_Unintentionally_Morph Жыл бұрын
Wow
@SOLOMON-ALEXANDER
@SOLOMON-ALEXANDER Жыл бұрын
Python is easy😆💯🔥that's why it's my favourite language... I learnt this numpy... Import numpy as np👍
@erichstocker8358
@erichstocker8358 Жыл бұрын
Numpy is NOT a part of basic python. While the numpy module is a great module and is definitely part of the anaconda distribution (a very good one for science and engineers), numpy should not be presented as if it were part of basic python. You should state that using the addon numpy array is a key technique for people who use that extension; not that it is part of python.
@chinchillamdgamer
@chinchillamdgamer Жыл бұрын
Wait ... Wheres the parrot?
@user-jq5bz4wp2e
@user-jq5bz4wp2e Жыл бұрын
All that is well and good. But why can't you do a reverse sort on numpy arrays? I can get it done but I have to jump through hoops. For example you can multiply it by -1, sort it and multiply it by -1 again. But why?!? Sometimes I wake up at night screaming "WHERE IS MY REVERSE SORT!?!?". It haunts me. It would be so simple to implement. I can't help but think they are just screwing with us. Or maybe just me. I can't sleep. I can't eat. I can't think about anything else. My life is ruined. Bastards.
@nehemiah6280
@nehemiah6280 Жыл бұрын
He makes real coding videos?
@rallokkcaz
@rallokkcaz Жыл бұрын
Except numpy isn't part of Python. It's a library.
@aatkarelse8218
@aatkarelse8218 Жыл бұрын
Wrong, the best skill is structuring your code so that others can still read it, lots of so called data scientists fail at this.
@MrPSolver
@MrPSolver Жыл бұрын
Quite true!
@Eeeff
@Eeeff Жыл бұрын
If you're the only DS on your team, then why would it matter how readable your code is? Surely other skills are more important in this case.
@aatkarelse8218
@aatkarelse8218 Жыл бұрын
@@Eeeff And you plan to stay as the only DS in your team?
@Eeeff
@Eeeff Жыл бұрын
@@aatkarelse8218 No, but in the scenario where you are the only DS, having organized code comes second to functionality.
@aatkarelse8218
@aatkarelse8218 Жыл бұрын
​@@Eeeff So you refactor your code after it is done, as in it functions?
@TheDarkhawk243
@TheDarkhawk243 Жыл бұрын
stop waving your hand when they dont need to be waved lol
New Gadgets! Bycycle 4.0 🚲 #shorts
00:14
BongBee Family
Рет қаралды 10 МЛН
WHY IS A CAR MORE EXPENSIVE THAN A GIRL?
00:37
Levsob
Рет қаралды 12 МЛН
КАРМАНЧИК 2 СЕЗОН 6 СЕРИЯ
21:57
Inter Production
Рет қаралды 451 М.
I Need Your Help..
00:33
Stokes Twins
Рет қаралды 145 МЛН
Kalem ile Apple Pen Nasıl Yapılır?😱
0:20
Safak Novruz
Рет қаралды 1,2 МЛН
What model of phone do you have?
0:16
Hassyl Joon
Рет қаралды 66 М.