1. Miki Tebeka
  2. ml-class

Commits

Miki Tebeka  committed 87e67f7

try spam

  • Participants
  • Parent commits 91c211e
  • Branches default

Comments (0)

Files changed (1)

File ex6.py

View file
  • Ignore whitespace
     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):