feedforward net for regression.

5 次查看(过去 30 天)
Pappu Murthy
Pappu Murthy 2021-9-10
I have 1000 sets of data. each set consists of 4 input variables and one output variable. Variables 1, 2, and 3 remain same but only variable 4 changes for one set of data that has 10 records. So, total data size is 10000 x 5. As mentioned variables 1,2 and 3 only change from set to set and within a set they remain constant or same.
How would I use this data to train.
Here is an e.g.
.2, .4, .5, .8 ..... 12
.2, .4, .5, .2 ------ 7
-------------- 10 lines
.1, .6, .8, .5 -------- 10
.1, .6, .8, .8 ---------- 6.3
---------------------- 10 lines
and so on..
total 10000, by 5 Matrix.
Thanks in advance.
  4 个评论
Abolfazl Chaman Motlagh
I recommend you to split data :
X = data(1:4,:);
Y = data(5,:);
and just type :
nftool
the mathwork work on it perfectly i think. and it has all documentation in it. i hope it is what you are looking for.
Pappu Murthy
Pappu Murthy 2021-9-13
the problem still remains. for each set only one of the input variables (var. 4) is changing and the remaining three are same. So how would you address that?

请先登录,再进行评论。

回答(1 个)

Swetha Polemoni
Swetha Polemoni 2021-9-14
Hi Pappu Murthy,
It is my understanding you wanted to train a network given input and true lables(Supervised learning). I understand that you have 1000 sets of data. Each set has 4 input variables ,1 output variable and in total you have records in each set. Though the first 3 variables doesn't change within the set, these variables are also important to the network as much as the 4th variables.
This is the example data set you have shared
2, .4, .5, .8 ..... 12
.2, .4, .5, .2 ------ 7
-------------- 10 lines
.1, .6, .8, .5 -------- 10
.1, .6, .8, .8 ---------- 6.3
---------------------- 10 lines
Suppose you ignore the first 3 values while training, the output of the network can be incorrect. For example if the input for the network is as follows
.1, .6, .8, .2
The output of the network can be 7 since we have ignored the first 3 values. Here the network considers only the fourth value i.e., .2 and gives the output 7. So to avoid such errors, all the input variables should be equal importance.
The following documentation might help you
  1 个评论
Pappu Murthy
Pappu Murthy 2021-9-14
I understand what you are saying. So this means eventhough the first three inputs are same and only 4th one is varying, can I include them all and train the net? Or would that pose some mathematical problems later because the matrix columns with in a set are same. I really do not know whether it is ok to do so. Is there a way to partition them or something along those lines? I will read the link you provided mean while. Thanks.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Sequence and Numeric Feature Data Workflows 的更多信息

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by