I'm using matlab prtools and i want to make tests on "Hepatitis" dataset ,the problem is :i can't download it from UCI machine registry on the format of prdataset , so how can i do this?

2 commentaires

Walter Roberson
Walter Roberson le 13 Mar 2016
You appear to be referring to http://prtools.org/
wisekily
wisekily le 13 Mar 2016
Modifié(e) : wisekily le 13 Mar 2016
yes it is http://prtools.org/ (pattern recognition toolbox)

Connectez-vous pour commenter.

 Réponse acceptée

Walter Roberson
Walter Roberson le 13 Mar 2016

1 vote

%https://archive.ics.uci.edu/ml/datasets/Hepatitis
%https://archive.ics.uci.edu/ml/machine-learning-databases/hepatitis/hepatitis.data
fmt = repmat('%f',1,19);
fid = fopen('hepatitis.data', 'rt');
datacell = textscan(fid, fmt, 'delimiter', ',', 'TreatAsEmpty', '?', 'CollectOutput', 1);
fclose(fid);
hepclass = datacell{1}(:,1);
hepattrib = datacell{1}(:,2:end);
hepds = prdataset( hepattrib, hepclass );

4 commentaires

wisekily
wisekily le 13 Mar 2016
thank you sir
Rahimeh Rouhi
Rahimeh Rouhi le 7 Avr 2018
Hello, I'm gonna use my own dataset containing 200 images 1024*1024 of 10 classes (i.e., each object has 1024*1024 feature). How can I prepare a suitable dataset for prtools? Thanks for your answers.
Walter Roberson
Walter Roberson le 7 Avr 2018
Reshape each of your 1024 x 1024 images to become a row vector, 1 x 1048576. Concatenate all of the row vectors together to get a 200 x 1048576 array. That array should be the first input to prdataset. The second input to prdataset should be an column vector indicating the class that each of the 200 images belongs to. This can be a numeric class number or can be a cell array of character strings giving a class label.
Rahimeh Rouhi
Rahimeh Rouhi le 7 Avr 2018
Many thanks.

Connectez-vous pour commenter.

Plus de réponses (0)

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by