Home | History | Annotate | Download | only in python2

Lines Matching refs:labels

36 def cross_validate(model_class, params, samples, labels, kfold = 3, pool = None):
45 train_samples, train_labels = samples[train_idx], labels[train_idx]
46 test_samples, test_labels = samples[test_idx], labels[test_idx]
77 digits, labels = load_digits(DIGITS_FN)
79 digits, labels = digits[shuffle], labels[shuffle]
82 return samples, labels
108 samples, labels = self.get_dataset()
110 score = cross_validate(SVM, params, samples, labels)
131 samples, labels = self.get_dataset()
132 err = cross_validate(KNearest, dict(k=k), samples, labels)