How to form the training set ?

4 ビュー (過去 30 日間)
chaaru datta
chaaru datta 2022 年 5 月 14 日
コメント済み: chaaru datta 2022 年 6 月 20 日
Hello all, I am new to machine learning and wanna use MATLAB for it... I am trying to form a training set in MATLAB on the basis of following expression:
where S denotes the training set, M = 10, m = 1 to M, is the training feature such that , denotes the training label such that .
My query is what should be the dimension of my training set. I think it should be .
Any help in this regard will be highly appreciated.
  1 件のコメント
chaaru datta
chaaru datta 2022 年 5 月 14 日
Any help in this regard would be highly appreciated...

サインインしてコメントする。

採用された回答

the cyclist
the cyclist 2022 年 5 月 14 日
If I understand all of your notation correctly, I think your training set needs to be an Mx3 matrix.
If means that each observation of x has two components (epsilon minus and epsilon plus), then for each observation of the training set, you need two values to represent x, and one to represent y. So
M = [0.2 0.3 -1;
-0.3 0.4 1;
...
0.6 0.5 -1];
would be the representation in which
  • 1st column is x (epsilon minus)
  • 2nd column is x (epsilon plus)
  • 3rd column is y
  16 件のコメント
the cyclist
the cyclist 2022 年 5 月 17 日
I see that the signal is used in the calculation of the features, but it doesn't affect the label, right?
The label you generated is completely random, not affected by the features. Here is the code to generate the labels, with all other code removed:
M_train = 1*10^5; % for training iteration, given in paper as 10^5
M_train_detail = int32(randi([0, 1], [1, M_train])); % generating random tag symbols
Train_label_final = [];
for kk = 1:(M_train)
if M_train_detail(kk)== 0
lab = -1;
else
lab = 1;
end
Train_label = [lab];
Train_label_final = [ Train_label_final; Train_label];
end
This is random, with no reference to signal or the features. Therefore, it is no surprise that you cannot predict these labels from the features.
chaaru datta
chaaru datta 2022 年 5 月 17 日
Yes sir...you are right. I am generating the labels but they are not affected by the features.
Also, I would like to describe the system model given in paper in brief.
1) System model contains Radio frequency source, tag and reader. 2) Tag reflects (backscatters) two types of signal viz., -1 and +1. 3) When reflected signal from tag is -1 , then epsilon minus feature is obtained at reader else epsilon plus is obtained at the reader. 4) Thus my training set consists of epsilon minus, epsilon plus and labels for each reflected signal from the tag.

サインインしてコメントする。

その他の回答 (1 件)

the cyclist
the cyclist 2022 年 5 月 17 日
I spent a little bit more time with the paper.
It seems to me that in the paper, the labels y are supposed to be used when generating s (Eq. 5 & 6) and then epsilon (Eq. 7 & 8).
But you don't use your labels as part of the calculation of the features.
  7 件のコメント
chaaru datta
chaaru datta 2022 年 5 月 18 日
It's ok sir...Thank you so much for your whole hearted support...I will keep trying to implement this paper...Sir, pls do let me know once you are free so that if I could further discuss with you...
Also it would be better if you could suggest some links to me to solve such machine learning problems..
chaaru datta
chaaru datta 2022 年 6 月 20 日
Hello Sir, can you please share your insights on forming training set as done in this paper.

サインインしてコメントする。

Community Treasure Hunt

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

Start Hunting!

Translated by