Posts

Implementation of CNN

Image
Hello there tech-enthusiasts! From a very young age, we have been taught that we need to apply things that we learn. And we agree with it a one hundred percent. Knowing what convolutional neural network is not enough. You need to know how to implement it. Well, we are going to turn it in today. So let’s get started. Previously, we have learnt about CNN. Now let’s learn how to implement it. Implementation of CNN using Keras on MNISTdata set, sounds too science-y right. But trust me it is fun.MNIST is a dataset that is widely used for the study of image classification.  It contains images of handwritten digits from 0 to 9. It is divided into 60,000 training images and 10,000 testing images. Tensor flow and Keras allow us to download This dataset directly using API. Download the dataset using API. Here’s the code:  from keras.datasets import mnist (x_train, y_train), (x_test, y_test) = mnist.load_data() import matplotlib.pyplot as plt image_index = 7777 # You may select anythin...

Support vector machine

Image
  Support vector machines This model is trained with the labeled data and the algorithm outputs the optimal hyperplane which will be seen as a line in 2d space. This hyperplane is used to separate two classes called binary classification. To perform SVM on multi-class problems, we can create a binary classifier for each class of the data.  The two results of each classifier will be:  ● The data points belong to that class or                          ● The data points might not belong to the class.  Let’s understand it better with an example,  In a class of flowers, we create binary classes for each flower to perform multi-class classification. To say, rose is a class and binary class is to predict if the new data is rose or not. The classifier with the highest score is chosen as the output of the SVM.  SVM for complex data  SVM works very well without any modifications for linearly...

Convolutional Neural Networks

Image
  Hello, everyone! Welcome back to another interesting series on Applied Deep Learning. Last week we came across Artificial neural networks and its implementations. Today we are going to learn about CNN (convolutional Neural Networks). So let's get started… Convolutional Neural Networks(CNN) are seen and implemented everywhere in our day to day life. CNN is probably considered the most desired deep learning architecture. These networks are quite familiar to feed-forward neural networks which we discussed in the last session. CNN undergoes the concepts of weights and biases. Neuron's arrangements are represented in the form of 3-dimensional arrays. The limelight to CNN in recent years is all because of its immense popularity in deep learning and its effectiveness towards convents.  CNN is computationally efficient and it has a unique ability that it surpassed its predecessors in terms of detecting important components without the involvement of human supervision. The spatial ...

Artificial Neural Network training process

Image
Implementing Artificial Neural Network training process in Python An Artificial Neural Network (ANN) is an information science paradigm that's inspired by the brain. ANNs, like people, learn by example. An ANN is configured for a selected application, like pattern recognition or data classification, through a learning process. Learning largely involves adjustments to the synaptic connections that exist between the neurons.   The brain consists of many billion of cells called neurons. These neurons are connected together by synapses which are nothing but the connections across which a neuron can send an impulse to a different neuron. When a neuron sends an excitatory signal to a different neuron, then this signal is going to be added to all or any of the opposite inputs of that neuron. If it exceeds a given threshold then it'll cause the target neuron to fireside an action signal forward — this is often how the thinking process works internally. In computing , we model this proc...

Bayesian Linear Regression Model 

Image
Linear Regression is a very simple machine learning method in which each datapoints is a pair of vectors: the input vector and the output vector. In the simplest case linear regression assumes that the k'th output vector was formed as some linear combination of the components of the k'th input vector plus a constant term, and then Gaussian noise was added. Classical linear regression can then be used to identify, based on the data, the best fitting linear relationship between the inputs and outputs. It turns out that this is an efficient process (at least for fewer than around 30 or 40 inputs) because it simply involves building two matrices from the data and then solving a DxD system of linear equations where D is (1 + the number of inputs). Bayesian linear regression allows a fairly natural mechanism to survive insufficient data, or poor distributed data. It allows you to put a prior on the coefficients and on the noise so that in the absence of data, the priors can take over...

Artificial Neural Networks:

Image
Artificial neural networks (ANN) generally known as Neural networks that enumerate the computing systems virtually stimulated by biological neural networks that initiate animal and human brains. ⦁ Neural networks are quite a resemblance to Human brains. ⦁ Artificial Neural Networks are a group of collective units and nodes known as artificial neurons. ⦁ Neural network knowledge is stored within the interconnection strengths known as synaptic weight. ⦁ Activation functions are implemented in (ANN). ⦁ These networks are determined by utilizing their architecture and algorithms. Neural networks are embedded with the computational learning system with the help of neural functions and convert the complex data sets into the desired output with ease according to the requirements. Neural networks play a significant role in Deep learning. Both Neural networks and deep learning are both inter-linked to one another. Currently, these both are in a stage where many unsolved theories and application...

Neural Networks Implementation

Image
Learning of the neural network takes place on the idea of a sample of the population under study. During the course of learning, compare the worth delivered by the output unit with actual value. then adjust the weights of all units so as to improve the prediction. There are many Neural Network Algorithms available for training Artificial Neural Networks. allow us to now see some important Algorithms for training Neural Networks: Gradient Descent — wont to find the local minimum of a function. Evolutionary Algorithms — supported the concept of survival or survival of the fittest in Biology. Genetic Algorithm — Enable the foremost appropriate rules for the answer of a drag and choose it. So, they send their ‘genetic material’ to ‘child’ rules. we'll study them intimately below. Gradient Descent We use the gradient descent algorithm to seek out the local smallest of a function. The Neural Network Algorithm converges to the local smallest. By approaching proportional to the negative of...