Train a deep neural network classifier to recognize whether a point is within a circle centered at the origin with radius 1. We begin by generating some input data to train the model.
>
|
|
>
|
|
>
|
|
We can now define an Estimator, in this case a DNNClassifier, to process the input.
>
|
|
>
|
|
| (1) |
>
|
|
| (2) |
>
|
|
| (3) |
With our classifier thus trained, we can make predictions about additional points.
>
|
|
>
|
|