WEBVTT

00:02.040 --> 00:04.560
Hello, everyone, and welcome to this story.

00:05.040 --> 00:12.180
In previous tutorial, we unless understood Arab BASIX enlisted ordeal will understand how to create

00:12.220 --> 00:15.000
numpty at using builtin methods.

00:16.380 --> 00:17.310
Let us begin.

00:17.590 --> 00:26.790
First, we have to import NIMBY type import numpty as ENPI execute.

00:28.160 --> 00:31.950
Great first matter, we will understand a range.

00:36.310 --> 00:39.640
Type and B dot range.

00:41.920 --> 00:45.300
Here you can see start, stop and step.

00:45.610 --> 00:48.730
These are the three arguments that we can pass here.

00:49.390 --> 00:53.800
As of now, we will pass only two arguments, start and stop.

00:55.060 --> 00:56.130
Zero chromatin.

01:01.930 --> 01:09.960
So this is our number peek at a numbers from zero two nine, the at any method is very similar to derange

01:10.030 --> 01:10.750
function.

01:11.000 --> 01:15.840
Upper bound is excluded to get the output from zero to 10.

01:17.440 --> 01:20.600
Type eleven as upper bound execute.

01:20.800 --> 01:24.930
Again, no v how the numbers from zero to ten.

01:27.040 --> 01:32.590
So this way we can create an array using a range method in arranged method.

01:32.650 --> 01:34.010
We can add step size.

01:34.180 --> 01:38.200
Also let us see how type and p dot arrange.

01:41.210 --> 01:49.880
In parentheses, start with zero, stop with 11 and step sides to execute.

01:51.650 --> 01:54.050
Zero two four six eight pain.

01:54.680 --> 01:58.100
This is the output first tape saved is equal to two.

01:59.700 --> 02:04.250
So this is all about the brain function or we can say arranged method.

02:05.190 --> 02:05.970
Let us understand.

02:05.990 --> 02:09.120
Second method zeroes.

02:13.120 --> 02:20.280
Using this method, they can create an array of all these roads type and be dirt roads.

02:23.120 --> 02:24.560
And in parentheses.

02:25.710 --> 02:26.190
Three.

02:26.710 --> 02:27.470
Execute.

02:28.680 --> 02:32.450
So there are three elements in this at a all RTG roads.

02:33.120 --> 02:34.520
This is one at a

02:37.650 --> 02:38.970
using veto's method.

02:39.030 --> 02:40.620
We can create A to B at.

02:40.860 --> 02:46.870
Also, let us see how type and Da Dee Road.

02:48.720 --> 02:55.290
And in parentheses, we have to specify a double the number of rows is equal to three.

02:55.890 --> 02:58.240
And number of columns is equal to fold.

03:00.730 --> 03:07.990
Three rows and four columns, all elements are easy to first be able to specify number of rows, and

03:07.990 --> 03:12.790
then we have to specify a number of columns, three rows and four columns.

03:13.900 --> 03:16.260
So this is all about the veto's method.

03:17.170 --> 03:17.960
Let us understand.

03:17.980 --> 03:20.430
Third method ones.

03:23.830 --> 03:33.820
Using this method, they can create an array of all the ones type Empy dot ones and in parentheses,

03:34.270 --> 03:36.160
three execute.

03:36.850 --> 03:37.930
This is the output.

03:38.140 --> 03:39.970
Three elements in this area.

03:40.570 --> 03:42.300
This is one dimensional array.

03:45.650 --> 03:50.780
Now, there are four elements we can create, two dimensional.

03:50.860 --> 04:01.130
Edit also let us see how type and p dot ones and in parentheses V how to specify a couple.

04:01.730 --> 04:11.120
First, we have to pass in number of rows and then number of columns executed for rows and five columns.

04:11.720 --> 04:14.780
Now there are food rules and five columns.

04:14.990 --> 04:16.740
All the elements are of one.

04:17.420 --> 04:19.490
So this is all about this method.

04:23.250 --> 04:24.130
Let us understand.

04:24.150 --> 04:26.270
For my part, Lynn Space.

04:30.520 --> 04:35.740
DeLynn Space returns a wine list based numbers over a specified interval.

04:36.430 --> 04:38.050
Let us understand this method.

04:38.530 --> 04:41.860
Type in P dot space

04:44.080 --> 04:46.390
zero comma for you.

04:46.590 --> 04:47.500
Call Madain.

04:48.160 --> 04:49.000
Take the cube.

04:49.990 --> 04:50.590
Great.

04:50.950 --> 04:52.600
Let us understand this output.

04:53.080 --> 04:56.730
So here we have specified a range from zero to five.

04:57.490 --> 05:01.450
And in this range, these are the ten evenly spaced points.

05:02.410 --> 05:04.120
Let us see one more example.

05:05.080 --> 05:07.030
Copy this based.

05:08.090 --> 05:10.150
We can get any number of points.

05:10.780 --> 05:13.120
815 execute.

05:14.710 --> 05:19.120
So these are the fifteen evenly spaced points between zero two for you.

05:19.780 --> 05:22.420
So this is all about Dilling's best method.

05:23.890 --> 05:26.170
Let us understand our next method.

05:26.710 --> 05:27.690
Eevi e.

05:28.310 --> 05:28.780
I.

05:30.580 --> 05:33.910
We use this method to create an identity matrix.

05:34.210 --> 05:42.220
We use identity matrix in linear algebra problems type ENPI Dot I method.

05:44.330 --> 05:46.830
In parentheses, specify for you.

05:49.140 --> 05:52.320
So this is an identity matrix of five by five.

05:52.950 --> 05:55.650
That is five rules and five columns.

05:56.250 --> 05:58.220
So this is all about this method.

06:02.600 --> 06:06.090
Let us understand how to create ease of random numbers.

06:14.380 --> 06:23.850
Type in B, don't lend them dot land and therefore you execute.

06:25.180 --> 06:31.150
So this is an array of random samples of uniform distribution from zero to one.

06:31.690 --> 06:33.340
We can create two dimensional.

06:33.790 --> 06:34.450
Also.

06:35.820 --> 06:39.020
Type and B, not random.

06:41.410 --> 06:41.810
Dot.

06:43.290 --> 06:50.880
And here we have to specify number of roads and number of columns, I will specify food by food.

06:51.300 --> 06:56.120
No, no, down here we are not specifying this input as a double.

06:58.550 --> 07:03.230
So this is over, I'll put a uniform distribution between zero to one.

07:03.830 --> 07:06.860
So this way we can get any new found distribution.

07:08.000 --> 07:09.220
I will mention here.

07:11.970 --> 07:13.530
Uniform distribution.

07:20.760 --> 07:22.320
Between zero to one.

07:24.270 --> 07:25.080
Let us understand.

07:25.110 --> 07:27.910
How can we get standard normal distribution?

07:40.500 --> 07:43.670
All we can say that Gotha and distribution.

07:51.410 --> 08:01.130
Type in B, dot random dot land and specify for.

08:02.750 --> 08:08.390
So this is the Gorshin distribution of weekend said that standard normal distribution.

08:10.770 --> 08:12.150
This is Bundi, Eddie.

08:15.800 --> 08:26.840
Let us create to the Eddie Empey daughter, Random Dorland, and specified number of throws, a number

08:26.840 --> 08:27.750
of columns.

08:29.540 --> 08:31.830
So this is a two dimensional at a.

08:32.120 --> 08:33.140
You can see here.

08:34.240 --> 08:37.940
Two brocades, let us understand one more method.

08:43.800 --> 08:45.030
Random integer.

08:46.240 --> 08:48.380
This method returns random integer.

08:48.640 --> 08:54.730
Let us see how enpi dot, random dot.

08:55.870 --> 08:57.070
Random integer.

08:58.510 --> 09:01.120
Here we have to specify low and high.

09:01.630 --> 09:05.860
I will specify low is equal to zero and high is equal 200.

09:07.010 --> 09:09.220
Execute 20.

09:09.670 --> 09:12.430
So this is a random integer from this range.

09:12.790 --> 09:13.930
Zero 200.

09:14.470 --> 09:16.120
Zero is includes you.

09:16.300 --> 09:16.900
And handed.

09:16.960 --> 09:18.100
Is excludes you.

09:18.690 --> 09:19.570
Run again.

09:20.640 --> 09:21.590
77.

09:22.390 --> 09:23.560
Then one more time.

09:23.920 --> 09:24.520
Nine.

09:25.600 --> 09:29.290
With this method, we can get a particular number of outputs.

09:29.890 --> 09:34.930
Let us see how corporate is called based.

09:35.530 --> 09:41.980
Specify one more parameter ten, ten random integers.

09:42.550 --> 09:45.460
So this is all about the random integer method.

09:46.210 --> 09:49.060
Let us revise what we have learned in this to go to Yale.

09:51.560 --> 09:56.970
In this tutorial, we help understood how to create Numpty added using building methods.

09:57.330 --> 09:59.430
First, we help understood this method.

09:59.700 --> 10:02.070
Arrange to use this method.

10:02.100 --> 10:04.350
We have to type and p dot a range.

10:06.450 --> 10:10.380
After that, we help understood method zeros, then ones.

10:12.210 --> 10:14.550
Then we help understood Lean's best method.

10:14.610 --> 10:16.030
And then I method.

10:18.660 --> 10:23.690
After that we help understood how to create a uniform distribution between zero to one.

10:24.690 --> 10:26.080
This is one dimensional a.

10:26.190 --> 10:28.100
And this is two dimensional at a.

10:29.250 --> 10:32.790
Then we understood how to get standard normal distribution.

10:34.860 --> 10:38.190
And at the end we help understood how to get random integer.

10:38.970 --> 10:41.140
So this patented odille ends here.

10:41.550 --> 10:43.530
I will see you in the next one.

10:43.880 --> 10:45.630
buildOn happy learning.
