EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 360+ Courses All in One Bundle
  • Login
Home Data Science Data Science Tutorials TensorFlow Tutorial TensorFlow Playground
Secondary Sidebar
TensorFlow Tutorial
  • Basics
    • Introduction to Tensorflow
    • What is TensorFlow?
    • Tensorflow Basics
    • TensorFlow Architecture
    • TensorFlow Versions
    • How to Install TensorFlow
    • Caffe TensorFlow
    • Tensorflow Image Classification
    • TensorFlow Playground
    • TensorFlow RNN
    • TensorFlow Models
    • TensorBoard
    • TensorFlow Debugging
    • TensorFlow vs Keras
    • Tensorflow LSTM
    • TensorFlow Probability
    • TensorFlow Session
    • TensorFlow Dataset
    • TensorFlow Reshape
    • TensorFlow estimator
    • TensorFlow Keras Model
    • TensorFlow Load Model
    • tensorflow transformer
    • tensorflow extended
    • tensorflow flatten
    • TensorFlow OpenCL
    • TensorFlow APIs
    • Tensorflow concatenate
    • Tensorflow variable
    • TensorFlow normalize
    • TensorFlow save model
    • TensorFlow placeholder
    • TensorFlow shape
    • TensorFlow Adam optimizer
    • TensorFlow dense
    • Tensorflow Quantum
    • TensorFlow Layers
    • TensorFlow Distributed
    • TensorFlow Profiler
    • TensorFlow Metrics
    • TensorFlow Transpose
    • TensorFlow Tensor To Numpy
    • TensorFlow Quantization
    • TensorFlow Regression
    • TensorFlow argmax
    • TensorFlow Federated
    • TensorFlow gather
    • TensorFlow Random Forest
    • Tensorflow sequential
    • TensorFlow expand_dims

TensorFlow Playground

By Priya PedamkarPriya Pedamkar

TensorFlow Playground

What is TensorFlow Playground?

Tensorflow playground is a neural network playground, which is an interactive web app that built on ds3.js. It is an educational visualization platform for a layman. So, they can easily understand the concepts of deep learning like

  • Creating Neural networks
  • Running Neural networks
  • Understand the Working of Neural networks.
  • Playing with neural network hyperparameters like learning rate, activation function, epochs.
  • Get results

Tensorflow playground provides a great platform that allows users who are not familiar with high-level math and coding to experiment with neural network for deep learning. It is created for understanding the core idea behind the neural network.

Start Your Free Data Science Course

Hadoop, Data Science, Statistics & others

Features of TensorFlow Playground

There is mainly 10 term that plays an important role in Tensorflow playground.

1. Data

Dataset  Dataset 2

The Playground provides mainly 6 different types of datasets.

Classification: Circle, Exclusive or, Gaussian, spiral.

Regression: Plane, Multi Gaussian.

Small circle points are represented as data points that correspond to Positive (+) and Negative (-). Positive represented by blue, Negative represented by orange. These same colours are used in representing Data, Neuron, Weight values.

Colors

2. The Ratio of Train and Test Data, Noise, Batch Size

Splitting ration of data into Train and Test data. Add noise to your data for better training of the model. Batch means a set of examples used in one iteration.

Ratio of Train and Test Data

3. Features

It provides 7 features or inputs– X1, X2, Squares of X1X2, Product of X1X2 and sin of X1X2. Select and Deselect the features to understand which feature is more important; It plays a major role in feature engineering.

4. Hidden Layers

hidden Layers

Increase and decrease the hidden layer according to your inputs or data. Also can select the neurons for each hidden layer, and experiment with different hidden layers and neurons, check how the results are changing.

5. Epoch

Epoch is one complete iteration through the data set. When you select the play button to start the network. When the network is started no. Epochs will keep increasing.

Epoch TensorFlow

The Reset button will reset the whole network.

6. Learning Rate

The Learning rate is a hyperparameter that is used to speed up the procedure to get local optima.

7. Activation Function

An Activation function is applied to between two layers of any neural network. It is responsible for activating the neurons in the network.

4 types of activation function – ReLU, Tanh, Sigmoid, Linear

Activation Function

8. Regularization

There are two types of Regularization L1 and L2. Which is used to reducing the overfitting of the model? Model is overfitted when it can only work well with the single dataset when the dataset is changed; it performs poorly on that data.

9. Problem Type

problem type

Tensorflow playground handle two types of problems: Classifications, Regression

10. Output

Check the model performance after the training the neural network. Observe the Test loss and Training loss of the model.

output in TensorFlow

Example

Let’s do a classification problem on the Tensorflow playground.

Steps how to play in this neural network playground:

  • Select the Exclusive OR Data Set Classification problem.
  • Set Ratio of training and test data to 60% – which means we have 60% train data and 40% testing data.
  • Noise is added to 5 and increases it, and do some experiment with it, check how the output losses are changing and select the batch size to 10.
  • First Select simple features like X1 and X2 then note down the output losses.

(Training loss:-0.004, Test loss: – 0.002, steps:-255)

Now add the third feature product of (X1X2) then observe the Losses.

(Training loss:-0.001, Test loss: – 0.001, steps:-102)

This how you can understand the value of features, how to get good results in minimum steps.

  • Set the learning rate to 0.03, also checks how the learning rate plays an important role in training a neural network.
  • Activation function as Tanh, for basic neural networks there are no requirements for regularization and regularization rate. There is no need the change the problem type.

But do not forget to play with regression, so you have a clear idea about regression.

  • Select 2 hidden layers. Set 4 neurons for the first hidden layer and 2 neurons for the second hidden layer followed by the output.
  • Starting from the first layer, the weights are passed on to the first hidden layer, which contains output from one neuron, the second hidden layer output is mixed with different weights. The thickness of the lines represents the weights.
  • Then the final output will contain the Train and Test loss of the neural network.
  • The output has classified the data point correctly, as shown in the below image.

example

Experimentation:

 Make some changes and check how it affects other factors. Observe the Train and Test loss after every change.

How Parameters Play an Important Role to get Better Accuracy of the Model?

Let’s learn how parameters play a vital role in getting better accuracy of the model.

  • Ratio Train and Test: Getting a good ratio of the train test data set will give our model a good performance.
  • Feature Selection: By exploring and selecting different kinds of features, find your right features for the model.
  • Hidden Layer Selection: Select the hidden layer based on your input size, but the small dataset 2 hidden layer works perfectly. So make some changes in the hidden layer and also make some observations on it. You will get a better idea of how the hidden layer plays a role in it.
  • Learning Rate: The Most important hyperparameter for the model. Large learning rates can result in unstable training of the model, and a tiny rate results in failure of training. So select the learning rate that perfectly fits your model and give you the best output.

Above mentioned 4 terms play an important role in training a good neural network. So try to play with it in Tensorflow Playground.

Conclusion

Tensorflow playground is a great platform to learn about neural networks, It trains a neural network by just clicking on the play button, and the whole network will be trained over your browser and let you check how the network output is changing.

Recommended Articles

This is a guide to the Tensorflow playground. Here we discuss What is Tensorflow Playground? Features of Tensorflow Playground include Data, Hidden layers, Epoch, Learning Function, etc.  You may also look at the following articles to learn more –

  1. Introduction to Tensorflow
  2. TensorFlow Alternatives
  3. Top 5 Difference Between TensorFlow vs Spark
  4. TensorFlow Debugging | How to Work?
Popular Course in this category
TensorFlow Training (11 Courses, 3+ Projects)
  11 Online Courses |  3 Hands-on Projects |  55+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

Machine Learning Training (20 Courses, 29+ Projects)4.9
Artificial Intelligence AI Training (5 Courses, 2 Project)4.8
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Database Management
  • Machine Learning
  • All Tutorials
Certification Courses
  • All Courses
  • Data Science Course - All in One Bundle
  • Machine Learning Course
  • Hadoop Certification Training
  • Cloud Computing Training Course
  • R Programming Course
  • AWS Training Course
  • SAS Training Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2023 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Data Science Course

Hadoop, Data Science, Statistics & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more