Neural Network is nothing but a Linear Regression
From the publisher’s feed, collected in the ZeroLabs newsroom.
A brief explanation on “Neural Network is nothing but a Linear Regression or a Straight Line”Neural Networks are a type of Artificial Intelligence (AI) that are modeled after the human brain. They are used to process large amounts of data in order to make predictions or decisions, and they are composed of layers of interconnected nodes. While a Neural Network can look complex, it is essentially a straight line of logic that connects the input to the output. Each node takes the input data, processes it in a specific way, and passes it on to the next node. In this way, the Neural Network uses the data to make a prediction or decision. Neural Networks are derived from Linear Regression and are based on the idea of Multiple Linear Regression models with multiple layers of neurons, or nodes, that are connected to each other in a network.Similarities between Neural Network and Linear RegressionA Neural Network is a type of machine learning algorithm that uses a mathematical model to solve problems. It is similar to Linear Regression in a way that it also uses a set of inputs and weights to produce an output. The difference is that a neural network has more layers that allow it to learn more complex relationships between the inputs and outputs. It can also learn patterns in data that Linear Regression cannot.Now Let’s get a clear understanding of Single Neural Network, Multiple Neural Network and some trending research areas in Machine Learning.Basic Concept of Single Neural NetworkRegression models are used to identify correlations within the data. Linear regression fits linear equations, like y=mx+c which we studied in algebra. If there is only one variable, this is known as single-variate linear regression. When we use only one variable to in Linear Regression then it is called Single Neural Network.Single Neural NetworkHere in Single Neural Network, y=mx+c; x is feature vector, c is bias, y is output or dependent variable, m is weight vector.But it is written as -Basic Concept of Multiple Neural NetworkWhen there are multiple variables, it is referred to as Multiple Linear Regression or it can be called as Simple Perceptron.The modern Neural Network concept was originated from Multiple Linear Regression.Multiple Neural NetworkMultiple Linear Regression or Simple Perceptron consists of a single layer of neurons, or nodes, which are connected to other neurons through weighted edges. Each neuron receives multiple inputs from other neurons and produces a single output. The output of the neuron is determined by a linear combination of these inputs, weighted by a set of coefficients, which are learned through a training process. As such, simple perceptron is a type of multiple linear regression, which is a statistical technique for finding the coefficients that best fit a given set of data.Input layer and the layer in the middle (hidden layers) are densely connected because every input is connected to every hidden unit.Here, we have the input data (features), x1, x2 and x3. The function to be fit takes each of these data points, multiplies it by a weight w1, w2 or w3 and adds them together. The b is the ‘bias’, which is analogous to the ‘c’ in a linear equation y=mx+c.But it is written as -F(x) = w1 . x1 + w2 . x2 + w3 . x3 + 1 . bSo, we can say that Neural Networks are derived from these linear regression techniques and are based on the idea of multiple linear regression models with multiple layers of neurons, or nodes, that are connected to each other in a network.Linear Regression is a linear model. But Neural Networks are non-linear. So how can we say that the Neural Network is nothing but a Linear Regression?It’s because of the type of activation function. If we use no activation function or linear activation function in Neural Network then the Neural Network becomes a Linear Regression model.STAY WITH ME. I WILL DISCUSS ACTIVATION FUNCTION IN MY ARTICLE.Why did they use Transpose of the weight vector?To answer that, we have get our Vector & Matrix concepts clear. Our equation is F(x) = w.x + b. Here, w is weight vector and x is feature vector. Both w and x vectors can be identified with row matrices.w = [w1 w2 w3]x = [x1 x2 x3]If vectors are identified with row matrices, then the dot product can also be written as a matrix product.To put it simply w = [w1 w2 w3], weight matrix has 1 row and 3 columns. x = [x1 x2 x3], feature matrix also has 1 row and 3 columns. For this situation matrix multiplication is not possible. Because for matrix multiplication, the column number of w has to be equal to the row number of x. Hence, we have to transpose the weight.Now for the Transpose of w, the rows are 3 and column is 1. No we can do matrix multiplication with x, which has 1 row and 3 columns. So, if we don’t transpose the weight vector then we can’t do multiplication with the feature vector.Trending Research AreasActive LearningActive learning is a machine learning technique that can be used to label huge datasets with the help of some labeled data. It involves the use of a model that can be used to predict the label of the unlabeled data and then use the results to select which data should be labeled. By doing this, the model can be trained on a more diverse dataset, improving its accuracy and overall performance. Additionally, active learning can be used to reduce the amount of labeled data needed for training, thus making the process faster and more efficient.Research Areas on Active LearningAutomated Curriculum Generation in Active LearningAdaptive Learning for Active LearningMulti-Objective Optimization for Active LearningActive Learning for Low-Resource SettingsActive Learning for Natural Language ProcessingActive Learning for Explainable Artificial IntelligenceActive Learning for Reinforcement LearningActive Learning for Multi-Modal DataActive Learning for Unsupervised LearningActive Learning for Visual RecognitionImage synthesisImage synthesis is the process of generating a new image or sequence of images using existing ones. It is an important component of computer vision, which is the process of understanding and extracting meaningful information from digital images. Image synthesis can be used to populate a database with new images, create realistic simulations, and generate new visual effects.Research Areas on Image synthesisGenerative Adversarial Networks (GANs)Image-to-Image TranslationStyle TransferImage Super-ResolutionText-to-Image SynthesisVideo SynthesisImage Generation from Structured DataImage Synthesis from Text DescriptionsImage ManipulationDomain AdaptationSee you in the next Article. That’s it for now.If you found this article interesting, helpful and if you learn something from this article, please follow, comment and leave feedback.If you want to connect with me, here is my LinkedIn.Neural Network is nothing but a Linear Regression was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.