Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

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.

You might also like