A Beginners Guide to Artificial Neural Network using Tensor Flow & Keras

A Beginners Guide to Artificial Neural Network using Tensor Flow & Keras

A Beginners Guide to Artificial Neural Network using Tensor Flow & Keras. Building a fraud detection model using Artificial Neural Network & fine-tuning Hyperparameters using RandomizedSearchCV


ANNs (Artificial Neural Network) is at the very core of Deep Learning an advanced version of Machine Learning techniques. Artificial Neural Networks involve the following concepts. The input & the output layer, the hidden layers, neurons under hidden layers, forward propagation, and backward propagation. In a nutshell, the input layer is the set of independent variables, the output layer represents the final output (the dependent variable), the hidden layers consist of neurons where equations are developed and activation functions are applied. The forward propagation talks about how equations are developed to achieve the final output, whereas the backward propagation calculates the gradient descent to updates the learning rates accordingly. More about the operational process can be found in the article below.

Deep Neural Network

When an ANN contains a deep stack of hidden layers, it is called a deep neural network (DNN). A DNN works with multiple weights and bias terms, each of which needs to be trained. In just two passes through the network, the algorithm can compute the Gradient Descent automatically. In other words, it can identify how each weight and each bias term across all the neurons should be tweaked to reduce the error. The process repeats unless the network converges to a minimum error.

Let’s run through the algorithm step by step:

  • Develop training and test data to train and validate the model output. Since it follows a parametric structure in which it optimizes the weight and bias parameter terms. All statistical assumptions involving correlation, outlier treatment remains valid and has to be treated
  • The input layer consists of the independent variables and their respective values. One mini-batch of data (depending on the batch size) passes through the full training set, multiple times. Each pass is called an epoch. The higher the epoch, the higher is the training time
  • Each mini-batch is passed to the input layer, which sends it to the first hidden layer. The output of all the neurons in this layer (for every mini-batch) is computed. The result is passed on to the next layer, and the process repeats until we get the output of the last layer, the output layer. This is the forward pass: it is like making predictions, except all intermediate results are preserved since they are needed for the backward pass
  • The network’s output error is then measured using a loss function that compares the desired output to the actual output of the network
  • The scientific contribution of every neutron to the error terms are calculated
  • The algorithm performs a Gradient Descent to tweak weights and parameters based on the learning rate (the backward propagation) and the process repeats itself

deep-learning neural-networks data-science machine-learning artificial-intelligence

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

Deep Learning 101 —  Neural Networks Explained

The past few decades have witnessed a massive boom in the penetration as well as the power of computation, and amidst this information.

Most popular Data Science and Machine Learning courses — July 2020

Most popular Data Science and Machine Learning courses — August 2020. This list was last updated in August 2020 — and will be updated regularly so as to keep it relevant

Cheat Sheets for AI, Neural Networks, Machine Learning, Deep Learning & Big Data

Cheat Sheets for AI, Neural Networks, Machine Learning, Deep Learning & Big Data

Artificial Neural Networks — Recurrent Neural Networks

Artificial Neural Networks — Recurrent Neural Networks. Remembering the history and predicting the future with neural networks. A intuition behind Recurrent neural networks.

Fundamentals of Neural Network in Machine Learning

Fundamentals of Neural Network in Machine Learning. What is a Neuron? What is the Activation Function? How do Neural Network Works? How do Neural Networks Learn?