Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux script updated to use dlp-cli #1088

Merged
merged 4 commits into from
Feb 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
210 changes: 105 additions & 105 deletions .github/Architecture.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,223 +5,223 @@
```
📦 training
| |- 📂 training:
| | |- 📂 middleware:
| | | |- 📜 health_check_middleware.py
| | | |- 📜 __init__.py
| | |- 📂 core:
| | | |- 📜 dataset.py : read in the dataset through URL or file upload
| | | |- 📜 criterion.py
| | | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now)
| | | |- 📜 __init__.py
| | | |- 📜 dl_model.py : torch model based on user specifications from drag and drop
| | | |- 📜 trainer.py
| | | |- 📜 criterion.py
| | | |- 📜 dataset.py : read in the dataset through URL or file upload
| | | |- 📜 authenticator.py
| | | |- 📜 __init__.py
| | | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now)
| | |- 📂 routes:
| | | |- 📂 datasets:
| | | | |- 📂 default:
| | | | | |- 📜 columns.py
| | | | | |- 📜 schemas.py
| | | | | |- 📜 __init__.py
| | | | |- 📜 __init__.py
| | | |- 📂 tabular:
| | | | |- 📜 tabular.py
| | | | |- 📜 schemas.py
| | | | | |- 📜 columns.py
| | | | |- 📜 __init__.py
| | | |- 📂 image:
| | | | |- 📜 image.py
| | | | |- 📜 schemas.py
| | | | |- 📜 __init__.py
| | | |- 📂 tabular:
| | | | |- 📜 tabular.py
| | | | |- 📜 schemas.py
| | | | |- 📜 __init__.py
| | | |- 📜 schemas.py
| | | |- 📜 __init__.py
| | |- 📜 wsgi.py
| | |- 📜 settings.py
| | |- 📂 middleware:
| | | |- 📜 health_check_middleware.py
| | | |- 📜 __init__.py
| | |- 📜 urls.py
| | |- 📜 __init__.py
| | |- 📜 asgi.py
| |- 📜 manage.py
| |- 📜 docker-compose.yml
| |- 📜 poetry.lock
| | |- 📜 __init__.py
| | |- 📜 wsgi.py
| | |- 📜 settings.py
| |- 📜 README.md
| |- 📜 docker-compose.prod.yml
| |- 📜 environment.yml
| |- 📜 pytest.ini
| |- 📜 Dockerfile
| |- 📜 poetry.lock
| |- 📜 cli.py
| |- 📜 pyproject.toml
| |- 📜 README.md
| |- 📜 environment.yml
| |- 📜 Dockerfile
| |- 📜 Dockerfile.prod
| |- 📜 manage.py
| |- 📜 docker-compose.yml
```

## Frontend Architecture

```
📦 frontend
| |- 📂 src:
| | |- 📂 pages:
| | | |- 📂 train:
| | | | |- 📜 [train_space_id].tsx
| | | | |- 📜 index.tsx
| | | |- 📜 settings.tsx
| | | |- 📜 feedback.tsx
| | | |- 📜 forgot.tsx
| | | |- 📜 learn.tsx
| | | |- 📜 dashboard.tsx
| | | |- 📜 login.tsx
| | | |- 📜 _document.tsx
| | | |- 📜 _app.tsx
| | | |- 📜 about.tsx
| | | |- 📜 wiki.tsx
| | | |- 📜 LearnContent.tsx
| | |- 📂 features:
| | | |- 📂 OpenAi:
| | | | |- 📜 openAiUtils.ts
| | | |- 📂 Feedback:
| | | | |- 📂 redux:
| | | | | |- 📜 feedbackApi.ts
| | | |- 📂 Dashboard:
| | | | |- 📂 components:
| | | | | |- 📜 TrainDataGrid.tsx
| | | | | |- 📜 TrainBarChart.tsx
| | | | | |- 📜 TrainDoughnutChart.tsx
| | | | | |- 📜 TrainDataGrid.tsx
| | | | |- 📂 redux:
| | | | | |- 📜 dashboardApi.ts
| | | |- 📂 Feedback:
| | | | |- 📂 redux:
| | | | | |- 📜 feedbackApi.ts
| | | |- 📂 LearnMod:
| | | | |- 📜 ClassCard.tsx
| | | | |- 📜 Exercise.tsx
| | | | |- 📜 FRQuestion.tsx
| | | | |- 📜 ImageComponent.tsx
| | | | |- 📜 MCQuestion.tsx
| | | | |- 📜 ModulesSideBar.tsx
| | | | |- 📜 LearningModulesContent.tsx
| | | |- 📂 Train:
| | | | |- 📂 constants:
| | | | | |- 📜 trainConstants.ts
| | | | |- 📂 components:
| | | | | |- 📜 DatasetStepLayout.tsx
| | | | | |- 📜 CreateTrainspace.tsx
| | | | | |- 📜 TrainspaceLayout.tsx
| | | | |- 📂 redux:
| | | | | |- 📜 trainspaceApi.ts
| | | | | |- 📜 trainspaceSlice.ts
| | | | |- 📂 features:
| | | | | |- 📂 Image:
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 imageConstants.ts
| | | | | | |- 📂 components:
| | | | | | | |- 📜 ImageTrainspace.tsx
| | | | | | | |- 📜 ImageFlow.tsx
| | | | | | | |- 📜 ImageDatasetStep.tsx
| | | | | | | |- 📜 ImageReviewStep.tsx
| | | | | | | |- 📜 ImageParametersStep.tsx
| | | | | | | |- 📜 ImageTrainspace.tsx
| | | | | | | |- 📜 ImageDatasetStep.tsx
| | | | | | |- 📂 redux:
| | | | | | | |- 📜 imageActions.ts
| | | | | | | |- 📜 imageApi.ts
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 imageConstants.ts
| | | | | | | |- 📜 imageActions.ts
| | | | | | |- 📂 types:
| | | | | | | |- 📜 imageTypes.ts
| | | | | | |- 📜 index.ts
| | | | | |- 📂 Tabular:
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 tabularConstants.ts
| | | | | | |- 📂 components:
| | | | | | | |- 📜 TabularParametersStep.tsx
| | | | | | | |- 📜 TabularReviewStep.tsx
| | | | | | | |- 📜 TabularTrainspace.tsx
| | | | | | | |- 📜 TabularParametersStep.tsx
| | | | | | | |- 📜 TabularDatasetStep.tsx
| | | | | | | |- 📜 TabularFlow.tsx
| | | | | | | |- 📜 TabularReviewStep.tsx
| | | | | | |- 📂 redux:
| | | | | | | |- 📜 tabularActions.ts
| | | | | | | |- 📜 tabularApi.ts
| | | | | | |- 📂 constants:
| | | | | | | |- 📜 tabularConstants.ts
| | | | | | |- 📂 types:
| | | | | | | |- 📜 tabularTypes.ts
| | | | | | |- 📜 index.ts
| | | | |- 📂 components:
| | | | | |- 📜 DatasetStepLayout.tsx
| | | | | |- 📜 TrainspaceLayout.tsx
| | | | | |- 📜 CreateTrainspace.tsx
| | | | |- 📂 redux:
| | | | | |- 📜 trainspaceSlice.ts
| | | | | |- 📜 trainspaceApi.ts
| | | | |- 📂 constants:
| | | | | |- 📜 trainConstants.ts
| | | | |- 📂 types:
| | | | | |- 📜 trainTypes.ts
| | |- 📂 pages:
| | | |- 📂 train:
| | | | |- 📜 [train_space_id].tsx
| | | | |- 📜 index.tsx
| | | |- 📜 about.tsx
| | | |- 📜 learn.tsx
| | | |- 📜 login.tsx
| | | |- 📜 settings.tsx
| | | |- 📜 _app.tsx
| | | |- 📜 dashboard.tsx
| | | |- 📜 LearnContent.tsx
| | | |- 📜 forgot.tsx
| | | |- 📜 wiki.tsx
| | | |- 📜 feedback.tsx
| | | |- 📜 _document.tsx
| | | |- 📂 OpenAi:
| | | | |- 📜 openAiUtils.ts
| | | |- 📂 LearnMod:
| | | | |- 📜 ModulesSideBar.tsx
| | | | |- 📜 Exercise.tsx
| | | | |- 📜 LearningModulesContent.tsx
| | | | |- 📜 FRQuestion.tsx
| | | | |- 📜 ImageComponent.tsx
| | | | |- 📜 ClassCard.tsx
| | | | |- 📜 MCQuestion.tsx
| | |- 📂 backend_outputs:
| | | |- 📜 model.pkl
| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output
| | | |- 📜 model.pt : Last model.pt output
| | | |- 📜 model.pkl
| | |- 📂 common:
| | | |- 📂 components:
| | | | |- 📜 Spacer.tsx
| | | | |- 📜 Footer.tsx
| | | | |- 📜 DlpTooltip.tsx
| | | | |- 📜 EmailInput.tsx
| | | | |- 📜 HtmlTooltip.tsx
| | | | |- 📜 NavBarMain.tsx
| | | | |- 📜 TitleText.tsx
| | | | |- 📜 DlpTooltip.tsx
| | | | |- 📜 ClientOnlyPortal.tsx
| | | | |- 📜 Footer.tsx
| | | | |- 📜 Spacer.tsx
| | | |- 📂 redux:
| | | | |- 📜 userLogin.ts
| | | | |- 📜 store.ts
| | | | |- 📜 hooks.ts
| | | | |- 📜 train.ts
| | | | |- 📜 userLogin.ts
| | | | |- 📜 hooks.ts
| | | | |- 📜 backendApi.ts
| | | |- 📂 utils:
| | | | |- 📜 dateFormat.ts
| | | | |- 📜 firebase.ts
| | | | |- 📜 dndHelpers.ts
| | | | |- 📜 dateFormat.ts
| | | |- 📂 styles:
| | | | |- 📜 globals.css
| | | | |- 📜 Home.module.css
| | |- 📜 constants.ts
| | |- 📜 iris.csv : Sample CSV data
| | |- 📜 GlobalStyle.ts
| | | | |- 📜 globals.css
| | |- 📜 next-env.d.ts
| | |- 📜 GlobalStyle.ts
| | |- 📜 iris.csv : Sample CSV data
| | |- 📜 constants.ts
| |- 📂 layer_docs:
| | |- 📜 ReLU.md : Doc for ReLU later
| | |- 📜 Softmax.md : Doc for Softmax layer
| | |- 📜 Linear.md : Doc for Linear layer
| | |- 📜 softmax_equation.png : PNG file of Softmax equation
| | |- 📜 Linear.md : Doc for Linear layer
| | |- 📜 Softmax.md : Doc for Softmax layer
| | |- 📜 ReLU.md : Doc for ReLU later
| |- 📂 public:
| | |- 📂 images:
| | | |- 📂 wiki_images:
| | | | |- 📜 conv2d2.gif
| | | | |- 📜 batchnorm_diagram.png
| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation
| | | | |- 📜 tanh_plot.png
| | | | |- 📜 conv2d.gif
| | | | |- 📜 conv2d2.gif
| | | | |- 📜 avgpool_maxpool.gif
| | | | |- 📜 tanh_plot.png
| | | | |- 📜 maxpool2d.gif
| | | | |- 📜 sigmoid_equation.png
| | | | |- 📜 batchnorm_diagram.png
| | | | |- 📜 maxpool2d.gif
| | | | |- 📜 tanh_equation.png
| | | | |- 📜 dropout_diagram.png
| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation
| | | |- 📂 learn_mod_images:
| | | | |- 📜 LeakyReLUactivation.png
| | | | |- 📜 neuronWithEquation.png
| | | | |- 📜 lossExampleEquation.png
| | | | |- 📜 sigmoidactivation.png
| | | | |- 📜 lossExample.png
| | | | |- 📜 robotImage.jpg
| | | | |- 📜 sigmoidfunction.png
| | | | |- 📜 lossExampleTable.png
| | | | |- 📜 neuralnet.png
| | | | |- 📜 sigmoidactivation.png
| | | | |- 📜 lossExample.png
| | | | |- 📜 binarystepactivation.png
| | | | |- 📜 tanhactivation.png
| | | | |- 📜 LeakyReLUactivation.png
| | | | |- 📜 sigmoidfunction.png
| | | | |- 📜 lossExampleTable.png
| | | | |- 📜 lossExampleEquation.png
| | | | |- 📜 neuron.png
| | | | |- 📜 ReLUactivation.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
| | | | | |- 📜 dlp-logo.png : DLP Logo, duplicate of files in public, but essential as the frontend can't read public
| | | | |- 📜 dsgt-logo-white-back.png
| | | | |- 📜 pytorch-logo.png
| | | | |- 📜 google.png
| | | | |- 📜 flask-logo.png
| | | | |- 📜 dsgt-logo-dark.png
| | | | |- 📜 react-logo.png
| | | | |- 📜 pandas-logo.png
| | | | |- 📜 dsgt-logo-light.png
| | | | |- 📜 github.png
| | | | |- 📜 aws-logo.png
| | | | |- 📜 flask-logo.png
| | | | |- 📜 pandas-logo.png
| | | | |- 📜 pytorch-logo.png
| | | | |- 📜 react-logo.png
| | | | |- 📜 python-logo.png
| | | | |- 📜 google.png
| | | | |- 📜 dsgt-logo-white-back.png
| | | | |- 📜 aws-logo.png
| | | |- 📜 demo_video.gif : GIF tutorial of a simple classification training session
| | |- 📜 manifest.json : Default React file for choosing icon based on
| | |- 📜 dlp-logo.ico : DLP Logo
| | |- 📜 robots.txt
| | |- 📜 index.html : Base HTML file that will be initially rendered
| | |- 📜 manifest.json : Default React file for choosing icon based on
| |- 📜 package.json
| | |- 📜 robots.txt
| |- 📜 .eslintrc.json
| |- 📜 pnpm-lock.yaml
| |- 📜 .eslintignore
| |- 📜 pnpm-lock.yaml
| |- 📜 package.json
| |- 📜 next.config.js
| |- 📜 jest.config.js
| |- 📜 next-env.d.ts
Expand Down
4 changes: 2 additions & 2 deletions tmux-script.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
session="dl-playground"
tmux new-session -d -s $session
tmux rename-window -t 0 'backend'
tmux send-keys -t 'backend' 'yarn run startt' C-m
tmux send-keys -t 'backend' 'dlp-cli backend start' C-m
tmux new-window -t $session:1 -n 'frontend'
tmux send-keys -t $session:1 'yarn run startf' C-m
tmux send-keys -t $session:1 'dlp-cli frontend start' C-m
tmux attach-session -t $session:0