Questions tagged [convergence]

303 questions
5
votes
2 answers

How to prevent genetic algorithm from converging on local minima?

I am trying to build a 4 x 4 sudoku solver by using the genetic algorithm. I have some issues with values converging to local minima. I am using a ranked approach and removing the bottom two ranked answer possibilities and replacing them with a…
Marcus Koz
  • 255
  • 5
  • 21
5
votes
2 answers

K-means clustering uniqueness of solution

Does the k-means clustering algorithm always yield the same solution? The initialization is supposed to be random, so does the clustering converge to the same result regardless of the initialization?
5
votes
1 answer

How to Turn Statsmodels Warning into Exception

Python and Panda newbie here. I'm trying to use statsmodels to fit a logistic regression to calculate the probability that a voter casts a ballot. I'm working at the precinct level; so sometimes the function doesn't converge, and I get the…
user2518134
  • 63
  • 1
  • 4
4
votes
1 answer

model failed to converge or not in r (lme4)

(the data is not my data, but from stack overflow website) library(lme4) read.table(textConnection("duration season sites effect 4d mon s1 7305.91 4d mon s2 856.297 …
yoo
  • 491
  • 3
  • 10
4
votes
2 answers

Pytorch Siamese Network not converging

Good morning everyone Below is my implementation of a pytorch siamese network. I am using 32 batch size, MSE loss and SGD with 0.9 momentum as optimizer. class SiameseCNN(nn.Module): def __init__(self): super(SiameseCNN, self).__init__()…
Emile Beukes
  • 82
  • 1
  • 6
4
votes
0 answers

Switching entire network from float32 to float64 on condition

Since lower precision can yield significant computational time savings, I would like to be able to switch (mid run) all variables in my partially trained network from float32 to float64 on an error condition. For example: I initialize all variables…
user23590632
  • 91
  • 1
  • 3
4
votes
1 answer

How to find the converging point of data

I have a data set similar to this, x <- sample(55:100,200,replace = T) head(x) # [1] 67 95 97 91 98 81 And I need to find out the converging point of this particular data something similar to gradient descent curve. For that I tried the…
Jibin
  • 323
  • 3
  • 9
4
votes
1 answer

Convergence error of function svd() in R

When coding in R, I find the function svd() may sometimes throw out the error message: Error in La.svd(x, nu, nv) : error code 1 from Lapack routine 'dgesdd'. After searching some information in Google, it turns out that this error means the…
qqwqert007
  • 125
  • 1
  • 1
  • 8
4
votes
0 answers

BFGS Fails to Converge

The model I'm working on is a multinomial logit choice model. It's a very specific dataset so other existing MNLogit libraries don't fit with my data. So basically, it's a very complex function which takes 11 parameters and returns a loglikelihood…
Titanic
  • 557
  • 1
  • 8
  • 21
4
votes
4 answers

Flexible design despite strongly dependent classes

I'm working on a code which needs to be extremely flexible in nature, i.e. especially very easy to extend later also by other people. But I'm facing a problem now about which I do not even know in principal how to properly deal with: I'm having a…
user2296653
  • 1,151
  • 1
  • 8
  • 17
4
votes
1 answer

Error while testing glm with gamma family

I'm currently working on toxicity of shellfish on six french bays in 10 years.. I created a proxy that represents the quantity of toxin that appeared during the year. Now i would like to explain this toxicity by various parameters. For the moment, i…
bhuss
  • 119
  • 1
  • 1
  • 11
3
votes
1 answer

How can I know whether the model is converged or failed to converge in lme4 without warning message in r?

duplicated For example, I can assess whether this multilevel model is a singular fit or not by using isSingular() function. Likewise, is there any way that I can know whether this model is converged or failed to be converged? My advisor said, if the…
yoo
  • 491
  • 3
  • 10
3
votes
1 answer

lme4 "optimizer (nloptwrap) convergence code: 0 (OK)" but no convergence warning

I ran multilevel model using lme4 package, and results was like this: Linear mixed model fit by REML. t-tests use Satterthwaite's method ['lmerModLmerTest'] Formula: y ~ 1 + con + ev1 + ev2 + ev1:con + ev2:con + (1 | pid) Data: dat_ind REML…
yoo
  • 491
  • 3
  • 10
3
votes
1 answer

Hand Landmark Coordinate Neural Network Not Converging

I'm currently trying to train a custom model with tensorflow to detect 17 landmarks/keypoints on each of 2 hands shown in an image (fingertips, first knuckles, bottom knuckles, wrist, and palm), for 34 points (and therefore 68 total values to…
3
votes
3 answers

Finding the time in which a specific value is reached in time-series data when peaks are found

I would like to find the time instant at which a certain value is reached in a time-series data with noise. If there are no peaks in the data, I could do the following in MATLAB. Code from here % create example data d=1:100; t=d/100; ts =…
Natasha
  • 1,111
  • 5
  • 28
  • 66
1
2
3
20 21