about summary refs log tree commit diff
path: root/sourcecodes/bnt-master/SLP/examples/UCI_DataSets/wineD.m
diff options
context:
space:
mode:
Diffstat (limited to 'sourcecodes/bnt-master/SLP/examples/UCI_DataSets/wineD.m')
-rw-r--r--sourcecodes/bnt-master/SLP/examples/UCI_DataSets/wineD.m26
1 files changed, 26 insertions, 0 deletions
diff --git a/sourcecodes/bnt-master/SLP/examples/UCI_DataSets/wineD.m b/sourcecodes/bnt-master/SLP/examples/UCI_DataSets/wineD.m
new file mode 100644
index 00000000..bbe2e392
--- /dev/null
+++ b/sourcecodes/bnt-master/SLP/examples/UCI_DataSets/wineD.m
@@ -0,0 +1,26 @@
+load -ascii wine
+
+[N, m] = size(wine)
+
+class = 1
+
+rand('state',0); randn('state',0);
+wine = wine(:,randperm(m));
+
+Napp = 80
+Ntest = m-Napp
+
+app  = wine(:,1:Napp);size(app)
+test = wine(:,Napp+1:151);size(test)
+
+%unique(app(class,:))
+%unique(test(class,:))
+
+%app  = wine;
+%test = wine;
+%disp('test en apprentissage');
+
+ns = max(wine')
+clear wine
+
+% N, ns(class), Napp, Ntest, mean(ns),