From 92b51580dc12c889ca81737bb290fb6532801964 Mon Sep 17 00:00:00 2001 From: noah Date: Mon, 10 Apr 2023 10:49:51 -0500 Subject: [PATCH] R skeleton --- .gitignore | 4 ++++ CS-7863-Sci-Stat-Proj-6.Rproj | 13 +++++++++++ Schrick-Noah_Homework-6.R | 42 +++++++++++++++++++++++++++++++++++ 3 files changed, 59 insertions(+) create mode 100644 .gitignore create mode 100644 CS-7863-Sci-Stat-Proj-6.Rproj create mode 100644 Schrick-Noah_Homework-6.R diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5b6a065 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +.Rproj.user +.Rhistory +.RData +.Ruserdata diff --git a/CS-7863-Sci-Stat-Proj-6.Rproj b/CS-7863-Sci-Stat-Proj-6.Rproj new file mode 100644 index 0000000..8e3c2eb --- /dev/null +++ b/CS-7863-Sci-Stat-Proj-6.Rproj @@ -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 diff --git a/Schrick-Noah_Homework-6.R b/Schrick-Noah_Homework-6.R new file mode 100644 index 0000000..026ab47 --- /dev/null +++ b/Schrick-Noah_Homework-6.R @@ -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 \ No newline at end of file