You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am struggling with a recurring error occurring occurring in the abundance model I am trying to run on my university's HPC for a hurdle approach. The model runs fine for the presence-absence matrix, as well as for a lower number of iterations for the abundances (thin 10, 100), but once it gets to a greater number of iterations the error occurs (both times, after running for about 3 days).
From my understanding, this error is not so much an issue of Hmsc, but rather of glm (?) but it has me seriously stuck, and I would greatly appreciate any guidance on how to resolve the problem:
This is the error I received:
Error in checkForRemoteErrors(val) :
one node produced an error: NA/NaN/Inf in foreign function call (arg 3)
Calls: sampleMcmc ... clusterApplyLB -> dynamicClusterApply -> checkForRemoteErrors
Notes on the underlying data:
As I said, I am trying to run the abundance model part for a hurdle approach.
Overall, data were collected over one year (52 weeks) and 109 sampling sites, although the sampling effort varies across sites, with most sites being sampled ~ April-October. I decided to include only those species that occurred in at least 5 of the sampling events across the year, and I also excluded any species of which less than 20 specimens were recorded over the entire year (based on insights from the discussion in #45 ).
I made sure all columns in the Y matrix contain integer values, with individual species ranging between 1 and max(sp).
I will say that in the first and last weeks, some sites had only one single species recorded for a given sampling event - could that be the cause of the problem?
I had not set initPar = "fixed effects", which seems to be the right choice after reading through similar reported issues here as I saw that this could cause a problem. However, I just realized I did not fit the model with useSocket = FALSE as advised in the documentation, though I do not think that this is where the problem comes in?
I checked for similar issues here on github (#45#123#174 ), but as far as I can tell, none of them addresses quite the problem I am facing.
Again, any feedback and insight is much appreciated!
Amy 🦟
The text was updated successfully, but these errors were encountered:
I have collided with the same Problem! After running the for some time the error occurs. It seems to be related to HMM where it tries to initiate propabilites of extreme values.
Hi,
I am struggling with a recurring error occurring occurring in the abundance model I am trying to run on my university's HPC for a hurdle approach. The model runs fine for the presence-absence matrix, as well as for a lower number of iterations for the abundances (thin 10, 100), but once it gets to a greater number of iterations the error occurs (both times, after running for about 3 days).
From my understanding, this error is not so much an issue of Hmsc, but rather of glm (?) but it has me seriously stuck, and I would greatly appreciate any guidance on how to resolve the problem:
This is the error I received:
Notes on the underlying data:
As I said, I am trying to run the abundance model part for a hurdle approach.
Overall, data were collected over one year (52 weeks) and 109 sampling sites, although the sampling effort varies across sites, with most sites being sampled ~ April-October. I decided to include only those species that occurred in at least 5 of the sampling events across the year, and I also excluded any species of which less than 20 specimens were recorded over the entire year (based on insights from the discussion in #45 ).
I made sure all columns in the Y matrix contain integer values, with individual species ranging between 1 and max(sp).
I will say that in the first and last weeks, some sites had only one single species recorded for a given sampling event - could that be the cause of the problem?
Here is how I defined the model:
This dropbox folder contains the unfitted model.
Here is how I tried to fit the model:
I had not set
initPar = "fixed effects"
, which seems to be the right choice after reading through similar reported issues here as I saw that this could cause a problem. However, I just realized I did not fit the model withuseSocket = FALSE
as advised in the documentation, though I do not think that this is where the problem comes in?I checked for similar issues here on github (#45 #123 #174 ), but as far as I can tell, none of them addresses quite the problem I am facing.
Again, any feedback and insight is much appreciated!
Amy 🦟
The text was updated successfully, but these errors were encountered: