Commits

Miki Tebeka committed 87e67f7

try spam

  • Participants
  • Parent commits 91c211e

Comments (0)

Files changed (1)

     return vec
 
 
-def train():
-    data = loadmat('ex6/spamTrain.mat')
-    xs = data['X']
-    ys = data['y'].ravel()>0
+def spam_train(clf=None):
+    raw = loadmat('ex6/spamTrain.mat')
+    test = loadmat('ex6/spamTest.mat')
+    raw['Xval'] = test['Xtest']
+    raw['yval'] = test['ytest']
+
+    find_best(raw)
 
 
 def main(argv=None):