By Severin Schirmer
This project aimed to solve a regression problem using linear regression including OLS, Ridge, and Lasso.
code
- All code related to the project and the terrain dataassessment.
- Functions used for model assessment including bootstrap and cross validation across all filesFranke_test
- Implementation of the selected models on a test set from Franke's functionComparison_lasso_ridge
- Plots comparison of ridge and lasso for different lambda valuesLasso_Franke
- Model selection for Lasso on Franke's, including seperate function for cross validation for LassoOLS_Franke
- Simple introductory analysis of OLS on Franke'sOLS_Franke_bootstrap
- Bias-variance analysis of OLS on Franke's used in model selectionOLS_Franke_crossvalidation
- 5 fold cross validation analysis used in model selectionon Franke'sRidge_Franke
- Cross validation used for model selection on Franke'sRidge_terrain
- Bootstrap and cross validation of Ridge on terrain data for single lambda valuessetup
- Setup files including implementation of design matrix, producing synthetic Franke data, and MSE and R2 functionsSRTM_data_Norway_1
- Terrain data used in projectterrain_analysis
- Model selection and final test for OLS, Ridge, and Lasso on the terrain dataterrain_analysis_tools
- Model selection functions based on terrain data for OLS, Ridge and Lassoterrain_setup
- Import of data with splitting into train, validation and test set, and plotting of terrain.
report
- The reportresources
- All figures produced by code including some that are not in the report.