Hello,
My name is Manuel Steele. I am a graduate student at St. Mary’s College for data science (Notre Dame, IN). I applied the model at the github site below to a smaller county in North Dakota. The model was successful for Ward County.
https://github.com/RajDandekar/MIT-Global-COVID-Modelling-Project-1
Next, I want to apply the model to a rural indigenous community in Arizona. Now, both populations from Ward County and the rural AZ data are impeded by an unexpected Flux.train error.
The snippet of code is here.
cb = function()
#println(“starting cb()…”)
x = loss_adjoint()
#println("loss_adjoint(): ", x) # display topmost applicable display
global Loss = append!(Loss, x)
global P1 = append!(P1, p3[TOTAL_PARAMETERS-2])
global P2 = append!(P2, p3[TOTAL_PARAMETERS-1])
global P3 = append!(P3, p3)
end
cb()
Train with objective function, trainable parameters of model,
collection of data, and optimizer)
println("Loss: ", Loss)
Flux.train!(loss_adjoint, ps, datan, opt, cb = cb)
The error message is here directed at the line for Flux.train! above. This error did not appear a few months ago. I ran the code many times.
ERROR: LoadError: ArgumentError: tuple must be non-empty
I need help debugging this. It was unexpected given that I had run the code many times successfully in the winter.
Manuel Steele