public LinearClassifier < L , F > trainClassifierV ( GeneralDataset < L , F > train , GeneralDataset < L , F > validation , double min , double max , boolean accuracy ) { labelIndex = train . labelIndex ( ) ; featureIndex = train . featureIndex ( ) ; this . min = min ; this . max = max ; heldOutSetSigma ( train , validation ) ; double [ ] [ ] weights = trainWeights ( train ) ; return new LinearClassifier < L , F > ( weights , train . featureIndex ( ) , train . labelIndex ( ) ) ; }
Train a classifier with a sigma tuned on a validation set .