In 3 dimensions, linear regression can be represented using planes.
#machinelearning #artificialintelligence #ai
In 3 dimensions, linear regression can be represented using planes. Extending to even higher dimensions, linear regression would fit a n-dimensional hyperplane to our data.
To train our model or to fit the plane to our high dimensional data, we require calculus and linear algebra. We also need a metric to determine how good our plane is. This metric is called the loss function, and is typically the mean-squared error (MSE) or equivalents.
In the training process, we feed input data to the model, producing an output, then measuring the difference between the predicted and real outputs. We take this difference (loss) and use an optimization technique like gradient descent to tweak the parameters that make up the plane. This shifts the steepness and position of the plane.
By using the chain rule in calculus, we are able to update our parameters slowly and iteratively, shifting the line closer and closer to the data. We stop training when our model/plane has converged or does not change much from iteration to iteration.
Want to Learn ML/AI? Accelerate your learning with our Weekly AI Newsletter—educational, easy to understand, mathematically explained, and completely free (link in bio 🔗).
C: Algoneural
Join our AI community for more posts like this @aibutsimple 🤖
#machinelearning #artificialintelligence #ai #datascience #technology #python #programming #deeplearning #bigdata #coding #tech #computerscience #data #aiart #iot #digitalart #dataanalytics #innovation #software #datascientist #pythonprogramming #business #javascript #developer #analytics #java #programmer #cybersecurity #generativeart #webdevelopment
Comments
Comments from the original post on Instagram
No comments yet
