# Python SVM returning same values

I have an array of point sets to which I have assigned a value but after training everytime I try to predict a new dataset I recieve the same value that seems to be the arithmetical average of my training responses here's a code sample for my training:

```
machine = cv2.svm()
trainData = numpy.array([[x1,y1,x2,y2...xn,yn],[x1,y1,x2,y2...xn,yn],...,[x1,y1,x2,y2...xn,yn]],dtype= numpy.float32)
results = numpy.array([res1,res2,res3,...,resn],dtype = numpy.float32)
machine.train(trainData,results,dict( kernel_type = cv2.SVM_LINEAR, svm_type = cv2.SVM_C_SVC,C = 1 ))
```

I would be thankful if anybody pointed to me my mistakes ,