set up the parameter input and some work on perceptron