-
Notifications
You must be signed in to change notification settings - Fork 614
Description
This is a weird one, but I wanted to make sure you knew.
I'm using ulam models in a project, usually saving them in a Rdata file alongside the out-of-sample predictions from the models. However, there are some cases when there are no predictions to be saved because the model is being fit on live data, so the model was being saved alongside a blank dataframe (x <- dataframe() ). When I tried to bring in those models in another script, they weren't working and I was getting errors that looked like this when running the link function:
The exact name of the file was slightly different each time, but the errors were exactly the same otherwise. However, when I altered my script just slightly, replacing dataframe() with a 0-row dataframe featuring the usual columns of the data, suddenly everything was fine.
This whole thing freaked me out for a while and made me wonder if I was encountering major problems with my models before I figured it out, and I wanted to make sure anyone running into something similar knew. I also don't know if there is something to be fixed in terms of the rethinking package to prevent errors like this.
UPDATE: Now things aren't working again, so I'm trying to figure out next steps. Any help would be appreciated.