diff --git a/.github/Architecture.md b/.github/Architecture.md index 3ce72670c..0217372e0 100644 --- a/.github/Architecture.md +++ b/.github/Architecture.md @@ -4,220 +4,220 @@ ``` 📦 backend +| |- 📂 dl: +| | |- 📜 dl_model_parser.py : parse the user specified pytorch model +| | |- 📜 dl_trainer.py : train a deep learning model on the dataset +| | |- 📜 detection.py +| | |- 📜 dl_eval.py : Evaluation functions for deep learning models in Pytorch (eg: accuracy, loss, etc) +| | |- 📜 dl_model.py : torch model based on user specifications from drag and drop +| | |- 📜 __init__.py | |- 📂 aws_helpers: | | |- 📂 dynamo_db_utils: -| | | |- 📜 trainspace_db.py -| | | |- 📜 constants.py : list of helpful constants | | | |- 📜 userprogress_db.py | | | |- 📜 DynamoUnitTests.md | | | |- 📜 dynamo_db_utils.py +| | | |- 📜 constants.py : list of helpful constants +| | | |- 📜 trainspace_db.py | | |- 📜 __init__.py | |- 📂 ml: | | |- 📜 ml_model_parser.py -| | |- 📜 __init__.py | | |- 📜 ml_trainer.py : train a classical machine learning learning model on the dataset +| | |- 📜 __init__.py | |- 📂 common: -| | |- 📜 loss_functions.py : loss function enum +| | |- 📜 ai_drive.py | | |- 📜 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 +| | |- 📜 email_notifier.py : Endpoint to send email notification of training results via API Gateway + AWS SES | | |- 📜 preprocessing.py -| | |- 📜 ai_drive.py +| | |- 📜 utils.py : utility functions that could be helpful | | |- 📜 kernel.py -| | |- 📜 email_notifier.py : Endpoint to send email notification of training results via API Gateway + AWS SES +| | |- 📜 dataset.py : read in the dataset through URL or file upload +| | |- 📜 loss_functions.py : loss function enum | | |- 📜 optimizer.py : what optimizer to use (ie: SGD or Adam for now) -| |- 📂 dl: -| | |- 📜 dl_eval.py : Evaluation functions for deep learning models in Pytorch (eg: accuracy, loss, etc) -| | |- 📜 dl_model.py : torch model based on user specifications from drag and drop +| | |- 📜 constants.py : list of helpful constants | | |- 📜 __init__.py -| | |- 📜 dl_trainer.py : train a deep learning model on the dataset -| | |- 📜 dl_model_parser.py : parse the user specified pytorch model -| | |- 📜 detection.py -| |- 📜 app.py : run the backend (entrypoint script) | |- 📜 poetry.lock | |- 📜 epoch_times.csv -| |- 📜 __init__.py +| |- 📜 pyproject.toml | |- 📜 data.csv : data csv file for use in the playground +| |- 📜 app.py : run the backend (entrypoint script) | |- 📜 middleware.py -| |- 📜 pyproject.toml +| |- 📜 __init__.py ``` ## Frontend Architecture ``` 📦 frontend +| |- 📂 public: +| | |- 📂 images: +| | | |- 📂 wiki_images: +| | | | |- 📜 conv2d2.gif +| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation +| | | | |- 📜 tanh_plot.png +| | | | |- 📜 maxpool2d.gif +| | | | |- 📜 conv2d.gif +| | | | |- 📜 avgpool_maxpool.gif +| | | | |- 📜 batchnorm_diagram.png +| | | | |- 📜 dropout_diagram.png +| | | | |- 📜 tanh_equation.png +| | | | |- 📜 sigmoid_equation.png +| | | |- 📂 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 +| | | | |- 📜 aws-logo.png +| | | | |- 📜 github.png +| | | | |- 📜 pandas-logo.png +| | | | |- 📜 dsgt-logo-white-back.png +| | | | |- 📜 dsgt-logo-light.png +| | | | |- 📜 flask-logo.png +| | | | |- 📜 pytorch-logo.png +| | | | |- 📜 google.png +| | | | |- 📜 react-logo.png +| | | | |- 📜 python-logo.png +| | | | |- 📜 dsgt-logo-dark.png +| | | |- 📂 learn_mod_images: +| | | | |- 📜 robotImage.jpg +| | | | |- 📜 sigmoidfunction.png +| | | | |- 📜 neuralnet.png +| | | | |- 📜 sigmoidactivation.png +| | | | |- 📜 lossExampleTable.png +| | | | |- 📜 binarystepactivation.png +| | | | |- 📜 lossExampleEquation.png +| | | | |- 📜 neuron.png +| | | | |- 📜 tanhactivation.png +| | | | |- 📜 LeakyReLUactivation.png +| | | | |- 📜 ReLUactivation.png +| | | | |- 📜 lossExample.png +| | | | |- 📜 neuronWithEquation.png +| | | |- 📜 demo_video.gif : GIF tutorial of a simple classification training session +| | |- 📜 index.html : Base HTML file that will be initially rendered +| | |- 📜 dlp-logo.ico : DLP Logo +| | |- 📜 manifest.json : Default React file for choosing icon based on +| | |- 📜 robots.txt | |- 📂 layer_docs: +| | |- 📜 softmax_equation.png : PNG file of Softmax equation | | |- 📜 Softmax.md : Doc for Softmax layer | | |- 📜 Linear.md : Doc for Linear layer | | |- 📜 ReLU.md : Doc for ReLU later -| | |- 📜 softmax_equation.png : PNG file of Softmax equation | |- 📂 src: +| | |- 📂 backend_outputs: +| | | |- 📜 model.pt : Last model.pt output +| | | |- 📜 model.pkl +| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output +| | |- 📂 pages: +| | | |- 📂 train: +| | | | |- 📜 index.tsx +| | | | |- 📜 [train_space_id].tsx +| | | |- 📜 dashboard.tsx +| | | |- 📜 LearnContent.tsx +| | | |- 📜 _document.tsx +| | | |- 📜 about.tsx +| | | |- 📜 wiki.tsx +| | | |- 📜 login.tsx +| | | |- 📜 learn.tsx +| | | |- 📜 _app.tsx +| | | |- 📜 forgot.tsx +| | | |- 📜 feedback.tsx +| | | |- 📜 settings.tsx | | |- 📂 features: -| | | |- 📂 LearnMod: -| | | | |- 📜 ModulesSideBar.tsx -| | | | |- 📜 MCQuestion.tsx -| | | | |- 📜 ClassCard.tsx -| | | | |- 📜 ImageComponent.tsx -| | | | |- 📜 FRQuestion.tsx -| | | | |- 📜 LearningModulesContent.tsx -| | | | |- 📜 Exercise.tsx -| | | |- 📂 Dashboard: +| | | |- 📂 OpenAi: +| | | | |- 📜 openAiUtils.ts +| | | |- 📂 Feedback: | | | | |- 📂 redux: -| | | | | |- 📜 dashboardApi.ts +| | | | | |- 📜 feedbackApi.ts +| | | |- 📂 Dashboard: | | | | |- 📂 components: | | | | | |- 📜 TrainBarChart.tsx -| | | | | |- 📜 TrainDoughnutChart.tsx | | | | | |- 📜 TrainDataGrid.tsx +| | | | | |- 📜 TrainDoughnutChart.tsx +| | | | |- 📂 redux: +| | | | | |- 📜 dashboardApi.ts | | | |- 📂 Train: +| | | | |- 📂 constants: +| | | | | |- 📜 trainConstants.ts +| | | | |- 📂 components: +| | | | | |- 📜 DatasetStepLayout.tsx +| | | | | |- 📜 CreateTrainspace.tsx +| | | | | |- 📜 TrainspaceLayout.tsx +| | | | |- 📂 redux: +| | | | | |- 📜 trainspaceSlice.ts +| | | | | |- 📜 trainspaceApi.ts | | | | |- 📂 features: | | | | | |- 📂 Tabular: -| | | | | | |- 📂 redux: -| | | | | | | |- 📜 tabularActions.ts -| | | | | | | |- 📜 tabularApi.ts +| | | | | | |- 📂 constants: +| | | | | | | |- 📜 tabularConstants.ts | | | | | | |- 📂 components: | | | | | | | |- 📜 TabularReviewStep.tsx | | | | | | | |- 📜 TabularDatasetStep.tsx -| | | | | | | |- 📜 TabularFlow.tsx | | | | | | | |- 📜 TabularTrainspace.tsx | | | | | | | |- 📜 TabularParametersStep.tsx +| | | | | | | |- 📜 TabularFlow.tsx +| | | | | | |- 📂 redux: +| | | | | | | |- 📜 tabularApi.ts +| | | | | | | |- 📜 tabularActions.ts | | | | | | |- 📂 types: | | | | | | | |- 📜 tabularTypes.ts -| | | | | | |- 📂 constants: -| | | | | | | |- 📜 tabularConstants.ts | | | | | | |- 📜 index.ts | | | | | |- 📂 Image: -| | | | | | |- 📂 redux: -| | | | | | | |- 📜 imageActions.ts -| | | | | | | |- 📜 imageApi.ts +| | | | | | |- 📂 constants: +| | | | | | | |- 📜 imageConstants.ts | | | | | | |- 📂 components: -| | | | | | | |- 📜 ImageDatasetStep.tsx -| | | | | | | |- 📜 ImageTrainspace.tsx | | | | | | | |- 📜 ImageReviewStep.tsx -| | | | | | | |- 📜 ImageParametersStep.tsx +| | | | | | | |- 📜 ImageTrainspace.tsx +| | | | | | | |- 📜 ImageDatasetStep.tsx | | | | | | | |- 📜 ImageFlow.tsx +| | | | | | | |- 📜 ImageParametersStep.tsx +| | | | | | |- 📂 redux: +| | | | | | | |- 📜 imageApi.ts +| | | | | | | |- 📜 imageActions.ts | | | | | | |- 📂 types: | | | | | | | |- 📜 imageTypes.ts -| | | | | | |- 📂 constants: -| | | | | | | |- 📜 imageConstants.ts | | | | | | |- 📜 index.ts -| | | | |- 📂 redux: -| | | | | |- 📜 trainspaceApi.ts -| | | | | |- 📜 trainspaceSlice.ts -| | | | |- 📂 components: -| | | | | |- 📜 DatasetStepLayout.tsx -| | | | | |- 📜 CreateTrainspace.tsx -| | | | | |- 📜 TrainspaceLayout.tsx | | | | |- 📂 types: | | | | | |- 📜 trainTypes.ts -| | | | |- 📂 constants: -| | | | | |- 📜 trainConstants.ts -| | | |- 📂 Feedback: -| | | | |- 📂 redux: -| | | | | |- 📜 feedbackApi.ts -| | | |- 📂 OpenAi: -| | | | |- 📜 openAiUtils.ts -| | |- 📂 pages: -| | | |- 📂 train: -| | | | |- 📜 [train_space_id].tsx -| | | | |- 📜 index.tsx -| | | |- 📜 LearnContent.tsx -| | | |- 📜 feedback.tsx -| | | |- 📜 dashboard.tsx -| | | |- 📜 learn.tsx -| | | |- 📜 wiki.tsx -| | | |- 📜 forgot.tsx -| | | |- 📜 about.tsx -| | | |- 📜 _app.tsx -| | | |- 📜 login.tsx -| | | |- 📜 _document.tsx -| | | |- 📜 settings.tsx +| | | |- 📂 LearnMod: +| | | | |- 📜 ClassCard.tsx +| | | | |- 📜 MCQuestion.tsx +| | | | |- 📜 Exercise.tsx +| | | | |- 📜 ModulesSideBar.tsx +| | | | |- 📜 FRQuestion.tsx +| | | | |- 📜 LearningModulesContent.tsx +| | | | |- 📜 ImageComponent.tsx | | |- 📂 common: | | | |- 📂 styles: -| | | | |- 📜 Home.module.css | | | | |- 📜 globals.css -| | | |- 📂 redux: -| | | | |- 📜 hooks.ts -| | | | |- 📜 train.ts -| | | | |- 📜 store.ts -| | | | |- 📜 backendApi.ts -| | | | |- 📜 userLogin.ts +| | | | |- 📜 Home.module.css | | | |- 📂 components: +| | | | |- 📜 ClientOnlyPortal.tsx +| | | | |- 📜 Spacer.tsx | | | | |- 📜 DlpTooltip.tsx +| | | | |- 📜 TitleText.tsx | | | | |- 📜 Footer.tsx -| | | | |- 📜 HtmlTooltip.tsx | | | | |- 📜 NavBarMain.tsx -| | | | |- 📜 Spacer.tsx +| | | | |- 📜 HtmlTooltip.tsx | | | | |- 📜 EmailInput.tsx -| | | | |- 📜 TitleText.tsx -| | | | |- 📜 ClientOnlyPortal.tsx +| | | |- 📂 redux: +| | | | |- 📜 userLogin.ts +| | | | |- 📜 store.ts +| | | | |- 📜 train.ts +| | | | |- 📜 backendApi.ts +| | | | |- 📜 hooks.ts | | | |- 📂 utils: -| | | | |- 📜 dndHelpers.ts | | | | |- 📜 firebase.ts | | | | |- 📜 dateFormat.ts -| | |- 📂 backend_outputs: -| | | |- 📜 model.pt : Last model.pt output -| | | |- 📜 my_deep_learning_model.onnx : Last ONNX file output -| | | |- 📜 model.pkl +| | | | |- 📜 dndHelpers.ts | | |- 📜 next-env.d.ts +| | |- 📜 GlobalStyle.ts | | |- 📜 iris.csv : Sample CSV data | | |- 📜 constants.ts -| | |- 📜 GlobalStyle.ts -| |- 📂 public: -| | |- 📂 images: -| | | |- 📂 wiki_images: -| | | | |- 📜 sigmoid_equation.png -| | | | |- 📜 batchnorm_diagram.png -| | | | |- 📜 maxpool2d.gif -| | | | |- 📜 conv2d.gif -| | | | |- 📜 conv2d2.gif -| | | | |- 📜 dropout_diagram.png -| | | | |- 📜 tanh_equation.png -| | | | |- 📜 avgpool_maxpool.gif -| | | | |- 📜 tanh_plot.png -| | | | |- 📜 softmax_equation.png : PNG file of Softmax equation -| | | |- 📂 learn_mod_images: -| | | | |- 📜 neuralnet.png -| | | | |- 📜 robotImage.jpg -| | | | |- 📜 ReLUactivation.png -| | | | |- 📜 neuronWithEquation.png -| | | | |- 📜 tanhactivation.png -| | | | |- 📜 sigmoidactivation.png -| | | | |- 📜 binarystepactivation.png -| | | | |- 📜 lossExampleTable.png -| | | | |- 📜 sigmoidfunction.png -| | | | |- 📜 neuron.png -| | | | |- 📜 LeakyReLUactivation.png -| | | | |- 📜 lossExample.png -| | | | |- 📜 lossExampleEquation.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-dark.png -| | | | |- 📜 google.png -| | | | |- 📜 react-logo.png -| | | | |- 📜 flask-logo.png -| | | | |- 📜 pytorch-logo.png -| | | | |- 📜 aws-logo.png -| | | | |- 📜 dsgt-logo-light.png -| | | | |- 📜 github.png -| | | | |- 📜 pandas-logo.png -| | | | |- 📜 python-logo.png -| | | | |- 📜 dsgt-logo-white-back.png -| | | |- 📜 demo_video.gif : GIF tutorial of a simple classification training session -| | |- 📜 index.html : Base HTML file that will be initially rendered -| | |- 📜 robots.txt -| | |- 📜 manifest.json : Default React file for choosing icon based on -| | |- 📜 dlp-logo.ico : DLP Logo -| |- 📜 package.json -| |- 📜 .eslintrc.json +| |- 📜 jest.config.js +| |- 📜 next.config.js | |- 📜 next-env.d.ts +| |- 📜 .eslintrc.json +| |- 📜 .eslintignore | |- 📜 tsconfig.json +| |- 📜 package.json | |- 📜 yarn.lock -| |- 📜 .eslintignore -| |- 📜 next.config.js -| |- 📜 jest.config.js ```