From e270cb74d0bc89cf5ba78f0202761dc22f751e25 Mon Sep 17 00:00:00 2001 From: Zackary Masri <117044583+zackary-masri@users.noreply.github.com> Date: Sun, 25 Oct 2026 04:54:35 -0400 Subject: [PATCH 1/5] Run backend checks on every PR --- .github/workflows/backend.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index f282a62a..e25365e7 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -7,8 +7,6 @@ on: - nextjs - prod-deploy pull_request: - paths: - - "training/**" jobs: lint: From 6419421cc22735a5f129f5e0c288ba2d320adfc9 Mon Sep 17 00:00:00 2001 From: zackary-masri <117044583+zackary-masri@users.noreply.github.com> Date: Sun, 25 Oct 2026 09:01:53 +0000 Subject: [PATCH 2/5] :art: Auto-generated directory tree for repository in Architecture.md --- .github/Architecture.md | 253 ++++++++++++++++++++-------------------- 1 file changed, 127 insertions(+), 126 deletions(-) diff --git a/.github/Architecture.md b/.github/Architecture.md index dc8ac020..e403482d 100644 --- a/.github/Architecture.md +++ b/.github/Architecture.md @@ -5,61 +5,61 @@ ``` 📦 training | |- 📂 training: -| | |- 📂 middleware: -| | | |- 📜 __init__.py -| | | |- 📜 health_check_middleware.py | | |- 📂 routes: -| | | |- 📂 datasets: -| | | | |- 📂 default: -| | | | | |- 📜 schemas.py -| | | | | |- 📜 __init__.py -| | | | | |- 📜 columns.py +| | | |- 📂 tabular: +| | | | |- 📜 schemas.py +| | | | |- 📜 tabular.py | | | | |- 📜 __init__.py | | | |- 📂 image: | | | | |- 📜 schemas.py -| | | | |- 📜 __init__.py | | | | |- 📜 image.py -| | | |- 📂 audio: -| | | | |- 📜 schemas.py | | | | |- 📜 __init__.py +| | | |- 📂 audio: | | | | |- 📜 audio.py -| | | |- 📂 tabular: | | | | |- 📜 schemas.py | | | | |- 📜 __init__.py -| | | | |- 📜 tabular.py +| | | |- 📂 datasets: +| | | | |- 📂 default: +| | | | | |- 📜 columns.py +| | | | | |- 📜 schemas.py +| | | | | |- 📜 __init__.py +| | | | |- 📜 __init__.py | | | |- 📜 schemas.py | | | |- 📜 __init__.py +| | |- 📂 middleware: +| | | |- 📜 __init__.py +| | | |- 📜 health_check_middleware.py | | |- 📂 core: | | | |- 📂 celery: -| | | | |- 📜 Dockerfile -| | | | |- 📜 __init__.py | | | | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now) | | | | |- 📜 dataset.py : read in the dataset through URL or file upload -| | | | |- 📜 train_types.py | | | | |- 📜 trainer.py | | | | |- 📜 dl_model.py : torch model based on user specifications from drag and drop -| | | | |- 📜 criterion.py | | | | |- 📜 worker.py -| | | |- 📜 __init__.py +| | | | |- 📜 criterion.py +| | | | |- 📜 Dockerfile +| | | | |- 📜 __init__.py +| | | | |- 📜 train_types.py | | | |- 📜 authenticator.py -| | |- 📜 __init__.py +| | | |- 📜 __init__.py +| | |- 📜 celery_app.py | | |- 📜 wsgi.py -| | |- 📜 celeryconfig.py +| | |- 📜 constants.py : list of helpful constants +| | |- 📜 urls.py +| | |- 📜 __init__.py | | |- 📜 settings.py | | |- 📜 asgi.py -| | |- 📜 urls.py -| | |- 📜 celery_app.py -| | |- 📜 constants.py : list of helpful constants -| |- 📜 pytest.ini +| | |- 📜 celeryconfig.py | |- 📜 cli.py -| |- 📜 Dockerfile -| |- 📜 README.md | |- 📜 docker-compose.yml -| |- 📜 docker-compose.prod.yml | |- 📜 pyproject.toml -| |- 📜 environment.yml +| |- 📜 pytest.ini +| |- 📜 docker-compose.prod.yml | |- 📜 poetry.lock +| |- 📜 README.md +| |- 📜 Dockerfile | |- 📜 manage.py +| |- 📜 environment.yml ``` ## Frontend Architecture @@ -68,179 +68,180 @@ 📦 frontend | |- 📂 public: | | |- 📂 images: -| | | |- 📂 learn_mod_images: -| | | | |- 📜 neuralnet.png -| | | | |- 📜 ReLUactivation.png -| | | | |- 📜 binarystepactivation.png -| | | | |- 📜 neuron.png -| | | | |- 📜 sigmoidactivation.png -| | | | |- 📜 robotImage.jpg -| | | | |- 📜 LeakyReLUactivation.png -| | | | |- 📜 neuronWithEquation.png -| | | | |- 📜 lossExampleTable.png -| | | | |- 📜 lossExampleEquation.png -| | | | |- 📜 sigmoidfunction.png -| | | | |- 📜 tanhactivation.png -| | | | |- 📜 lossExample.png +| | | |- 📂 wiki_images: +| | | | |- 📜 batchnorm_diagram.png +| | | | |- 📜 sigmoid_equation.png +| | | | |- 📜 maxpool2d.gif +| | | | |- 📜 tanh_plot.png +| | | | |- 📜 avgpool_maxpool.gif +| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation +| | | | |- 📜 tanh_equation.png +| | | | |- 📜 dropout_diagram.png +| | | | |- 📜 conv2d.gif +| | | | |- 📜 conv2d2.gif | | | |- 📂 logos: | | | | |- 📂 dlp_branding: | | | | | |- 📜 dlp-logo.svg : DLP Logo, duplicate of files in public, but essential as the frontend can't read public | | | | | |- 📜 dlp-logo.png : DLP Logo, duplicate of files in public, but essential as the frontend can't read public -| | | | |- 📜 dsgt-logo-light.png -| | | | |- 📜 pytorch-logo.png +| | | | |- 📜 flask-logo.png +| | | | |- 📜 aws-logo.png +| | | | |- 📜 react-logo.png +| | | | |- 📜 pandas-logo.png | | | | |- 📜 python-logo.png +| | | | |- 📜 dsgt-logo-light.png | | | | |- 📜 google.png -| | | | |- 📜 aws-logo.png | | | | |- 📜 github.png -| | | | |- 📜 flask-logo.png -| | | | |- 📜 dsgt-logo-white-back.png +| | | | |- 📜 pytorch-logo.png | | | | |- 📜 dsgt-logo-dark.png -| | | | |- 📜 react-logo.png -| | | | |- 📜 pandas-logo.png -| | | |- 📂 wiki_images: -| | | | |- 📜 sigmoid_equation.png -| | | | |- 📜 conv2d.gif -| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation -| | | | |- 📜 batchnorm_diagram.png -| | | | |- 📜 dropout_diagram.png -| | | | |- 📜 maxpool2d.gif -| | | | |- 📜 conv2d2.gif -| | | | |- 📜 tanh_equation.png -| | | | |- 📜 avgpool_maxpool.gif -| | | | |- 📜 tanh_plot.png +| | | | |- 📜 dsgt-logo-white-back.png +| | | |- 📂 learn_mod_images: +| | | | |- 📜 ReLUactivation.png +| | | | |- 📜 sigmoidfunction.png +| | | | |- 📜 tanhactivation.png +| | | | |- 📜 lossExample.png +| | | | |- 📜 neuralnet.png +| | | | |- 📜 sigmoidactivation.png +| | | | |- 📜 lossExampleTable.png +| | | | |- 📜 lossExampleEquation.png +| | | | |- 📜 LeakyReLUactivation.png +| | | | |- 📜 binarystepactivation.png +| | | | |- 📜 neuronWithEquation.png +| | | | |- 📜 robotImage.jpg +| | | | |- 📜 neuron.png | | | |- 📜 demo_video.gif : GIF tutorial of a simple classification training session | | |- 📜 manifest.json : Default React file for choosing icon based on -| | |- 📜 robots.txt -| | |- 📜 index.html : Base HTML file that will be initially rendered | | |- 📜 dlp-logo.ico : DLP Logo -| |- 📂 layer_docs: -| | |- 📜 Softmax.md : Doc for Softmax layer -| | |- 📜 softmax_equation.png : PNG file of Softmax equation -| | |- 📜 Linear.md : Doc for Linear layer -| | |- 📜 ReLU.md : Doc for ReLU later +| | |- 📜 index.html : Base HTML file that will be initially rendered +| | |- 📜 robots.txt | |- 📂 src: -| | |- 📂 pages: -| | | |- 📂 train: -| | | | |- 📜 [train_space_id].tsx -| | | | |- 📜 index.tsx -| | | | |- 📜 metrics_to_charts.tsx -| | | |- 📜 settings.tsx -| | | |- 📜 dashboard.tsx -| | | |- 📜 login.tsx -| | | |- 📜 learn.tsx -| | | |- 📜 _app.tsx -| | | |- 📜 _document.tsx -| | | |- 📜 LearnContent.tsx -| | | |- 📜 feedback.tsx -| | | |- 📜 forgot.tsx -| | | |- 📜 wiki.tsx -| | | |- 📜 about.tsx +| | |- 📂 backend_outputs: +| | | |- 📜 model.pkl +| | | |- 📜 model.pt : Last model.pt output +| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output | | |- 📂 features: | | | |- 📂 Train: +| | | | |- 📂 redux: +| | | | | |- 📜 trainspaceApi.ts +| | | | | |- 📜 trainspaceSlice.ts | | | | |- 📂 components: | | | | | |- 📜 DatasetStepLayout.tsx -| | | | | |- 📜 CreateTrainspace.tsx | | | | | |- 📜 TrainspaceLayout.tsx +| | | | | |- 📜 CreateTrainspace.tsx | | | | |- 📂 features: | | | | | |- 📂 Image: +| | | | | | |- 📂 redux: +| | | | | | | |- 📜 imageActions.ts +| | | | | | | |- 📜 imageApi.ts | | | | | | |- 📂 components: -| | | | | | | |- 📜 ImageFlow.tsx -| | | | | | | |- 📜 ImageParametersStep.tsx | | | | | | | |- 📜 ImageDatasetStep.tsx +| | | | | | | |- 📜 ImageParametersStep.tsx | | | | | | | |- 📜 ImageReviewStep.tsx | | | | | | | |- 📜 ImageTrainspace.tsx +| | | | | | | |- 📜 ImageFlow.tsx | | | | | | |- 📂 constants: | | | | | | | |- 📜 imageConstants.ts | | | | | | |- 📂 types: | | | | | | | |- 📜 imageTypes.ts -| | | | | | |- 📂 redux: -| | | | | | | |- 📜 imageApi.ts -| | | | | | | |- 📜 imageActions.ts | | | | | | |- 📜 index.ts | | | | | |- 📂 Tabular: +| | | | | | |- 📂 redux: +| | | | | | | |- 📜 tabularActions.ts +| | | | | | | |- 📜 tabularApi.ts | | | | | | |- 📂 components: -| | | | | | | |- 📜 TabularParametersStep.tsx | | | | | | | |- 📜 TabularFlow.tsx +| | | | | | | |- 📜 TabularDatasetStep.tsx | | | | | | | |- 📜 TabularTrainspace.tsx | | | | | | | |- 📜 TabularReviewStep.tsx -| | | | | | | |- 📜 TabularDatasetStep.tsx +| | | | | | | |- 📜 TabularParametersStep.tsx | | | | | | |- 📂 constants: | | | | | | | |- 📜 tabularConstants.ts | | | | | | |- 📂 types: | | | | | | | |- 📜 tabularTypes.ts -| | | | | | |- 📂 redux: -| | | | | | | |- 📜 tabularActions.ts -| | | | | | | |- 📜 tabularApi.ts | | | | | | |- 📜 index.ts | | | | |- 📂 constants: | | | | | |- 📜 trainConstants.ts | | | | |- 📂 types: | | | | | |- 📜 trainTypes.ts -| | | | |- 📂 redux: -| | | | | |- 📜 trainspaceApi.ts -| | | | | |- 📜 trainspaceSlice.ts | | | |- 📂 LearnMod: +| | | | |- 📜 ModulesSideBar.tsx +| | | | |- 📜 MCQuestion.tsx | | | | |- 📜 FRQuestion.tsx -| | | | |- 📜 Exercise.tsx | | | | |- 📜 ClassCard.tsx | | | | |- 📜 ImageComponent.tsx -| | | | |- 📜 ModulesSideBar.tsx -| | | | |- 📜 MCQuestion.tsx +| | | | |- 📜 Exercise.tsx | | | | |- 📜 LearningModulesContent.tsx | | | |- 📂 Feedback: | | | | |- 📂 redux: | | | | | |- 📜 feedbackApi.ts -| | | |- 📂 OpenAi: -| | | | |- 📜 openAiUtils.ts | | | |- 📂 Dashboard: +| | | | |- 📂 redux: +| | | | | |- 📜 dashboardApi.ts | | | | |- 📂 components: -| | | | | |- 📜 TrainDataGrid.tsx | | | | | |- 📜 TrainBarChart.tsx | | | | | |- 📜 TrainDoughnutChart.tsx -| | | | |- 📂 redux: -| | | | | |- 📜 dashboardApi.ts +| | | | | |- 📜 TrainDataGrid.tsx +| | | |- 📂 OpenAi: +| | | | |- 📜 openAiUtils.ts +| | |- 📂 pages: +| | | |- 📂 train: +| | | | |- 📜 [train_space_id].tsx +| | | | |- 📜 metrics_to_charts.tsx +| | | | |- 📜 index.tsx +| | | |- 📜 about.tsx +| | | |- 📜 settings.tsx +| | | |- 📜 LearnContent.tsx +| | | |- 📜 _document.tsx +| | | |- 📜 feedback.tsx +| | | |- 📜 forgot.tsx +| | | |- 📜 dashboard.tsx +| | | |- 📜 learn.tsx +| | | |- 📜 login.tsx +| | | |- 📜 wiki.tsx +| | | |- 📜 _app.tsx | | |- 📂 common: +| | | |- 📂 redux: +| | | | |- 📜 train.ts +| | | | |- 📜 hooks.ts +| | | | |- 📜 userLogin.ts +| | | | |- 📜 backendApi.ts +| | | | |- 📜 store.ts | | | |- 📂 components: -| | | | |- 📜 EmailInput.tsx -| | | | |- 📜 ClientOnlyPortal.tsx +| | | | |- 📜 HtmlTooltip.tsx +| | | | |- 📜 Spacer.tsx | | | | |- 📜 Footer.tsx | | | | |- 📜 TitleText.tsx +| | | | |- 📜 ClientOnlyPortal.tsx | | | | |- 📜 NavBarMain.tsx -| | | | |- 📜 Spacer.tsx +| | | | |- 📜 EmailInput.tsx | | | | |- 📜 DlpTooltip.tsx -| | | | |- 📜 HtmlTooltip.tsx | | | |- 📂 utils: | | | | |- 📜 dateFormat.ts -| | | | |- 📜 firebase.ts | | | | |- 📜 dndHelpers.ts +| | | | |- 📜 firebase.ts | | | |- 📂 styles: | | | | |- 📜 globals.css | | | | |- 📜 Home.module.css -| | | |- 📂 redux: -| | | | |- 📜 train.ts -| | | | |- 📜 backendApi.ts -| | | | |- 📜 userLogin.ts -| | | | |- 📜 hooks.ts -| | | | |- 📜 store.ts | | |- 📂 __tests__: | | | |- 📂 common: | | | | |- 📂 components: | | | | | |- 📜 TitleText.test.tsx -| | |- 📂 backend_outputs: -| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output -| | | |- 📜 model.pt : Last model.pt output -| | | |- 📜 model.pkl +| | |- 📜 constants.ts | | |- 📜 next-env.d.ts -| | |- 📜 iris.csv : Sample CSV data | | |- 📜 GlobalStyle.ts -| | |- 📜 constants.ts -| |- 📜 tsconfig.json +| | |- 📜 iris.csv : Sample CSV data +| |- 📂 layer_docs: +| | |- 📜 softmax_equation.png : PNG file of Softmax equation +| | |- 📜 ReLU.md : Doc for ReLU later +| | |- 📜 Softmax.md : Doc for Softmax layer +| | |- 📜 Linear.md : Doc for Linear layer +| |- 📜 next-env.d.ts +| |- 📜 .eslintrc.json | |- 📜 pnpm-lock.yaml -| |- 📜 package.json | |- 📜 next.config.js +| |- 📜 tsconfig.json | |- 📜 jest.config.ts -| |- 📜 next-env.d.ts +| |- 📜 .env.example +| |- 📜 package.json | |- 📜 .eslintignore -| |- 📜 .eslintrc.json ``` From 55414bfdf842b4af809feb3cb4181620fa89a642 Mon Sep 17 00:00:00 2001 From: Zackary Masri <117044583+zackary-masri@users.noreply.github.com> Date: Sun, 25 Oct 2026 05:10:11 -0400 Subject: [PATCH 3/5] Make aws.yml manual-only Updated workflow trigger to manual dispatch only. --- .github/workflows/aws.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/aws.yml b/.github/workflows/aws.yml index 911142f1..81a3335f 100644 --- a/.github/workflows/aws.yml +++ b/.github/workflows/aws.yml @@ -26,11 +26,9 @@ name: Deploy to Amazon ECS -# Only trigger, when we push to prod-deploy +# Paused Fall 2026: deploys to the old team's AWS account. Manual only, once ownership is confirmed (#5). on: - push: - branches: - - "prod-deploy" + workflow_dispatch: env: AWS_REGION: "us-west-2" # set this to your preferred AWS region, e.g. us-west-1 From a5091f6018336a068c826ef969e5497edc13d12f Mon Sep 17 00:00:00 2001 From: Zackary Masri <117044583+zackary-masri@users.noreply.github.com> Date: Sun, 25 Oct 2026 05:12:21 -0400 Subject: [PATCH 4/5] Make terraform-validate.yml manual-only Updated workflow triggers to only allow manual execution. --- .github/workflows/terraform-validate.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/terraform-validate.yml b/.github/workflows/terraform-validate.yml index e575a415..836f23e7 100644 --- a/.github/workflows/terraform-validate.yml +++ b/.github/workflows/terraform-validate.yml @@ -1,12 +1,9 @@ name: "Terraform Validation" +# Paused Fall 2026: Terraform for the old team's AWS setup. Manual only, once ownership is confirmed (#5). + on: - push: - paths: - - "dlp-terraform/**" - pull_request: - paths: - - "dlp-terraform/**" + workflow_dispatch: permissions: contents: read From e5d918fdf79e7e46651e55d46dae4448b750b768 Mon Sep 17 00:00:00 2001 From: Zackary Masri <117044583+zackary-masri@users.noreply.github.com> Date: Sun, 25 Oct 2026 05:27:12 -0400 Subject: [PATCH 5/5] Bump typing-extensions to 4.12.2 so PyTorch loads --- training/poetry.lock | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/training/poetry.lock b/training/poetry.lock index a2896991..e9aa5e2f 100644 --- a/training/poetry.lock +++ b/training/poetry.lock @@ -2212,13 +2212,13 @@ files = [ [[package]] name = "typing-extensions" -version = "4.8.0" +version = "4.12.2" description = "Backported and Experimental Type Hints for Python 3.8+" optional = false python-versions = ">=3.8" files = [ - {file = "typing_extensions-4.8.0-py3-none-any.whl", hash = "sha256:8f92fc8806f9a6b641eaa5318da32b44d401efaac0f6678c9bc448ba3605faa0"}, - {file = "typing_extensions-4.8.0.tar.gz", hash = "sha256:df8e4339e9cb77357558cbdbceca33c303714cf861d1eef15e1070055ae8b7ef"}, + {file = "typing_extensions-4.12.2-py3-none-any.whl", hash = "sha256:04e5ca0351e0f3f85c6853954072df659d0d13fac324d0072316b67d7794700d"}, + {file = "typing_extensions-4.12.2.tar.gz", hash = "sha256:1a7ead55c7e559dd4dee8856e3a88b41225abfe1ce8df57b7c13915fe121ffb8"}, ] [[package]]