Skip to content

maazfaisal02/linear-regression

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

linear-regression

This project analyzes student performance data using a linear regression model implemented with gradient descent. Prerequisites Ensure you have Python 3.1+ installed on your system. You can download it from python.org. Setup

Clone this repository or download the source code, and run each cell in order

Install the required libraries: Copypip install pandas numpy scikit-learn matplotlib ucimlrepo

Required Libraries This project uses the following Python libraries:

pandas numpy scikit-learn matplotlib ucimlrepo

Running the Code

Ensure you're in the project directory. Run the main script: python cs4375_ao1.py

The script will output:

Best hyperparameters Training and test Mean Squared Error (MSE) Top 10 most important features

Troubleshooting If you encounter any issues:

Ensure all required libraries are installed correctly. Check that you're using a compatible Python version (3.1+). Verify that the dataset is accessible through the ucimlrepo library.

Note to TA If you have any difficulties running this code, please don't hesitate to reach out. I'm happy to provide additional clarification or assistance to ensure the code runs smoothly on your system.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors