author: Juma Shafara date: "2024-08-09" title: Clear Linear keywords: [Training Two Parameter, Mini-Batch Gradient Decent, Training Two Parameter Mini-Batch Gradient Decent] description: In this lab, we will review how to make a prediction for Linear Regression with Multiple Output.

Objective
- How to make a prediction using multiple samples.
Table of Contents
In this lab, we will review how to make a prediction for Linear Regression with Multiple Output.
- Build Custom Modules
Estimated Time Needed: 15 min
Set the random seed:
Set the random seed:
create a linear regression object, as our input and output will be two we set the parameters accordingly
we can use the diagram to represent the model or object

we can see the parameters
we can create a tensor with two rows representing one sample of data
we can make a prediction
each row in the following tensor represents a different sample
we can make a prediction using multiple samples
the following figure represents the operation, where the red and blue represents the different parameters, and the different shades of green represent different samples.

About the Author:
Hi, My name is Juma Shafara. Am a Data Scientist and Instructor at DATAIDEA. I have taught hundreds of peope Programming, Data Analysis and Machine Learning.
I also enjoy developing innovative algorithms and models that can drive insights and value.
I regularly share some content that I find useful throughout my learning/teaching journey to simplify concepts in Machine Learning, Mathematics, Programming, and related topics on my website jumashafara.dataidea.org.
Besides these technical stuff, I enjoy watching soccer, movies and reading mystery books.