ENH use DOKMatrix for parameter vector in perceptron