00:01
This question, we have to write a code in matlab.
00:03
So we'll just have a look at what steps basically we are going to follow.
00:10
So first thing that we'll do is we load and plot some sample data set.
00:16
So we load and plot the data set.
00:32
That means we'll have a simple nrx data set that is loaded containing a cell that is a cell array of two time series data.
00:44
So one is to be used for training and the other is used for the testing.
00:49
So then we have a split data set in this that is a split the data set.
01:01
So in this case, a total number of samples is calculated.
01:05
Then the train test split ratio of 90 is to 10 is specified over here.
01:11
So the training data is taken from the beginning of the data set and the test data is taken from the remaining part.
01:20
So now we have to standardize the data.
01:24
So standardize it.
01:34
So here the mean that is m, mu.
01:38
So mean and the standard deviation that is sigma of the training data are calculated.
01:43
So the training and the test data are standardized data.
01:49
So these standardized data, they are standardized by subtracting the mean and dividing by the standard deviation.
01:58
So next we have to specify the responses.
02:08
Specify the responses.
02:10
So now we will see what this means.
02:14
So the training sequences are created by taking each time step.
02:19
So this is done except the last one as input, whatever that will be there, that is x train, for example, over here.
02:28
So this will depend on what is the last input that is the last one input that is in the list.
02:37
So now we have a look at a basic python compiler so that we'll just see how this code is to be written.
02:47
So first we'll load the plot and the sample data set.
02:53
So i'll write it stepwise for a clear understanding.
02:57
So first here as you can see we have written the plot and the data that is there.
03:05
So here the simple narcs data set here, it is loaded containing a cell array of two time series data.
03:15
That is one is used for training and the other is used for testing.
03:19
So the first subplot that is the training data set and the second subplot that is the testing data set.
03:28
So as you can see it is written over here.
03:31
So the first subplot plots the training data set and the second one plots the second subplot plots the testing data set.
03:40
So now we will split the data set.
03:43
So for doing that we will be using these steps.
03:50
So as you can see, so here in the step two, now we have to split the data set.
03:59
So the total number of samples over here is calculated and the train test split ratio that is 90 is to 10 is specified.
04:09
The training data is taken from the beginning of the data set and the test data is taken from the remaining part.
04:16
So now we've standardized the data...