TechTree

Clear

Python Code : Machine Learining - Simple Linear Regression

By Vineet • Nov 13, 2025
## Importing the libraries

import numpy as np
import matplotlib.pyplot as plt
import pandas as pd

## Importing the dataset
dataset = pd.read_csv('Salary_Data.csv')


X = dataset.iloc[:, :-...
Read More

Machine Learining - Simple Linear Regression

By Vineet • Nov 13, 2025
Simple Linear Regression
What is Linear Regression?
Linear regression is a statistical method used to model the relationship between a dependent variable (Y) and an independent variable (X) by fitti...
Read More