Question: I have a graphQl schema defined which needs to be changed runtime whenever there is a new field added in a mongodb collection. For example, a collection has just two fields before

```
    person { 
             "age" : "54"
             "name" : "Tony"
           }

```

And later a new field, "height" is added. 

```
        person { 
             "age" : "54"
             "name" : "Tony"
             "height" : "167"

           }

```

I need to change my graphql schema and add height to that. So how do I get alerted or notifications from Mongodb ?

Answer: 
The simplest approach is just to iterate over your predictions (and correct classifications) and do whatever you want with the output (in the following example I will just print it to stdout).

Lets assume that your data is in inputs, labels, and your trained SVM is in clf, then you can just do

```
predictions = clf.predict(inputs)
for input, prediction, label in zip(inputs, predictions, labels):
  if prediction != label:
    print(input, 'has been classified as ', prediction, 'and should be ', label) 

```
I used some methods listed above. but today found something more simply. Try it. If your data has 2 features, you can use it.

X-Data

y- your predictions

```
false_x = X[y==0][:, 0]

True_x  = X[y==1][:, 0]

```