Task 1: Reorganize folders so that plots and results are generated in separate folders instead of the main webapp folder to avoid clutter. Make corresponding changes to the R and Python code so they can read from and write to the new folders.
Task 2: Simplify the plot names generated in the superlearner to make them easier for the Python code to read and display. Optionally generate each plot twice, once with a simple name for the app and once with a more detailed name for analysis.
Task 3: Find and remove any space characters in plot names generated by Result_plot_maker as spaces may cause issues.
Task 1: Reorganize folders so that plots and results are generated in separate folders instead of the main webapp folder to avoid clutter. Make corresponding changes to the R and Python code so they can read from and write to the new folders.
Task 2: Simplify the plot names generated in the superlearner to make them easier for the Python code to read and display. Optionally generate each plot twice, once with a simple name for the app and once with a more detailed name for analysis.
Task 3: Find and remove any space characters in plot names generated by Result_plot_maker as spaces may cause issues.
Task 1: Reorganize folders so that plots and results are generated in separate folders instead of the main webapp folder to avoid clutter. Make corresponding changes to the R and Python code so they can read from and write to the new folders.
Task 2: Simplify the plot names generated in the superlearner to make them easier for the Python code to read and display. Optionally generate each plot twice, once with a simple name for the app and once with a more detailed name for analysis.
Task 3: Find and remove any space characters in plot names generated by Result_plot_maker as spaces may cause issues.
Ok here are the tasks. There are listed roughly in the order of priority.
Saved for later
Omar Elsherif 2 days ago
Task 1: Plots and results should go into folders rather than be generated in the main webapp folder to avoid the clutter. 1a (R part) and 1b (python part) should be done hand in hand. Doing one without the other would break the webapp!1a- Basically instead of this: addr <-paste("Results") #THIS HOLDS THE ADDRESS AT WHICH THE FILES ARE OUTPUT PLOTaddr <-paste("Plot_Output") #THIS HOLDS THE ADDRESS AT WHICH THE PLOTS ARE OUTPUT you should replace it with this:addr <-paste("Results/") #THIS HOLDS THE ADDRESS AT WHICH THE FILES ARE OUTPUT PLOTaddr <-paste("Plot_Output/") #THIS HOLDS THE ADDRESS AT WHICH THE PLOTS ARE OUTPUTif (! dir.exists(PLOTaddr)) { dir.create(PLOTaddr) }Notice that we would have a / at the end of the addresses rather than just appending the work plot_output or results. All plots generated in Result_plot_maker already adds PLOTaddr to the beginning, but we want to make sure and produced file (plot, text, other) goes into a folder.1b- Python should read the plots (and output files) from the corresponding folders rather than from the main app folder. Make sure to test any changes as it's very easy to make mistakes here.
Saved for later
Omar Elsherif 2 days ago
Task2: In superlearner, plotnames used to contain a lot of data, something like this: plotnames<-paste(libnames,length(libs),"algo_",ncol(Predictors),"vrb_",loop,"times",sep = "")This is good for analysis but is a nightmare for python to read and displayes. I changed it to just have plotnames be "_OG_1GAM_1GLM_2algo_17vrb_20times" regardless of the libraries and loop numbers as a bandaid solution. At the very least you need to make that into a much simpler name, and edit the names in python accordingly. If you want a more complicated task you could have each figure generated twice, one with a simple name for the app, and one with a descriptive name for analysis, but this is probably a more complex task. Saved for later
Omar Elsherif 2 days ago
3- Some plots generated by Result_plot_maker have a space character in them ' '. Find and remove that as it will cause issues at some point.