R skeleton

This commit is contained in:
Noah L. Schrick 2023-04-10 10:49:51 -05:00
parent d7ed002ebc
commit 92b51580dc
3 changed files with 59 additions and 0 deletions

4
.gitignore vendored Normal file
View File

@ -0,0 +1,4 @@
.Rproj.user
.Rhistory
.RData
.Ruserdata

View File

@ -0,0 +1,13 @@
Version: 1.0
RestoreWorkspace: Default
SaveWorkspace: Default
AlwaysSaveHistory: Default
EnableCodeIndexing: Yes
UseSpacesForTab: Yes
NumSpacesForTab: 2
Encoding: UTF-8
RnwWeave: Sweave
LaTeX: pdfLaTeX

42
Schrick-Noah_Homework-6.R Normal file
View File

@ -0,0 +1,42 @@
# Project 6 for the University of Tulsa's CS-7863 Sci-Stat Course
# Penalized Machine Learning
# Professor: Dr. McKinney, Spring 2023
# Noah L. Schrick - 1492657
# 1. Penalized Regression and Classification
## a. Modified Ridge classification for LASSO penalties
## Add cross-validation to tune penalty param
## Use npdro simulated data to test
## Compare with Ridge
## Compare with Random Forest
## Compare with glmnet
### Alpha = 0
### Alpha = 1
## b. Repeat comparison using a graph with clusters
## c. Use npdro and igraph to create knn
## Plot network
## d. Add Laplace graph penalty
## Find resulting beta coeffs
## Optimize or choose value for lambda2
## Compare to a) and b)
# 2. Gradient Descent
## Write fn with learning param
## Solve Rosenbrock function minimum
## Add momentum term