Skip to playerSkip to main content
Welcome to Part 2 of our NumPy Masterclass! In this video, we dive deeper into why NumPy is the backbone of Data Science and Machine Learning. We’ll explore the power of Vectorization and how to handle more complex structures, such as 2D and 3D arrays.

In this lesson, you will learn:
✅ Why NumPy operations are faster than standard Python lists.
✅ How to perform element-wise addition and multiplication.
✅ Creating and understanding the shape of 2D arrays (Matrices).
✅ Visualizing and working with 3D arrays (Dimensions).

Liked the video? Don't forget to 👍Like, ↩️Share, and 🔔Subscribe!
!هل أعجبك الفيديو؟ لا تنسى الإعجاب، المشاركة، والاشتراك في القناة
@Intuidemy

🔗 Links & Resources:
GitHub (Source Code): https://github.com/rubada/Machine-Learning-with-Ruba-Dabbas

#NumPy #DataScience #MachineLearning #2DArrays #3DArrays #نومباي #الذكاء_الاصطناعي #تعلم_البرمجة #شرح_نومباي

Category

📚
Learning
Transcript
00:07music
00:14Welcome again, and peace be upon you.
00:16Now we'll continue with the Num Bye
00:18We want to see how we can use NumPay
00:21To make vector operations
00:23Victorize Operations
00:25For example, we want to hit
00:30Let's first see how we can
00:33We'll do this if we have it.
00:35We want every item from this list.
00:39From one of them we multiply it by the item
00:41The equivalent in the second list
00:43That's when I found out.
00:45In order to do this
00:47What do I need to do?
00:48I'm not comprehending, I'm doing lobbying.
00:50On the list
00:52So here I did a quick in-ring
00:54Lynn Victor Anderscor is not one
00:56Take Linkesh
00:58I am not one of those who can take
01:01Of course I'm not two
01:02Any one of them is fine because they
01:04They will be the same link
01:06Then I take Victor List
01:09And I hit him
01:10In Victor, I'm not two
01:12This is what I get. What does this show up for me?
01:15The product of these
01:17The Thw Vectors or The Thw List, if you come to do a tran, let's see what result we get.
01:21Hey, look what happened!
01:23I got five
01:24Which is the product of five and one
01:26Two in six twelve
01:28Three in seven twenty-one
01:29Four times eight thirty-two
01:31Hello, I can do this much more easily if I use NumPay.
01:35Hey, here I am, I know the name, bye
01:39Using the Array Function
01:41I put two people on the follow list
01:43Then what did you do?
01:45I told you I hit the num bye
01:48Nim Bye hit
01:52I came and made a run
01:53Hey, it popped up for me
01:55Same result
01:56It's much easier here.
01:58From here, I used list comprehension
02:02The same thing applies if you want to do it yourself.
02:04Add two lists together
02:07What do you want to use?
02:08list comprehension
02:10Each item is added to the other item.
02:13If you have lists
02:15So you do it this way
02:16Or by the name of
02:19But you put the plus sign
02:20Just like we did here in
02:22beating
02:23What does "run" do?
02:25And you get the same result
02:27Hello, Nim Bay Aries, as we said
02:30They are more efficient than the list
02:33Because you don't need to use what?
02:36Four Loop
02:37So here's what we did
02:42Using what? Using the Num Bye
02:45Okay, now we need to see how we can be
02:48What are we?
02:492D
02:50Arrays
02:51Hello, because I know about 2D arrays.
02:54For example, I started with my opinion
02:56It should have 2 rows and 3 columns.
02:59What do I do with it?
03:00NP and I'm talking dot Array
03:02Using the antenna
03:03Then I put inside this arai
03:05My opinion
03:07Which is a
03:08nested list
03:09So that I can be like this
03:11The view I want to be
03:14It contains 2 rows
03:15What should I put in the nested list?
03:17I put
03:182 lists
03:20Just like I did here
03:22I have 2 lists
03:23In this list
03:24Which they will be
03:26The Arai followed me in the Arai
03:28And 3 columns are
03:30Items, number of items
03:32Inside each list
03:33For example, I have it in the first list
03:363 items
03:37And I have it in the second list
03:393 items
03:40These are them
03:413 items will be
03:43The clumps
03:44If we run
03:45Hey, look, I just got it.
03:48I
03:482D Arrays
03:492D Array
03:51It has 2 rows
03:53and 3 columns
03:55And the gray hair that followed it
03:572 3
03:59It means 2 rows
04:00and 3 columns
04:01Now, for example, if I want to be
04:05list
04:05It contains 4 rows
04:07and 3 columns
04:08I know the same thing
04:09Using the Array function
04:11And I know
04:12I put inside
04:13Array
04:14Or we use Array
04:15It contains 4 arrays
04:16Which are the four Roses
04:18and the 3 columns
04:19All Array
04:20It contains 3 items
04:21If you come
04:23Do a tran
04:23Hayo
04:24What did I get?
04:25Array
04:26In it
04:264 rows
04:27and 3 columns
04:29Hey, gray hair!
04:304
04:31and 3
04:31good
04:32We can also
04:33We use
04:34LEN function
04:35Because
04:36Let's see how much
04:37LEN function
04:38Follow this
04:382D Array
04:39If you come here
04:41I told
04:41Print LEN Array
04:432
04:43It has 3
04:44Which is
04:45The Arai
04:45Follow me
04:46If you come
04:47Do a tran
04:47What did I get?
04:492
04:49It came out to me
04:50LEN
04:52Follow this
04:52The Arai
04:53Which is
04:54number
04:55Rose
04:55I have
04:562 rows
04:57Same thing
04:58If you use it
04:59With the view
05:00Follow
05:01The one
05:01dimension
05:02Followed by
05:034 in 2
05:03If you come
05:05Do a tran
05:06Hayo Kaman
05:07I got 4
05:08It means I got it
05:10LEN followed her
05:10It is in it
05:114 rows
05:12So that's how you are
05:13If you want
05:13Used
05:14LEN function
05:16With 2D Array
05:17What's up?
05:18It will appear to you
05:19It will appear to you
05:20Number of roses
05:21good
05:21Niji Hala
05:22on
05:233D Arrays
05:243D Arrays
05:25I will be there
05:273 dimensions
05:29For example
05:29I am in
05:302D Array
05:31Hi, I have it
05:322 dimensions
05:33In 3D Array
05:35It will be
05:35I have
05:363 dimensions
05:36As
05:37That's how it is.
05:38I'm going out
05:38I have
05:39dimension
05:39Follow
05:40The Arai
05:40In this way
05:41for example
05:41I have
05:423
05:422
05:434
05:43good
05:44Let's
05:44We know
05:45what
05:45They
05:453
05:46and 2
05:46and the 4
05:47Do
05:48Let's begin
05:48Among them
05:49one
05:49one
05:50Do
05:50I
05:50I have
05:51These
05:51he
05:52for example
05:53The Arai
05:53They follow me
05:54in
05:543D
05:55first
05:56Ashi
05:57I have
05:57Rose
05:58Those who
05:59They are present
05:59on
05:59As
06:01You
06:01Seen
06:02I have
06:02Here
06:03I
06:032
06:03Rose
06:04It will be
06:05he
06:05Item
06:06The second
06:06in
06:06gray hair
06:07So, it's here.
06:07I
06:08I have
06:082
06:09Rose
06:09they
06:10and number
06:11Give you
06:13number
06:13Rose
06:14while
06:14It will be
06:15in
06:16he
06:17He is
06:18for example
06:18I have
06:184
06:18Rose
06:19Hi
06:19one
06:192
06:203
06:204
06:21And the one
06:21he
06:21what
06:224
06:23And another
06:23Ashi
06:24Which is
06:26or
06:27Z
06:27Access
06:28It will be
06:29in
06:29number
06:31the
06:31what
06:32The Ariz
06:32I mean
06:33I have
06:33in
06:34I have
06:35This
06:36Tharid
06:37Dimension
06:37three
06:38Show
06:38all
06:39Show
06:40In it
06:402
06:41Rose
06:41and
06:414
06:41Colums
06:42So, that's it.
06:42You
06:43I'll be
06:43identification
06:44The 3
06:44D
06:44Show
06:45Follow you
06:45that it
06:45you have
06:46in
06:46Tharid
06:47Dimension
06:47number
06:48The Ariz
06:49in
06:50Tharid
06:52Dimension
06:52Which is
06:53LX
06:53Access
06:54It will be
06:54you have
06:55what
06:55number
06:56Rose
06:57And in
06:58LY
06:58Access
06:59It will be
06:59you have
07:00number
07:00Columns
07:01good
07:01Hello, here
07:02We will stop
07:03God willing
07:03in
07:04Video
07:04Next
07:05Rah
07:05We continue
07:06And we take
07:06Examtel
07:07Let's see
07:07how
07:08We appreciate
07:08We are
07:083
07:09D
07:10Show
07:10Thanks
07:11your
07:11See you
07:12in
07:12Video
07:13Next

Recommended