mirror of
https://github.com/Doctorado-ML/Stree_datasets.git
synced 2025-08-19 01:16:01 +00:00
Commit Inicial
This commit is contained in:
23
data/tanveer/balloons/balloons.arff
Executable file
23
data/tanveer/balloons/balloons.arff
Executable file
@@ -0,0 +1,23 @@
|
||||
@relation balloons
|
||||
@attribute 'f1' real
|
||||
@attribute 'f2' real
|
||||
@attribute 'f3' real
|
||||
@attribute 'f4' real
|
||||
@attribute 'clase' {0,1}
|
||||
@data
|
||||
0.968246,-0.968246,0.968246,0.968246,1
|
||||
0.968246,-0.968246,0.968246,-0.968246,1
|
||||
0.968246,-0.968246,-0.968246,0.968246,1
|
||||
0.968246,-0.968246,-0.968246,-0.968246,1
|
||||
0.968246,0.968246,0.968246,0.968246,1
|
||||
0.968246,0.968246,0.968246,-0.968246,0
|
||||
0.968246,0.968246,-0.968246,0.968246,0
|
||||
0.968246,0.968246,-0.968246,-0.968246,0
|
||||
-0.968246,-0.968246,0.968246,0.968246,1
|
||||
-0.968246,-0.968246,0.968246,-0.968246,0
|
||||
-0.968246,-0.968246,-0.968246,0.968246,0
|
||||
-0.968246,-0.968246,-0.968246,-0.968246,0
|
||||
-0.968246,0.968246,0.968246,0.968246,1
|
||||
-0.968246,0.968246,0.968246,-0.968246,0
|
||||
-0.968246,0.968246,-0.968246,0.968246,0
|
||||
-0.968246,0.968246,-0.968246,-0.968246,0
|
5
data/tanveer/balloons/balloons.cost
Executable file
5
data/tanveer/balloons/balloons.cost
Executable file
@@ -0,0 +1,5 @@
|
||||
% Rows Columns
|
||||
2 2
|
||||
% Matrix elements
|
||||
0.0 1.0
|
||||
1.0 0.0
|
31
data/tanveer/balloons/balloons.names
Executable file
31
data/tanveer/balloons/balloons.names
Executable file
@@ -0,0 +1,31 @@
|
||||
1. Title: Balloon databases
|
||||
|
||||
2. Source: Michael Pazzani (pazzani@ics.uci.edu)
|
||||
|
||||
3. Past usage
|
||||
Pazzani, M. (1991). The influence of prior knowledge on concept acquisition:
|
||||
Experimental and computational results. Journal of Experimental Psychology:
|
||||
Learning, Memory & Cognition, 17, 3, 416-432.
|
||||
|
||||
4. Relevant information:
|
||||
There are four data sets representing different conditions of an experiment.
|
||||
All have the same attributes.
|
||||
a. adult-stretch.data Inflated is true if age=adult or act=stretch
|
||||
b. adult+stretch.data Inflated is true if age=adult and act=stretch
|
||||
c. small-yellow.data Inflated is true if (color=yellow and size = small) or
|
||||
d. small-yellow+adult-stretch.data Inflated is true if
|
||||
(color=yellow and size = small) or (age=adult and act=stretch)
|
||||
|
||||
5. Number of attributes: 4
|
||||
|
||||
6. Number of Instances: 16
|
||||
|
||||
7. Attribute Information: (Classes Inflated T or F)
|
||||
Color yellow, purple
|
||||
size large, small
|
||||
act stretch, dip
|
||||
age adult, child
|
||||
inflated T, F
|
||||
|
||||
8. Missing Values: None
|
||||
|
8
data/tanveer/balloons/balloons.txt
Executable file
8
data/tanveer/balloons/balloons.txt
Executable file
@@ -0,0 +1,8 @@
|
||||
n_entradas= 4
|
||||
n_clases= 2
|
||||
n_arquivos= 1
|
||||
fich1= balloons_R.dat
|
||||
n_patrons1= 16
|
||||
n_patrons_entrena= 8
|
||||
n_patrons_valida= 8
|
||||
n_conxuntos= 1
|
17
data/tanveer/balloons/balloons_R.dat
Executable file
17
data/tanveer/balloons/balloons_R.dat
Executable file
@@ -0,0 +1,17 @@
|
||||
f1 f2 f3 f4 clase
|
||||
1 0.968246 -0.968246 0.968246 0.968246 1
|
||||
2 0.968246 -0.968246 0.968246 -0.968246 1
|
||||
3 0.968246 -0.968246 -0.968246 0.968246 1
|
||||
4 0.968246 -0.968246 -0.968246 -0.968246 1
|
||||
5 0.968246 0.968246 0.968246 0.968246 1
|
||||
6 0.968246 0.968246 0.968246 -0.968246 0
|
||||
7 0.968246 0.968246 -0.968246 0.968246 0
|
||||
8 0.968246 0.968246 -0.968246 -0.968246 0
|
||||
9 -0.968246 -0.968246 0.968246 0.968246 1
|
||||
10 -0.968246 -0.968246 0.968246 -0.968246 0
|
||||
11 -0.968246 -0.968246 -0.968246 0.968246 0
|
||||
12 -0.968246 -0.968246 -0.968246 -0.968246 0
|
||||
13 -0.968246 0.968246 0.968246 0.968246 1
|
||||
14 -0.968246 0.968246 0.968246 -0.968246 0
|
||||
15 -0.968246 0.968246 -0.968246 0.968246 0
|
||||
16 -0.968246 0.968246 -0.968246 -0.968246 0
|
2
data/tanveer/balloons/conxuntos.dat
Executable file
2
data/tanveer/balloons/conxuntos.dat
Executable file
@@ -0,0 +1,2 @@
|
||||
5 6 10 9 3 8 4 0
|
||||
13 11 14 7 15 1 12 2
|
8
data/tanveer/balloons/conxuntos_kfold.dat
Executable file
8
data/tanveer/balloons/conxuntos_kfold.dat
Executable file
@@ -0,0 +1,8 @@
|
||||
9 13 7 14 10 5 3 12 8 4 0 1
|
||||
6 11 15 2
|
||||
11 5 10 9 6 15 1 0 3 4 12 2
|
||||
14 13 7 8
|
||||
11 14 6 7 9 5 4 0 1 12 2 8
|
||||
13 10 15 3
|
||||
14 10 11 9 13 5 8 12 3 0 4 1
|
||||
6 7 15 2
|
45
data/tanveer/balloons/le_datos.m
Executable file
45
data/tanveer/balloons/le_datos.m
Executable file
@@ -0,0 +1,45 @@
|
||||
printf('lendo problema %s ...\n', problema);
|
||||
|
||||
n_entradas= 4; n_clases= 2; n_fich= 1; fich{1}= 'yellow-small+adult-stretch.data'; n_patrons(1)= 16;
|
||||
|
||||
n_max= max(n_patrons);
|
||||
x = zeros(n_fich, n_max, n_entradas); cl= zeros(n_fich, n_max);
|
||||
|
||||
n_patrons_total = sum(n_patrons); n_iter=0;
|
||||
|
||||
for i_fich=1:n_fich
|
||||
f=fopen(fich{i_fich}, 'r');
|
||||
if -1==f
|
||||
error('erro en fopen abrindo %s\n', fich{i_fich});
|
||||
end
|
||||
for i=1:n_patrons(i_fich)
|
||||
fprintf(2,'%5.1f%%\r', 100*n_iter++/n_patrons_total);
|
||||
for j = 1:n_entradas
|
||||
t = fscanf(f,'%s',1);
|
||||
if j==1
|
||||
val={'PURPLE', 'YELLOW'};
|
||||
elseif j==2
|
||||
val={'SMALL', 'LARGE'};
|
||||
elseif j==3
|
||||
val={'DIP', 'STRETCH'};
|
||||
elseif j==4
|
||||
val={'CHILD', 'ADULT'};
|
||||
end
|
||||
n=length(val);
|
||||
for k=1:n
|
||||
if strcmp(t, val{k})
|
||||
x(i_fich,i,j)=k; break
|
||||
end
|
||||
end
|
||||
end
|
||||
t = fscanf(f,'%s',1); % lectura da clase
|
||||
if t=='F'
|
||||
cl(i_fich,i)=0;
|
||||
elseif t=='T'
|
||||
cl(i_fich,i)=1;
|
||||
else
|
||||
error('clase %s descoñecida', t)
|
||||
end
|
||||
end
|
||||
fclose(f);
|
||||
end
|
16
data/tanveer/balloons/yellow-small+adult-stretch.data
Executable file
16
data/tanveer/balloons/yellow-small+adult-stretch.data
Executable file
@@ -0,0 +1,16 @@
|
||||
YELLOW SMALL STRETCH ADULT T
|
||||
YELLOW SMALL STRETCH CHILD T
|
||||
YELLOW SMALL DIP ADULT T
|
||||
YELLOW SMALL DIP CHILD T
|
||||
YELLOW LARGE STRETCH ADULT T
|
||||
YELLOW LARGE STRETCH CHILD F
|
||||
YELLOW LARGE DIP ADULT F
|
||||
YELLOW LARGE DIP CHILD F
|
||||
PURPLE SMALL STRETCH ADULT T
|
||||
PURPLE SMALL STRETCH CHILD F
|
||||
PURPLE SMALL DIP ADULT F
|
||||
PURPLE SMALL DIP CHILD F
|
||||
PURPLE LARGE STRETCH ADULT T
|
||||
PURPLE LARGE STRETCH CHILD F
|
||||
PURPLE LARGE DIP ADULT F
|
||||
PURPLE LARGE DIP CHILD F
|
Reference in New Issue
Block a user