Questions tagged [convergence]

303 questions
2
votes
1 answer

Convergence Criteria in glmmTMB - what are my options?

When using glmmTMB() of the R-package {glmmTMB} (see CRAN with links to manual & vignettes), I am aware that I have certain options when dealing with the convergence of models. More specifically, there is the control = argument to which I can pass…
Paul Schmidt
  • 1,072
  • 10
  • 23
2
votes
1 answer

Iterative solution for achieving convergence

I am trying to calculate n in equation: f = n^2 in iterative way so that f was close to 3 with precision 3 decimal places from bottom. For illustration I am writing here a code which does succesfully what I want. A problem with this code is that…
Aaa A
  • 79
  • 5
2
votes
1 answer

Sum of correlation matrix convergence

Consider a correlation matrix P but with diagonal elements set to zero. I want to determine the minimum order n for which the partial sum diag(3) + P + P %^% 2 + P %^% 3 + ... + P %^% n converges in L1 norm within some tolerance. I looked into this…
statwoman
  • 380
  • 1
  • 9
2
votes
1 answer

How to correct false convergence mgcv::gamm after updating R

I am getting a false convergence on a GAMM using mgcv::gamm when I try to fit models with corARMA functions for correlated error structures. The response data are amounts of precipitation, and are Gamma-distributed. The predictors are year and…
JKO
  • 295
  • 1
  • 12
2
votes
2 answers

Multi Layer Perceptron XOR, plotting error (loss) graph, converges too fast?

I'm currently learning neural networks and have attempted to train an MLP to learn XOR using Back-propagation in Python. The network has two hidden layers (using Sigmoid Activation) and one output layer (also Sigmoid). The network (around 20,000…
2
votes
1 answer

Model convergence warning with negative binomial glmer

I've read several posts about having convergence issues with glmer and I have tried a couple recommended work arounds (changing optimizer, changing model iterations, etc.) but nothing seems to resolve my convergence issue. I was wondering if someone…
Danielle
  • 23
  • 3
2
votes
2 answers

Convergence issue with multi linear regression problems

I'm try to solve a multi-linear-regression problem with a very simple linear network. The network only consists of a single dense layer as its output layer and the activation function is set to linear. I synthesize the output data Y by multiplying…
2
votes
2 answers

If NMDS (vegan) convergence is impossible does that make the output useless?

Maybe this question is not in the right place and if so, I'll delete it. Probably a very basic question: If NMDS (vegan package) convergence does not reach a solution (regardless of dimensions and iterations) does that make the output…
2
votes
0 answers

How to search through buckets containing numbers in a specific range (i.e. 2000 - 5000) to converge on a single number

I apologize if the title doesn't make much sense, but I didn't know how to word it without it being far too long. A little context: I'm working on a mobile app that is supposed to aid coffee farmers in tracking pest infestation on their farms. A…
2
votes
1 answer

zero-inflated overdispersed count data glmmTMB error in R

I am working with count data (available here) that are zero-inflated and overdispersed and has random effects. The package best suited to work with this sort of data is the glmmTMB (details here and troubleshooting here). Before working with the…
Blundering Ecologist
  • 1,199
  • 2
  • 14
  • 38
2
votes
2 answers

How to check solver convergence with GEKKO and APOPT

I am dealing with small MILP problems for which I have fixed the maximum number of iterations. I would like to determine the instances for which we are sure that we have reached the optimum. When calling m.solve(disp=True), if the solver stops…
Coding Cow
  • 81
  • 7
2
votes
1 answer

Convergence issues glmer: How to interpret allFit outcomes and comparing models with different optimizers

I am running a binomial logistic regression using lme4, which is constructed as follows: m2_DL <- glmer(Dest ~ Pb_on * Pb_type + Dest_tree + ZF_Dest + (1|Site), data = DF_DL_3, family = binomial(link = "logit")) All variables are factors save for…
R. Iersel
  • 89
  • 9
2
votes
0 answers

lme4: Handling lmer "convergence code: 0"

I am currently calculating a multi-level analysis with 32 countries (country variable "CNTRY3"). The dependent variable is the willingness to pay for environmental protection "WTP" (scale 1 - 5, centred). I have included four random slopes in the…
Janone
  • 21
  • 2
2
votes
1 answer

What is the desired behavoir of a neural network?

I tried a few neural networks and would like to know, when do I have a good trained model. First, the training error goes down and stays constant at a certain number of epochs, the same with the validation error. Has it now converged? Second, the…
gab
  • 165
  • 2
  • 8
2
votes
1 answer

Numerical instability?

I am working in a program that concerns the optimization of some objective function obj over the scalar beta. The true global minimum beta0 is set at beta0=1. In the mwe below you can see that obj is constructed as the sum of the 100-R (here I use…
econ86
  • 133
  • 4