Hi @m_raza
So the error message you are getting this time, seen here, is:
Loading required package: RSQLite
Error in load_model() : object 'model' not found #<---- that's the error
In addition: Warning message:
no DISPLAY variable so Tk is not available
I believe for this to work you have to ensure that the load_model
function actually returns the model
object. So if you make the following change to your load_model
function it should fix this issue I believe.
load_model <- function(){
# Load a saved trained model from the file `trained_model.RData`.
# This is called by the server to evaluate your submission on hidden data.
# Only modify this *if* you modified save_model.
# xgb.load('trained_model') # <--- YOUR ORIGINAL CODE
model = xgb.load('trained_model')
return(model)
}
If it doesn’t work let me know and we’ll dig deeper 