Difference between revisions of "TENSORFLOW"

(TENSORFLOW)
Line 36: Line 36:
  
 
https://www.researchgate.net/profile/Hassan_El_Bahi/publication/282861792/figure/fig2/AS:391453600698369@1470341219131/Samples-images-in-MNIST-database.png
 
https://www.researchgate.net/profile/Hassan_El_Bahi/publication/282861792/figure/fig2/AS:391453600698369@1470341219131/Samples-images-in-MNIST-database.png
 +
 +
 +
 +
==== Layer Types ====
 +
* '''Fully connected(dense) layers''' **: Fully connected layers connect every neuron in one layer to every neuron in another layer. It is in principle the same as the traditional multi-layer perceptron neural network (MLP). The flattened matrix goes through a fully connected layer to classify the images.
 +
 +
* '''Convolutional layers''' : Deep Learning algorithm which can take in an input image, assign importance (learnable weights and biases) to various aspects/objects in the image and be able to differentiate one from the other. The pre-processing required in a ConvNet is much lower as compared to other classification algorithms. While in primitive methods filters are hand-engineered, with enough training, ConvNets have the ability to learn these filters/characteristics.
 +
 +
* '''Pooling layers''': Similar to the Convolutional Layer, the Pooling layer is responsible for reducing the spatial size of the Convolved Feature. This is to decrease the computational power required to process the data through dimensionality reduction. Furthermore, it is useful for extracting dominant features which are rotational and positional invariant, thus maintaining the process of effectively training of the model.
 +
 +
https://miro.medium.com/max/792/1*uoWYsCV5vBU8SHFPAPao-w.gif
 +
 +
resource : https://towardsdatascience.com/a-comprehensive-guide-to-convolutional-neural-networks-the-eli5-way-3bd2b1164a53
 +
 +
* Recurrent layers
 +
* Normalization layers
 +
* ..
 +
 +
Hidden layer simulation platform for Tensorflow : playground.tensorflow.org
 +
 +
https://miro.medium.com/max/3288/1*uAeANQIOQPqWZnnuH-VEyw.jpeg

Revision as of 11:14, 9 November 2019

Installation

ANACONDA

The open-source Anaconda Distribution is the easiest way to perform Python/R data science and machine learning on Linux, Windows, and Mac OS X. With over 15 million users worldwide, it is the industry standard for developing, testing, and training on a single machine, enabling individual data scientists to:

Download : https://www.anaconda.com/distribution/

PYCHARM - IDE

For both Scientific and Web Python development. With HTML, JS, and SQL support.

Download : https://www.jetbrains.com/pycharm/download/#section=mac

TENSORFLOW

Download : https://www.tensorflow.org/install

or you can run in Docker container:

 docker pull tensorflow/tensorflow                  # Download latest image
 docker run -it -p 8888:8888 tensorflow/tensorflow  # Start a Jupyter notebook server

Neuron Network

neuron.jpg


Hello World of AI MNIST

Samples-images-in-MNIST-database.png


Layer Types

  • Fully connected(dense) layers **: Fully connected layers connect every neuron in one layer to every neuron in another layer. It is in principle the same as the traditional multi-layer perceptron neural network (MLP). The flattened matrix goes through a fully connected layer to classify the images.
  • Convolutional layers : Deep Learning algorithm which can take in an input image, assign importance (learnable weights and biases) to various aspects/objects in the image and be able to differentiate one from the other. The pre-processing required in a ConvNet is much lower as compared to other classification algorithms. While in primitive methods filters are hand-engineered, with enough training, ConvNets have the ability to learn these filters/characteristics.
  • Pooling layers: Similar to the Convolutional Layer, the Pooling layer is responsible for reducing the spatial size of the Convolved Feature. This is to decrease the computational power required to process the data through dimensionality reduction. Furthermore, it is useful for extracting dominant features which are rotational and positional invariant, thus maintaining the process of effectively training of the model.

1*uoWYsCV5vBU8SHFPAPao-w.gif

resource : https://towardsdatascience.com/a-comprehensive-guide-to-convolutional-neural-networks-the-eli5-way-3bd2b1164a53

  • Recurrent layers
  • Normalization layers
  • ..

Hidden layer simulation platform for Tensorflow : playground.tensorflow.org

1*uAeANQIOQPqWZnnuH-VEyw.jpeg