Return a function suitable for passing in as the diagnostic to train which prints the accuracy on the testLabels
Return a function suitable for passing in as the diagnostic to train which prints the accuracy on the testLabels
Return a function suitable for passing in as the diagnostic to train which prints the accuracy on the trainLabels and the testLabels
Return a function suitable for passing in as the diagnostic to train which prints the accuracy on the trainLabels and the testLabels
Create a sequence of Example instances for obtaining the gradients used for training.
Create a sequence of Example instances for obtaining the gradients used for training.
Create a new LinearVectorClassifier, not yet trained.
Create a new LinearVectorClassifier, not yet trained.
Train the classifier to convergence, calling the diagnostic function once after each iteration.
Train the classifier to convergence, calling the diagnostic function once after each iteration. This is the base method called by the other simpler train methods.
Train the classifier to convergence, calling no diagnostic function.
Train the classifier to convergence, calling no diagnostic function.
Train the classifier to convergence, calling a test-accuracy-printing diagnostic function once after each iteration.
Train the classifier to convergence, calling a test-accuracy-printing diagnostic function once after each iteration.
Create, train and return a new LinearVectorClassifier
Create, train and return a new LinearVectorClassifier
An OptimizingLinearVectorClassifierTrainer pre-tuned with default arguments well-suited to training an L2-regularized linear SVM.