Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Exam (elaborations)

Applied Machine Learning (predicting Students Exam Scores) Lab

Rating
-
Sold
-
Pages
15
Grade
A+
Uploaded on
07-10-2024
Written in
2024/2025

This project aims to develop a machine learning model that accurately forecasts student exam scores by analyzing factors like attendance, homework completion, quiz results, and other relevant data. By training the model on a comprehensive dataset, we can gain valuable insights into student performance and potentially identify areas for improvement in teaching and learning strategies.

Show more Read less
Institution
Course

Content preview

Applied Machine Learning – Lab Sheet3- M3
(Predicting Student Exam Scores)
Module 3: Linear Regression with Gradient Descent, Linear
Regression with Least squares, Polynomial regression using
Python.


Task 1: Implementing Linear Regression with Gradient
Descent
Step 1: Preprocessing the Data
import pandas as pd

import numpy as np

from sklearn.model_selection import train_test_split

from sklearn.preprocessing import StandardScaler, OneHotEncoder

from sklearn.compose import ColumnTransformer

from sklearn.pipeline import Pipeline

from sklearn.impute import SimpleImputer

import matplotlib.pyplot as plt



# Load the dataset

url = 'https://drive.google.com/uc?id=1TwOizNpaHfITQK_kWbFVBTlHAw0e1bxW'

data = pd.read_csv(url)



# Display the first few rows of the dataset

print(data.head())

# Display dataset information

print(data.info())

, # Check for missing values

print(data.isnull().sum())



# Separate features and target

X = data.drop('Exam_Scores', axis=1)

y = data['Exam_Scores']



# Identify categorical and numeric columns

categorical_features = ['Parental_Education', 'Ethnicity']

numeric_features = ['Hours_Studied', 'Previous_Exams']



# Preprocessing pipeline

numeric_transformer = Pipeline(steps=[

('imputer', SimpleImputer(strategy='mean')),

('scaler', StandardScaler())])



categorical_transformer = Pipeline(steps=[

('imputer', SimpleImputer(strategy='most_frequent')),

Written for

Course

Document information

Uploaded on
October 7, 2024
Number of pages
15
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

$8.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
naveenbamaprofessional

Get to know the seller

Seller avatar
naveenbamaprofessional Self
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
9
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions