Code Solution for Question given in Interview
- Keras
- Tensorflow
- Python 3.0
- Clone the repository.
- Go to the directory of the repository on command prompt.
- Type
python run.py
. - Give a value between 0-100 when prompted to do so.
- Output will be displayed on the screen.
- The network is trained to output squares only for numbers between 1 to 100.
- The network can learn the quadratic function till a certain range, depending on the training data.
- The network approximates the results to a certain range, in this case within +/- 200.
- The network can be made more complex to learn the quadratic function for a larger range of numbers, and to a better approximation.
- The code of the network can be checked in
Untitled.ipynb
.