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 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.
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.
Create, train and return a new LinearVectorClassifier
Create, train and return a new LinearVectorClassifier
An OptimizingLinearVectorClassifierTrainer pre-tuned with default arguments well-suited to online training, operating on the gradient of one Example at a time.