Skip to content

Commit

Permalink
updates to some old files
Browse files Browse the repository at this point in the history
  • Loading branch information
cnrrobertson committed Apr 3, 2024
1 parent 8f499a6 commit 8674a68
Show file tree
Hide file tree
Showing 47 changed files with 5,883 additions and 18,234 deletions.
939 changes: 939 additions & 0 deletions docs/other/fun/ml/em_files/figure-html/cell-19-output-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,413 changes: 1,413 additions & 0 deletions docs/other/fun/ml/em_files/figure-html/cell-20-output-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1,465 changes: 1,465 additions & 0 deletions docs/other/fun/ml/em_files/figure-html/cell-21-output-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
277 changes: 277 additions & 0 deletions docs/other/fun/ml/em_files/figure-html/cell-5-output-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
150 changes: 150 additions & 0 deletions docs/other/fun/ml/em_files/figure-html/cell-6-output-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
150 changes: 150 additions & 0 deletions docs/other/fun/ml/em_files/figure-html/cell-7-output-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
896 changes: 896 additions & 0 deletions docs/other/fun/ml/em_files/figure-html/cell-7-output-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed docs/other/fun/ml/gifs/gmm2.gif
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -177,10 +177,6 @@
<li class="nav-item">
<a class="nav-link" href="../../../../cv.html">
<span class="menu-text">CV</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../teaching/teaching.html">
<span class="menu-text">Teaching</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../research/research.html">
Expand All @@ -198,6 +194,10 @@
<li>
<a class="dropdown-item" href="../../../../other/mlseminar/mlseminar.html">
<span class="dropdown-text">Machine Learning and Optimization Seminar</span></a>
</li>
<li>
<a class="dropdown-item" href="../../../../other/teaching/teaching.html">
<span class="dropdown-text">NJIT Teaching</span></a>
</li>
</ul>
</li>
Expand Down

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions docs/other/mlseminar/fall_2022/workshop2_nn/workshop2_nn.html
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,6 @@
<li class="nav-item">
<a class="nav-link" href="../../../../cv.html">
<span class="menu-text">CV</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../teaching/teaching.html">
<span class="menu-text">Teaching</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../research/research.html">
Expand All @@ -178,6 +174,10 @@
<li>
<a class="dropdown-item" href="../../../../other/mlseminar/mlseminar.html">
<span class="dropdown-text">Machine Learning and Optimization Seminar</span></a>
</li>
<li>
<a class="dropdown-item" href="../../../../other/teaching/teaching.html">
<span class="dropdown-text">NJIT Teaching</span></a>
</li>
</ul>
</li>
Expand Down
16 changes: 8 additions & 8 deletions docs/other/mlseminar/fall_2022/workshop2_nn/workshop2_nn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"\n",
" !pip install numpy py-pde tensorflow matplotlib"
],
"id": "84df7de0-ea3f-4b15-8bf1-3455589ae4f5"
"id": "6ec222ea-05bd-4ae5-a691-795936576666"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -59,7 +59,7 @@
"unclear that the network we discover from our optimization problem will\n",
"be that network."
],
"id": "a80ea625-faaf-4b16-958e-8a15524bd81a"
"id": "8b339c1d-4733-4ba0-849f-19ecaf85ee97"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -123,7 +123,7 @@
"We consider a simple 1D transport equation with periodic boundary\n",
"conditions"
],
"id": "2ad9e0e2-5a4f-446e-84e4-e9c31db6fb73"
"id": "8dccac1d-1a52-416c-9f03-dbdf4697bac5"
},
{
"cell_type": "raw",
Expand All @@ -139,7 +139,7 @@
"u(x,t) = u(x+L,t)\n",
"\\end{cases}"
],
"id": "9eab162c-5ce2-43a1-b05f-ca1a68b340a9"
"id": "07431be6-e053-4ba3-ae52-f63bbf8cb763"
},
{
"cell_type": "markdown",
Expand All @@ -156,7 +156,7 @@
"Note that this isn’t an attempt to solve the PDE using NNs, rather we\n",
"are just using the PDE data as a specific set of training data."
],
"id": "02895699-738d-48ea-b2de-f3c61dcddd03"
"id": "33473e0c-94bd-438b-b90e-753ae7635964"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -206,7 +206,7 @@
"array of each pair of $x,t$ data points, and map the $h(x,t)$ to array\n",
"of the corresponding values."
],
"id": "2395bcb6-2a3d-49b5-8058-5f807db69213"
"id": "519f5134-ff24-413d-9fca-0df2b6a218dd"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -239,7 +239,7 @@
"layer. We can specify the initial input shape in the first layer, and\n",
"each size and activation function for each layer."
],
"id": "043b366e-3738-4d43-ab1e-68123a4bbaf1"
"id": "4313529e-b7cf-409f-81a6-ff222044f6e9"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -363,7 +363,7 @@
"data. There are ways to better chose hyper-parameters and mitigate\n",
"things like over fitting, but that is beyond the scope of this workshop."
],
"id": "42e24041-5f7e-43e9-9b93-562bfd07e7b2"
"id": "1613e058-e695-478f-be4e-0685e36897f0"
},
{
"cell_type": "code",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -181,10 +181,6 @@
<li class="nav-item">
<a class="nav-link" href="../../../../cv.html">
<span class="menu-text">CV</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../teaching/teaching.html">
<span class="menu-text">Teaching</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../research/research.html">
Expand All @@ -202,6 +198,10 @@
<li>
<a class="dropdown-item" href="../../../../other/mlseminar/mlseminar.html">
<span class="dropdown-text">Machine Learning and Optimization Seminar</span></a>
</li>
<li>
<a class="dropdown-item" href="../../../../other/teaching/teaching.html">
<span class="dropdown-text">NJIT Teaching</span></a>
</li>
</ul>
</li>
Expand Down

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@
<li class="nav-item">
<a class="nav-link" href="../../../../cv.html">
<span class="menu-text">CV</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../teaching/teaching.html">
<span class="menu-text">Teaching</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../research/research.html">
Expand All @@ -148,6 +144,10 @@
<li>
<a class="dropdown-item" href="../../../../other/mlseminar/mlseminar.html">
<span class="dropdown-text">Machine Learning and Optimization Seminar</span></a>
</li>
<li>
<a class="dropdown-item" href="../../../../other/teaching/teaching.html">
<span class="dropdown-text">NJIT Teaching</span></a>
</li>
</ul>
</li>
Expand Down
16 changes: 8 additions & 8 deletions docs/other/mlseminar/fall_2022/workshop4_cnn/workshop4_cnn.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"\n",
"## Installing and loading some needed packages"
],
"id": "ba25782c-b3a4-4364-8fa5-13fa523142c6"
"id": "f7419798-c495-4f88-94b4-cb74e2290cc5"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -41,7 +41,7 @@
"source": [
"## Loading the MNIST data from keras library and split that into train and test dataset"
],
"id": "9b3bcb96-afb3-4c9f-94fc-de0e700d5adf"
"id": "be551c15-1394-4d7f-9949-338b30ebd86b"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -129,7 +129,7 @@
"source": [
"## Normalize data and put them into the correct format"
],
"id": "03e4b85d-0bc0-4b5f-ad8f-6cdd45011532"
"id": "e1e0a091-22c8-4b85-95e1-ea144086eca9"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -168,7 +168,7 @@
"source": [
"## Convolutional Neural Network (CNN) structure"
],
"id": "8c8ad319-dbb1-47c1-b4ca-33ce3c77c3c4"
"id": "e598b2ad-aa58-4501-9c26-87050510b0cb"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -238,7 +238,7 @@
"source": [
"## Training the CNN"
],
"id": "773ea937-8e51-4531-b864-2853b2830d1e"
"id": "3fa203cc-383f-42c7-903d-4a7c58d71119"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -317,7 +317,7 @@
"\n",
"## 1. Write a number in 6 different ways on a paper and transfer the picture into the same directory that your Jupyter Notebook is"
],
"id": "c5fde2bc-09f1-4646-8255-1bc656f13b9b"
"id": "ec5c58b8-a223-4650-bf87-c35a6b0a4de7"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -373,7 +373,7 @@
"source": [
"## 2. Take a picture of each of them individually – you can have only one picture and then crop it into 6 different pieces"
],
"id": "05da699d-afe1-4f54-9c82-0e7302955378"
"id": "69c5bf37-71ec-4c1b-9df0-1fa0bada0012"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -409,7 +409,7 @@
"source": [
"## 4. Change the format of the picture into a readable form for your CNN model"
],
"id": "1b00e721-9cab-4649-8b12-db2012d8f29a"
"id": "cd424e8e-f353-4053-ae16-db11949bf948"
},
{
"cell_type": "code",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@
<li class="nav-item">
<a class="nav-link" href="../../../../cv.html">
<span class="menu-text">CV</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../teaching/teaching.html">
<span class="menu-text">Teaching</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../../research/research.html">
Expand All @@ -148,6 +144,10 @@
<li>
<a class="dropdown-item" href="../../../../other/mlseminar/mlseminar.html">
<span class="dropdown-text">Machine Learning and Optimization Seminar</span></a>
</li>
<li>
<a class="dropdown-item" href="../../../../other/teaching/teaching.html">
<span class="dropdown-text">NJIT Teaching</span></a>
</li>
</ul>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"\n",
"# Required Libraries"
],
"id": "632ff995-47f4-461c-9ea2-e1db2cd046e0"
"id": "02bd3f73-67e0-49f7-9457-eed72cbe95e5"
},
{
"cell_type": "code",
Expand All @@ -42,7 +42,7 @@
"source": [
"# Initialize the Environment"
],
"id": "6f2a7046-a92b-45b7-bade-3365540d2a26"
"id": "64704eac-ebca-432f-baa7-1587d4898080"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -74,7 +74,7 @@
"- H: hole, stuck forever\n",
"- G: goal, safe"
],
"id": "68988531-5258-4f7a-8f95-0e4a85838f3c"
"id": "0327010b-3f25-4249-b5a6-34c47fc71f6c"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -132,7 +132,7 @@
"\n",
"# Size of Action and State Space"
],
"id": "f73ec057-057b-4cfa-a689-8f4387f286ec"
"id": "149c20de-c6c9-405f-94e4-54fed5498c70"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -170,7 +170,7 @@
"\n",
"# Initialize Q Table"
],
"id": "551ba75c-7b23-4376-9d03-7b38f8e1e2f4"
"id": "93bff943-fe6a-4db1-9ae4-0cfc446f2088"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -251,7 +251,7 @@
"- Choose a random action to try to find even better ones\n",
" **(exploration)**."
],
"id": "df4e8732-8ff5-4102-836c-50435c79b94b"
"id": "8f20f1c3-902c-4167-aa20-6acb6516ac41"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -279,7 +279,7 @@
"source": [
"# Hyperparameters"
],
"id": "45754339-8275-4b8a-9a8c-bb3bc05d6b96"
"id": "f920b6f3-3f36-4cdc-b57e-3d59e32cae71"
},
{
"cell_type": "code",
Expand All @@ -301,7 +301,7 @@
"source": [
"# Training"
],
"id": "a678be9e-f34b-4f8c-abb3-dd83d9dec454"
"id": "3d18469c-5181-455c-a61f-c38afb75835d"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -357,7 +357,7 @@
"source": [
"# Updated Q Table"
],
"id": "0678f71d-a812-48ce-b7f6-981ebb304d80"
"id": "edfc871d-a981-43a7-a405-fb3583a4803b"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -402,7 +402,7 @@
"source": [
"# Plot Outcomes"
],
"id": "ce973e7f-b61a-4ee5-9ac9-c8e636618981"
"id": "e83b76a3-5bfc-4e65-b5e5-7f7262512260"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -434,7 +434,7 @@
"source": [
"# Evaluation"
],
"id": "54e9ccd1-2253-41dc-a258-9fd60d1beccf"
"id": "34aee660-1143-43f2-a4ad-6e6a1cf61adb"
},
{
"cell_type": "code",
Expand Down
8 changes: 4 additions & 4 deletions docs/other/mlseminar/mlseminar.html
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,6 @@
<li class="nav-item">
<a class="nav-link" href="../../cv.html">
<span class="menu-text">CV</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../teaching/teaching.html">
<span class="menu-text">Teaching</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../research/research.html">
Expand All @@ -114,6 +110,10 @@
<li>
<a class="dropdown-item" href="../../other/mlseminar/mlseminar.html">
<span class="dropdown-text">Machine Learning and Optimization Seminar</span></a>
</li>
<li>
<a class="dropdown-item" href="../../other/teaching/teaching.html">
<span class="dropdown-text">NJIT Teaching</span></a>
</li>
</ul>
</li>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,10 +127,6 @@
<li class="nav-item">
<a class="nav-link" href="../../../cv.html">
<span class="menu-text">CV</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../teaching/teaching.html">
<span class="menu-text">Teaching</span></a>
</li>
<li class="nav-item">
<a class="nav-link" href="../../../research/research.html">
Expand All @@ -148,6 +144,10 @@
<li>
<a class="dropdown-item" href="../../../other/mlseminar/mlseminar.html">
<span class="dropdown-text">Machine Learning and Optimization Seminar</span></a>
</li>
<li>
<a class="dropdown-item" href="../../../other/teaching/teaching.html">
<span class="dropdown-text">NJIT Teaching</span></a>
</li>
</ul>
</li>
Expand Down
Loading

0 comments on commit 8674a68

Please sign in to comment.