Session 14 - Advanced Numpy | Data Science Mentorship Program (DSMP) 2022-23 | Free Session

  Рет қаралды 46,518

CampusX

CampusX

Күн бұрын

Пікірлер: 43
@nikunjjain5212
@nikunjjain5212 Жыл бұрын
Every topic is easy...if aap pdha rhe hai . Broadcasting is Crystal clear 😉. Thank you 😊
@123arskas
@123arskas Жыл бұрын
You're a Monster, a Beast. I can't even memorize the stuff that you explain even though I understood it all and practiced it all. Meanwhile you just know everything. You're awesome.
@abdulhannan-go8hl
@abdulhannan-go8hl Жыл бұрын
off course, he is a gem, bro. i wonder itna brilliant b koi ho skta hai
@karankeshav1
@karankeshav1 Жыл бұрын
It's not that much difficult, although he has a teaching experience as well as working experience...so for a person who has both type of experience , it's not that much difficult to teach something. But also he is working hard and teaching and managing all the things itself
@priyanshuprajapati539
@priyanshuprajapati539 3 ай бұрын
20:20 It won't throw an error because `np.arange` clips (or wraps around) values that fall outside the representable range of `np.int8`. Here's a breakdown of what happens: 1. **`np.arange(10000000, dtype=np.int8)`:** This line attempts to create a NumPy array named `a` with elements ranging from 0 (inclusive) to 9999999 (exclusive) using the `int8` data type. 2. **`int8` Range:** As you know, `int8` can only store values from -128 to 127. 3. **Clipping:** Since the requested starting and ending points (0 and 9999999) are within the representable range of `int8`, `np.arange` doesn't raise an error. However, any numbers generated beyond the valid range are "clipped" to fit within the limits. **In essence, the array `a` will actually contain:** * The first 127 elements will be values from 0 to 127 (as intended). * The remaining elements (up to 9999999) will be "wrapped around" and start over from -128. This repetition continues until the desired length (10000000) is reached. **`sys.getsizeof(a)`:** This line calls the `sys.getsizeof` function to determine the size of the array `a` in bytes. This size will reflect the actual memory allocated for the array, which depends on the number of elements and the data type used. While no error is thrown, this behavior might not be what you intended. If you need to store numbers within the range 0 to 9999999, you should consider using a larger data type like `np.int16` or `np.int32` that can accommodate these values.
@priyanshuprajapati539
@priyanshuprajapati539 3 ай бұрын
Clipped off and wrapped around, in the context of NumPy arrays and data types, refer to how values outside the representable range of a data type are handled. Here's a breakdown of each term: **Clipped Off:** * When a value attempts to exceed the maximum positive value a data type can store, it gets "clipped" to the maximum. * Similarly, if a value tries to fall below the minimum negative value, it gets "clipped" to the minimum. Imagine a data type with a range of 0 to 100. Any number greater than 100 would be "clipped" down to 100, and any number less than 0 would be "clipped" up to 0. **Wrapped Around:** * This concept applies specifically to signed integer data types, like `int8` in your example. * If a value attempts to exceed the maximum positive value (e.g., 127 for `int8`), it doesn't raise an error. Instead, it "wraps around" and starts over from the minimum negative value (-128 for `int8`). This continues in a cyclical pattern. Think of it like a circular number line. Reaching the end (maximum) makes you jump back to the beginning (minimum) and continue counting. **Example:** ```python import numpy as np # Array with values outside int8 range arr = np.array([150, -130, 5], dtype=np.int8) print(arr) # Output: [-6, 127, 5] # 150 is clipped to the maximum (127) # -130 is wrapped around to the minimum (127) and then clipped to -128 # 5 remains within the range ``` Here, 150 is clipped to 127, the maximum representable value for `int8`. -130 is wrapped around to -128 (minimum) but since -128 is also the minimum limit, it stays there. Finally, 5 remains unchanged as it falls within the valid range. **Key Points:** * Clipping off generally occurs with both signed and unsigned integer data types. * Wrapping around is specific to signed integer data types where values can cycle through the range. * It's important to choose a data type that can accommodate the range of values you intend to store in your NumPy arrays. I hope this explanation clarifies the concepts of clipping off and wrapping around!
@pradhumn5503
@pradhumn5503 15 күн бұрын
Best channel for data science on the whole youtube
@rohinisingh6916
@rohinisingh6916 6 ай бұрын
You are the great sir . awesome explanation ☺️.
@sajjaduddin8188
@sajjaduddin8188 Ай бұрын
Thank you once again
@mohitdhillon3153
@mohitdhillon3153 11 ай бұрын
Thanks!
@makarsh29
@makarsh29 5 күн бұрын
best teacher ever
@tanvirhasanmahmud
@tanvirhasanmahmud Жыл бұрын
Nice Video
@anilrathore.bigthink
@anilrathore.bigthink Жыл бұрын
really increadible! ultimate pro max teacher
@descendantsoftheheroes_660
@descendantsoftheheroes_660 Жыл бұрын
GOD BLESS YOU SIR....INDIA MAKE GREAT AGAIN
@somanshkumar1325
@somanshkumar1325 Жыл бұрын
Super Amazing session. Very much informative, thoroughly enjoyed the session. Thank you so much, Nitish :)
@raosajid6578
@raosajid6578 Жыл бұрын
great explanation sir
@lokeshagarwal6373
@lokeshagarwal6373 Жыл бұрын
very very Nice Sir
@SameerAli-nm8xn
@SameerAli-nm8xn Жыл бұрын
Sir you are the best 🙏🙏
@DeepakPandey-dv8cn
@DeepakPandey-dv8cn Жыл бұрын
thank so much sir
@siddhigolatkar8558
@siddhigolatkar8558 Жыл бұрын
Thank you Sir
@Shaikh-Ji
@Shaikh-Ji Жыл бұрын
yes we can hear you sir thank you
@DeepakPandey-dv8cn
@DeepakPandey-dv8cn Жыл бұрын
excellent sir
@mehediazad1780
@mehediazad1780 Жыл бұрын
thank you
@yasirbhatti7607
@yasirbhatti7607 Жыл бұрын
sir chat gpt tell that your channel is best for learning data science
@amanJ9
@amanJ9 4 ай бұрын
Bro aap Sabse achcha padhate hai ❤❤❤❤
@jyothsnaraajjj
@jyothsnaraajjj Жыл бұрын
Excellent
@araban3409
@araban3409 8 күн бұрын
feeling sad for those who don't find this channel.
@prashantmaurya9635
@prashantmaurya9635 6 ай бұрын
IDK why, but when you said "haan, main missing value hu" is too funny for me. 🤣🤣🤣 BTW a great explanation.
@shwetan1250
@shwetan1250 Жыл бұрын
Sir want to join this mentorship program due to got this on Christmas holiday. But i think i m late to join now what to do .😔😔🤨🤨
@sujithsaikalakonda4863
@sujithsaikalakonda4863 Жыл бұрын
Wonderful session sir.
@subenakhatun-z2r
@subenakhatun-z2r 6 ай бұрын
I want to join this course but do not have a credit card. I am from Bangladesh. please Sir make any system that's why outside India anyone can join.
@jasmeetkaur-zy9mq
@jasmeetkaur-zy9mq Жыл бұрын
but sir , this rules cannot be applied upon all the examples, like: (3,2) (3)
@balrajprajesh6473
@balrajprajesh6473 Жыл бұрын
Best
@umangmittal750
@umangmittal750 Жыл бұрын
Can anyone provide me the solution of the task given in each class session? Please
@AmritSwarn-x5u
@AmritSwarn-x5u 2 ай бұрын
Bhai phir ye int8 1 crore ko kaise store kar lega at 17:59 if it can only store up to 256?
@ShivamKumar-sp2dh
@ShivamKumar-sp2dh Жыл бұрын
i want to join the paid membership for whole data science course
@ShivamKumar-sp2dh
@ShivamKumar-sp2dh Жыл бұрын
please guide me ... asap
@campusx-official
@campusx-official Жыл бұрын
Kindly mail us at nitish.campusx@gmail.com
@itsentertainment9054
@itsentertainment9054 Жыл бұрын
What is yr website name.....u are great for students
@campusx-official
@campusx-official Жыл бұрын
learnwith.campusx.in
@pradeepdas410
@pradeepdas410 7 ай бұрын
data science course fee???
@yatinshekhar787
@yatinshekhar787 Ай бұрын
29/140
@Who_care360
@Who_care360 Жыл бұрын
love you sir
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
UFC 308 : Уиттакер VS Чимаев
01:54
Setanta Sports UFC
Рет қаралды 710 М.
Family Love #funny #sigma
00:16
CRAZY GREAPA
Рет қаралды 8 МЛН
How to Learn AI and Get Certified by NVIDIA
6:54
Sahil & Sarra
Рет қаралды 132 М.
Claude has taken control of my computer...
4:37
Fireship
Рет қаралды 886 М.
Is Data Science a Good Career?
7:15
codebasics
Рет қаралды 204 М.
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17