Skip to content

Commit

Permalink
add docker containers to training (#1071)
Browse files Browse the repository at this point in the history
* add docker containers to training

* remove nginx

* update dockerfiles

* update dockerfiles

* 🎨 Auto-generated directory tree for repository in Architecture.md

* update readme

* add env argument

* fix dependencies

* change base image

* update dev dep

* 🎨 Auto-generated directory tree for repository in Architecture.md

---------

Co-authored-by: andrewpeng02 <[email protected]>
  • Loading branch information
andrewpeng02 and andrewpeng02 authored Dec 18, 2023
1 parent 7e9b9fc commit 0c61b5d
Show file tree
Hide file tree
Showing 8 changed files with 246 additions and 151 deletions.
288 changes: 144 additions & 144 deletions .github/Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,220 +4,220 @@

```
📦 backend
| |- 📂 ml:
| | |- 📜 __init__.py
| | |- 📜 ml_model_parser.py
| | |- 📜 ml_trainer.py : train a classical machine learning learning model on the dataset
| |- 📂 common:
| | |- 📜 default_datasets.py : store logic to load in default datasets from scikit-learn
| | |- 📜 ai_drive.py
| | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now)
| | |- 📜 __init__.py
| | |- 📜 kernel.py
| | |- 📜 constants.py : list of helpful constants
| | |- 📜 dataset.py : read in the dataset through URL or file upload
| | |- 📜 preprocessing.py
| | |- 📜 utils.py : utility functions that could be helpful
| | |- 📜 email_notifier.py : Endpoint to send email notification of training results via API Gateway + AWS SES
| | |- 📜 default_datasets.py : store logic to load in default datasets from scikit-learn
| | |- 📜 dataset.py : read in the dataset through URL or file upload
| | |- 📜 constants.py : list of helpful constants
| | |- 📜 utils.py : utility functions that could be helpful
| | |- 📜 __init__.py
| | |- 📜 loss_functions.py : loss function enum
| | |- 📜 kernel.py
| | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now)
| |- 📂 dl:
| | |- 📜 detection.py
| | |- 📜 dl_model_parser.py : parse the user specified pytorch model
| | |- 📜 dl_eval.py : Evaluation functions for deep learning models in Pytorch (eg: accuracy, loss, etc)
| | |- 📜 __init__.py
| | |- 📜 dl_model.py : torch model based on user specifications from drag and drop
| | |- 📜 dl_trainer.py : train a deep learning model on the dataset
| |- 📂 aws_helpers:
| | |- 📂 dynamo_db_utils:
| | | |- 📜 trainspace_db.py
| | | |- 📜 userprogress_db.py
| | | |- 📜 constants.py : list of helpful constants
| | | |- 📜 DynamoUnitTests.md
| | | |- 📜 trainspace_db.py
| | | |- 📜 dynamo_db_utils.py
| | |- 📜 __init__.py
| |- 📂 ml:
| | |- 📜 ml_trainer.py : train a classical machine learning learning model on the dataset
| | |- 📜 ml_model_parser.py
| | |- 📜 __init__.py
| |- 📂 dl:
| | |- 📜 dl_model_parser.py : parse the user specified pytorch model
| | |- 📜 dl_model.py : torch model based on user specifications from drag and drop
| | |- 📜 __init__.py
| | |- 📜 dl_eval.py : Evaluation functions for deep learning models in Pytorch (eg: accuracy, loss, etc)
| | |- 📜 dl_trainer.py : train a deep learning model on the dataset
| | |- 📜 detection.py
| |- 📜 app.py : run the backend (entrypoint script)
| |- 📜 poetry.lock
| |- 📜 middleware.py
| |- 📜 __init__.py
| |- 📜 data.csv : data csv file for use in the playground
| |- 📜 pyproject.toml
| |- 📜 middleware.py
| |- 📜 poetry.lock
| |- 📜 app.py : run the backend (entrypoint script)
| |- 📜 epoch_times.csv
| |- 📜 pyproject.toml
```

## Frontend Architecture

```
📦 frontend
| |- 📂 layer_docs:
| | |- 📜 Softmax.md : Doc for Softmax layer
| | |- 📜 Linear.md : Doc for Linear layer
| | |- 📜 ReLU.md : Doc for ReLU later
| | |- 📜 Linear.md : Doc for Linear layer
| | |- 📜 Softmax.md : Doc for Softmax layer
| | |- 📜 softmax_equation.png : PNG file of Softmax equation
| |- 📂 public:
| | |- 📂 images:
| | | |- 📂 logos:
| | | | |- 📂 dlp_branding:
| | | | | |- 📜 dlp-logo.png : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | | |- 📜 dlp-logo.svg : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | |- 📜 flask-logo.png
| | | | |- 📜 dsgt-logo-dark.png
| | | | |- 📜 dsgt-logo-light.png
| | | | |- 📜 python-logo.png
| | | | |- 📜 github.png
| | | | |- 📜 google.png
| | | | |- 📜 aws-logo.png
| | | | |- 📜 react-logo.png
| | | | |- 📜 pandas-logo.png
| | | | |- 📜 pytorch-logo.png
| | | | |- 📜 dsgt-logo-white-back.png
| | | |- 📂 wiki_images:
| | | | |- 📜 tanh_plot.png
| | | | |- 📜 avgpool_maxpool.gif
| | | | |- 📜 dropout_diagram.png
| | | | |- 📜 tanh_equation.png
| | | | |- 📜 conv2d2.gif
| | | | |- 📜 batchnorm_diagram.png
| | | | |- 📜 conv2d.gif
| | | | |- 📜 maxpool2d.gif
| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation
| | | | |- 📜 conv2d2.gif
| | | | |- 📜 sigmoid_equation.png
| | | | |- 📜 avgpool_maxpool.gif
| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation
| | | | |- 📜 conv2d.gif
| | | | |- 📜 batchnorm_diagram.png
| | | | |- 📜 tanh_plot.png
| | | |- 📂 learn_mod_images:
| | | | |- 📜 sigmoidactivation.png
| | | | |- 📜 sigmoidfunction.png
| | | | |- 📜 lossExampleTable.png
| | | | |- 📜 lossExample.png
| | | | |- 📜 robotImage.jpg
| | | | |- 📜 LeakyReLUactivation.png
| | | | |- 📜 neuralnet.png
| | | | |- 📜 lossExampleTable.png
| | | | |- 📜 binarystepactivation.png
| | | | |- 📜 ReLUactivation.png
| | | | |- 📜 sigmoidfunction.png
| | | | |- 📜 robotImage.jpg
| | | | |- 📜 tanhactivation.png
| | | | |- 📜 neuronWithEquation.png
| | | | |- 📜 ReLUactivation.png
| | | | |- 📜 neuron.png
| | | | |- 📜 binarystepactivation.png
| | | | |- 📜 lossExampleEquation.png
| | | | |- 📜 sigmoidactivation.png
| | | |- 📂 logos:
| | | | |- 📂 dlp_branding:
| | | | | |- 📜 dlp-logo.png : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | | |- 📜 dlp-logo.svg : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | |- 📜 dsgt-logo-light.png
| | | | |- 📜 pandas-logo.png
| | | | |- 📜 github.png
| | | | |- 📜 flask-logo.png
| | | | |- 📜 react-logo.png
| | | | |- 📜 aws-logo.png
| | | | |- 📜 pytorch-logo.png
| | | | |- 📜 dsgt-logo-white-back.png
| | | | |- 📜 dsgt-logo-dark.png
| | | | |- 📜 python-logo.png
| | | | |- 📜 google.png
| | | | |- 📜 neuronWithEquation.png
| | | | |- 📜 neuralnet.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
| | |- 📜 robots.txt
| |- 📂 src:
| | |- 📂 backend_outputs:
| | | |- 📜 model.pt : Last model.pt output
| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output
| | | |- 📜 model.pkl
| | |- 📂 common:
| | | |- 📂 redux:
| | | | |- 📜 userLogin.ts
| | | | |- 📜 train.ts
| | | | |- 📜 backendApi.ts
| | | | |- 📜 store.ts
| | | | |- 📜 hooks.ts
| | | |- 📂 styles:
| | | | |- 📜 Home.module.css
| | | | |- 📜 globals.css
| | | |- 📂 components:
| | | | |- 📜 Spacer.tsx
| | | | |- 📜 Footer.tsx
| | | | |- 📜 TitleText.tsx
| | | | |- 📜 DlpTooltip.tsx
| | | | |- 📜 HtmlTooltip.tsx
| | | | |- 📜 EmailInput.tsx
| | | | |- 📜 NavBarMain.tsx
| | | | |- 📜 ClientOnlyPortal.tsx
| | | |- 📂 utils:
| | | | |- 📜 firebase.ts
| | | | |- 📜 dndHelpers.ts
| | | | |- 📜 dateFormat.ts
| | |- 📂 features:
| | | |- 📂 Train:
| | | | |- 📂 constants:
| | | | | |- 📜 trainConstants.ts
| | | | |- 📂 types:
| | | | | |- 📜 trainTypes.ts
| | | |- 📂 LearnMod:
| | | | |- 📜 LearningModulesContent.tsx
| | | | |- 📜 FRQuestion.tsx
| | | | |- 📜 MCQuestion.tsx
| | | | |- 📜 Exercise.tsx
| | | | |- 📜 ModulesSideBar.tsx
| | | | |- 📜 ImageComponent.tsx
| | | | |- 📜 ClassCard.tsx
| | | |- 📂 Dashboard:
| | | | |- 📂 components:
| | | | | |- 📜 TrainBarChart.tsx
| | | | | |- 📜 TrainDoughnutChart.tsx
| | | | | |- 📜 TrainDataGrid.tsx
| | | | |- 📂 redux:
| | | | | |- 📜 trainspaceSlice.ts
| | | | | |- 📜 trainspaceApi.ts
| | | | | |- 📜 dashboardApi.ts
| | | |- 📂 OpenAi:
| | | | |- 📜 openAiUtils.ts
| | | |- 📂 Feedback:
| | | | |- 📂 redux:
| | | | | |- 📜 feedbackApi.ts
| | | |- 📂 Train:
| | | | |- 📂 components:
| | | | | |- 📜 CreateTrainspace.tsx
| | | | | |- 📜 TrainspaceLayout.tsx
| | | | | |- 📜 DatasetStepLayout.tsx
| | | | |- 📂 features:
| | | | | |- 📂 Image:
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 imageConstants.ts
| | | | | | |- 📂 types:
| | | | | | | |- 📜 imageTypes.ts
| | | | | | |- 📂 redux:
| | | | | | | |- 📜 imageApi.ts
| | | | | | | |- 📜 imageActions.ts
| | | | | | |- 📂 components:
| | | | | | | |- 📜 ImageFlow.tsx
| | | | | | | |- 📜 ImageDatasetStep.tsx
| | | | | | | |- 📜 ImageTrainspace.tsx
| | | | | | | |- 📜 ImageReviewStep.tsx
| | | | | | | |- 📜 ImageParametersStep.tsx
| | | | | | | |- 📜 ImageTrainspace.tsx
| | | | | | |- 📂 types:
| | | | | | | |- 📜 imageTypes.ts
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 imageConstants.ts
| | | | | | |- 📂 redux:
| | | | | | | |- 📜 imageApi.ts
| | | | | | | |- 📜 imageActions.ts
| | | | | | |- 📜 index.ts
| | | | | |- 📂 Tabular:
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 tabularConstants.ts
| | | | | | |- 📂 components:
| | | | | | | |- 📜 TabularTrainspace.tsx
| | | | | | | |- 📜 TabularDatasetStep.tsx
| | | | | | | |- 📜 TabularParametersStep.tsx
| | | | | | | |- 📜 TabularReviewStep.tsx
| | | | | | | |- 📜 TabularFlow.tsx
| | | | | | |- 📂 types:
| | | | | | | |- 📜 tabularTypes.ts
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 tabularConstants.ts
| | | | | | |- 📂 redux:
| | | | | | | |- 📜 tabularActions.ts
| | | | | | | |- 📜 tabularApi.ts
| | | | | | |- 📂 components:
| | | | | | | |- 📜 TabularParametersStep.tsx
| | | | | | | |- 📜 TabularDatasetStep.tsx
| | | | | | | |- 📜 TabularTrainspace.tsx
| | | | | | | |- 📜 TabularFlow.tsx
| | | | | | | |- 📜 TabularReviewStep.tsx
| | | | | | | |- 📜 tabularActions.ts
| | | | | | |- 📜 index.ts
| | | | |- 📂 components:
| | | | | |- 📜 CreateTrainspace.tsx
| | | | | |- 📜 DatasetStepLayout.tsx
| | | | | |- 📜 TrainspaceLayout.tsx
| | | |- 📂 Feedback:
| | | | |- 📂 redux:
| | | | | |- 📜 feedbackApi.ts
| | | |- 📂 Dashboard:
| | | | |- 📂 types:
| | | | | |- 📜 trainTypes.ts
| | | | |- 📂 constants:
| | | | | |- 📜 trainConstants.ts
| | | | |- 📂 redux:
| | | | | |- 📜 dashboardApi.ts
| | | | |- 📂 components:
| | | | | |- 📜 TrainDataGrid.tsx
| | | | | |- 📜 TrainBarChart.tsx
| | | | | |- 📜 TrainDoughnutChart.tsx
| | | |- 📂 LearnMod:
| | | | |- 📜 MCQuestion.tsx
| | | | |- 📜 ImageComponent.tsx
| | | | |- 📜 ModulesSideBar.tsx
| | | | |- 📜 Exercise.tsx
| | | | |- 📜 FRQuestion.tsx
| | | | |- 📜 LearningModulesContent.tsx
| | | | |- 📜 ClassCard.tsx
| | | |- 📂 OpenAi:
| | | | |- 📜 openAiUtils.ts
| | | | | |- 📜 trainspaceApi.ts
| | | | | |- 📜 trainspaceSlice.ts
| | |- 📂 pages:
| | | |- 📂 train:
| | | | |- 📜 index.tsx
| | | | |- 📜 [train_space_id].tsx
| | | |- 📜 login.tsx
| | | |- 📜 feedback.tsx
| | | |- 📜 learn.tsx
| | | |- 📜 dashboard.tsx
| | | |- 📜 about.tsx
| | | |- 📜 _document.tsx
| | | |- 📜 _app.tsx
| | | |- 📜 settings.tsx
| | | | |- 📜 index.tsx
| | | |- 📜 forgot.tsx
| | | |- 📜 LearnContent.tsx
| | | |- 📜 _document.tsx
| | | |- 📜 settings.tsx
| | | |- 📜 feedback.tsx
| | | |- 📜 wiki.tsx
| | | |- 📜 _app.tsx
| | | |- 📜 about.tsx
| | | |- 📜 login.tsx
| | | |- 📜 dashboard.tsx
| | | |- 📜 learn.tsx
| | |- 📂 backend_outputs:
| | | |- 📜 model.pt : Last model.pt output
| | | |- 📜 model.pkl
| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output
| | |- 📂 common:
| | | |- 📂 components:
| | | | |- 📜 NavBarMain.tsx
| | | | |- 📜 ClientOnlyPortal.tsx
| | | | |- 📜 HtmlTooltip.tsx
| | | | |- 📜 Spacer.tsx
| | | | |- 📜 EmailInput.tsx
| | | | |- 📜 Footer.tsx
| | | | |- 📜 DlpTooltip.tsx
| | | | |- 📜 TitleText.tsx
| | | |- 📂 styles:
| | | | |- 📜 globals.css
| | | | |- 📜 Home.module.css
| | | |- 📂 utils:
| | | | |- 📜 dndHelpers.ts
| | | | |- 📜 dateFormat.ts
| | | | |- 📜 firebase.ts
| | | |- 📂 redux:
| | | | |- 📜 train.ts
| | | | |- 📜 userLogin.ts
| | | | |- 📜 store.ts
| | | | |- 📜 hooks.ts
| | | | |- 📜 backendApi.ts
| | |- 📜 next-env.d.ts
| | |- 📜 iris.csv : Sample CSV data
| | |- 📜 GlobalStyle.ts
| | |- 📜 constants.ts
| | |- 📜 next-env.d.ts
| | |- 📜 GlobalStyle.ts
| |- 📜 next-env.d.ts
| |- 📜 package.json
| |- 📜 next.config.js
| |- 📜 jest.config.js
| |- 📜 .eslintignore
| |- 📜 .eslintrc.json
| |- 📜 package.json
| |- 📜 tsconfig.json
| |- 📜 pnpm-lock.yaml
| |- 📜 next-env.d.ts
| |- 📜 .eslintignore
| |- 📜 jest.config.js
```

Loading

0 comments on commit 0c61b5d

Please sign in to comment.