Questions tagged [convergence]

303 questions
2
votes
1 answer

Convergence of the Q-learning on the inverted pendulum

Hello I'm working on a total control of the cartpole problem (inverted pendulum). My aim is for the system to reach stability meaning all the states(x, xdot,theta and theta) should converge to zero. I am using q-learning with a reward function as…
2
votes
2 answers

Neural network - loss not converging

This network contains an input layer and an output layer, with no nonlinearities. The output is just a linear combination of the input.I am using a regression loss to train the network. I generated some random 1D test data according to a simple…
srkdb
  • 775
  • 3
  • 15
  • 28
2
votes
0 answers

Generative Adversial Networks, divergence of the discriminator and pictures artifacts (PIX2PIX)

I'm currently trying to implement the Pix2Pix algorithm which is a GAN Structure, but i have some issues with the convergence of the discriminator and the output pictures of the generator... 1) Convergence Problem : It seems that the discriminator…
2
votes
1 answer

Can Python optimize my function inputs to get a target value?

I have been trying to locate a method similar to Excel's Solver where I can target a specific value for a function to converge on. I do not want a minimum or maximum optimization. For example, if my function is: f(x) = A^2 + cos(B) - sqrt(C) I…
Tanner
  • 23
  • 4
2
votes
1 answer

Constructing a Sparse Tropical Limit Function in Chapel

Given matrices A and B the tropical product is defined to be the usual matrix product with multiplication traded out for addition and addition traded out for minimum. That is, it returns a new matrix C such that, C_ij = minimum(A_ij, B_ij, A_i1 +…
Tshimanga
  • 845
  • 6
  • 16
2
votes
1 answer

embedded vectors doesn't converge in gensim

I am training a word2vec model using gensim on 800k browser useragent. My dictionary size is between 300 and 1000 depending on the word frequency limit. I am looking at few embedding vectors and similarities to see if the algorithm has been…
dani d
  • 23
  • 3
2
votes
1 answer

General Minimum RESidual (GMRES) with ILU preconditioner

I'm trying to implement the ILU preconditioner in this GMRES code I wrote (in order to solve the linear sistem Ax = b. I'm trying with an easy tridiagonal SPD matrix of dimension 25x25. As you can see I'm calculating the preconditioner with spilu…
2
votes
3 answers

How to detect cycles in a vector in R

Let's say I have the following vector: vec = c(29, 30, 15, 29, 17, 25, 24, 28, 25, 24, 28, 25, 24, 28, 25, 24, 28) You'll notice there are three repeating elements (25, 24, and 28). How can I get R to recognize when there are repeating elements (or…
CephBirk
  • 6,422
  • 5
  • 56
  • 74
2
votes
1 answer

Newtonraphson code in R leads to different results

I need to approximate the parameters of a sample from Birnbaum-Saunders distr. here is my code: x =c(6.7508, 1.9345, 4.9612, 22.0232, 0.2665, 66.7933, 5.5582, 60.2324, 72.5214, 1.4188, 4.6318, 61.8093, 11.3845, 1.1587, 22.8475, 8.3223, 2.6085,…
2
votes
0 answers

XGBoost Convergence Plot with Sklearn Wrapper

I am using the sklearn wrapper for xgboost. I would like to generate a plot of AUC for both my train and test samples for each iteration as shown in the plot below. In sklearn you can use warm_start to iterate one at a time so you can easily stop…
Chris
  • 12,900
  • 12
  • 43
  • 65
2
votes
1 answer

Repeated search replace until convergence

I'm searching for the name and an efficient solution for the following problem: Assume I have a string s='abcdef' and a set of find/replace rules Pn P1: ab -> xy P2: xyc -> 123 P3: ef -> ab Sequentially applying these rules to s I could arrive at…
ws6079
  • 343
  • 2
  • 11
2
votes
2 answers

Algorithm not converging in given number of repetitions for neural network in R

I am new to neural networks in R. I am trying to emulate the following behavior implemented using neuroph in java. Type - Multi Layer Perceptron, Inputs - 7, Outputs - 1, Hidden - 5 neurons, Transfer Function - sigmoid, Learning Rule - Back…
Sabra Ossen
  • 161
  • 3
  • 15
2
votes
2 answers

Genetic Algorithm - convergence

I have a few questions about my genetic algorithm and GAs overall. I have created a GA that when given points to a curve it tries to figure out what function produced this curve. An example is the following Points {{-2, 4},{-1, 1},{0, 0},{1, 1},{2,…
Kevin
  • 3,077
  • 6
  • 31
  • 77
2
votes
0 answers

Convergence rate in R

I have simulated some sample paths S_n=sum(X_i), where the X_i are simulated having different distributions. I then look at the proportion of the times where S_n is positive. Where n is the length of the sample path, and I have simulated a large…
Ano
  • 33
  • 3
2
votes
1 answer

Calculating Gelman and Rubins convergence statistic for only a subset of iterations (coda package)

I am trying to calculate Gelman and Rubin's convergence diagnostic for a JAGS analysis I am currently running in R using the R package rjags. For example, I would like to assess the convergence diagnostic for my parameter beta. To do this, I am…
Inga
  • 303
  • 1
  • 4
  • 12