I can't load my own dataset!

1 回表示 (過去 30 日間)
Hadeer tawfik
Hadeer tawfik 2016 年 10 月 7 日
回答済み: kinju Prajapati 2019 年 1 月 11 日
I am having a feature vector of 1X83 and a target matrix of 5X83 and both of them are in .mat format i wanted to creat a dataset that contains them just like this: [ x, t ] = iris_dataset;
so how to create a dataset like iris_dataset?
A little help will be very appreciated please
  3 件のコメント
Hadeer tawfik
Hadeer tawfik 2016 年 10 月 7 日
Ok how to use this if i want to run this code:
[x,t] = digit_dataset;
Train an autoencoder with a hidden layer of size 10 and a linear transfer function for the decoder. Set the L2 weight regularizer to 0.001, sparsity regularizer to 4 and sparsity proportion to 0.05.
rng('default')
hiddenSize = 10;
autoenc1 = trainAutoencoder(X,hiddenSize,...
'L2WeightRegularization',0.001,...
'SparsityRegularization',4,...
'SparsityProportion',0.05,...
'DecoderTransferFunction','purelin');
here i want to replace the digit_dataset with my dataset please. so what do you suggest?
sarath chandrika balaji
sarath chandrika balaji 2017 年 9 月 18 日
can u help me in backpropagation code? Sorry,I'm a newbie...!!!

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

採用された回答

Walter Roberson
Walter Roberson 2016 年 10 月 7 日
function [x, t] = digit_dataset
datastruct = load('MatFileThatYourDataIsIn.mat');
x = datastruct.x;
t = datastruct.t;
end
  5 件のコメント
Greg Heath
Greg Heath 2016 年 10 月 8 日
I still don't see why you feel it is absolutely necessary for you to have to use the first and last commands, i.e., use a function.
It's just an option. Correct?
Greg
Walter Roberson
Walter Roberson 2016 年 10 月 8 日

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

その他の回答 (1 件)

kinju Prajapati
kinju Prajapati 2019 年 1 月 11 日
how to load owndataset ???just like iris_dataset..

カテゴリ

Help Center および File ExchangePattern Recognition and Classification についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by