DEV Community

Ashwani Kumar Shamlodhiya
Ashwani Kumar Shamlodhiya

Posted on

Model Creation ANN : A simple example of tensorflow (children - banana)

One of the most common uses of TensorFlow is building and training machine learning models. Let’s create a simple neural network model using TensorFlow's high-level API, Keras.

We'll build a simple model to predict y value for a given x value. I created CSV file where

children: denotes number of children

banana : denotes how many banana are eaten by children

This actually follows a simple relationship: banana = 1 + 2*children . ( That is y = 1 + 2x )

https://github.com/ash322ash422/tut_tensorflow/blob/master/tf_tut2_model_creation1_1_ANN_linearReg_oneVar_childBanana.ipynb

The data file: https://github.com/ash322ash422/tut_tensorflow/blob/master/child_banana.csv

Top comments (0)