Skip to content

JesusTorresRodriguez/machine_learning_algorithms

Repository files navigation

reg_linear_closed_solution

This directory contains the implementation of linear regression using the closed-form solution.

main.py

This script performs the following tasks:

  1. Loads the California housing dataset.
  2. Extracts the first feature and the target variable.
  3. Plots the data points.
  4. Computes the linear regression coefficients using the closed-form solution.
  5. Plots the regression line.

Requirements

  • numpy
  • matplotlib
  • scikit-learn

You can install the required packages using the following command:

About

This project calculates the linear regression using a closed solution fuction

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published