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
@KeAWang and @kochalka and I are trying to debug a bunch of NaNs in the Newton update for the continuous states in Laplace EM. I'll follow up with more details, but it looks like the issues arise in cases where we have large spike counts and Poisson or OrthogonalPoisson emissions. I found a few places where it looked like we could get divide by zero errors in the likelihood and Hessian calculations, but haven't tracked it down yet.
The text was updated successfully, but these errors were encountered:
@KeAWang and @kochalka, as a workaround, it looks like it should work if you use lbfgs instead of newton for the continuous state update.
# Fit the model using Laplace-EM with a structured variational posterior
q_lem_elbos, q_lem = slds.fit(train_data, method="laplace_em",
variational_posterior="structured_meanfield",
num_iters=num_iters, alpha=0.0,
continuous_optimizer="lbfgs")
You might still have to add a little bias to the output of the softplus in order to ensure the rates aren't numerically zero. Otherwise you'll get nan's in the likelihoods.
@KeAWang and @kochalka and I are trying to debug a bunch of NaNs in the Newton update for the continuous states in Laplace EM. I'll follow up with more details, but it looks like the issues arise in cases where we have large spike counts and Poisson or OrthogonalPoisson emissions. I found a few places where it looked like we could get divide by zero errors in the likelihood and Hessian calculations, but haven't tracked it down yet.
The text was updated successfully, but these errors were encountered: