update the stochastic gradient perceptron using the fixed weight for a state