Git Product home page Git Product logo

regressions_ml_hw4's Introduction

Ridge and Lasso reggressions

This repo serves for the usage of linear regressions in datasets that vary in decision making for housing and finances.

Input Files

Please change the name of the path directories in which the data and the models can be saved. This are the variables named "path#". The docs should be found in a local directory called docs.

Libraries

Please install libraries required for the Python program to run. In case there is a problem, a google colab link has been provided inside the code for usage online. It is linked to an open drive that contains the data used for the analysis. Would require a google account to access it but is open to anyone.

Code Description

function reader = reads data from txt files.

function boston_split = serves for splitting datasets for boston housing info.

function optim_ridge = solution function for ridge regression of the boston housing data.

function optim_lasso = solution function for lasso regression of the boston housing data.

function optim_ridge_e20 = solution function for ridge regression of e2006 data.

function optim_lasso_e20 = solution function for lasso regression of e2006 data.

function ridge_model = creates a ridge model with varying alpha.

function lasso_model = creates a lasso model with varying alpha.

function e2006_split = splits data from e2006 dataset.

function coeff_matrices = creates matrices with interceptions, RMSE and the correlated variables.

function plot_rmse = plots RMSE curves.

function ridge_kfold = performs 5-cross validation analysis on ridge regression.

function lasso_kfold = performs 5-cross validation analysis on lasso regression.

regressions_ml_hw4's People

Contributors

erazocar avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.