Answers.Body: <p>Depending on the activation functions in the first layer, this is not a real problem, many functions such as <span class="math-container">$\tanh(x)$</span> and <span class="math-container">$\sigma(x)$</span> (sigmoid) have asymptotic upper and lower bounds, so the huge input values swamp all other inputs in the corresponding neurons, but the output is well-behaved.</p>
  
  <p>However, a conversion before the input layer may be appropriate for some kind of data. For example, you might want to take the <span class="math-container">$\log(x)$</span> of the input values such that the initial weight networks work with the relation of the values instead of their absolute magnitude. This may be useful for audio data such as speech or music and many other measurements of signals that may be attenuated before the measurement.</p>
  
  <p>If your numbers don't actually represent magnitudes of some kind but arbitrary sequences of digits, you should use a network that can deal with sequences, of course.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-11-07T16:42:39.653Z
Answers.LastActivityDate: 2019-11-07T16:42:39.653Z
Answers.UserDisplayName: Hans-Martin Mosner
Body: <p>I want to train an ANN. The problem is that the input features are completely unbounded (There are no boundaries as maximum and minimum for them).</p>
  
  <p>For example, the following input vectors <span class="math-container">$(42, 54354354)$</span> and <span class="math-container">$(0.4, 47239847329479324732984732947)$</span> are both valid.</p>
  
  <p>I know RNNs that can add up input neurons, which are pretty similar to my case, but the number of the digits was limited in all of the implementations.</p>
  
  <p>Is there a way to implement an ANN that can add up the input numbers of any magnitude?</p>
  
Tags: <neural-networks><machine-learning><deep-learning>
Title: Can neural networks deal with unbounded numbers as inputs?
UserDisplayName: StackS
ThreadText: # Can neural networks deal with unbounded numbers as inputs?
  
  (Asked by: username_0 on 2019-11-07)
  
  I want to train an ANN. The problem is that the input features are completely unbounded (There are no boundaries as maximum and minimum for them).
  
  For example, the following input vectors $(42, 54354354)$ and $(0.4, 47239847329479324732984732947)$ are both valid.
  
  I know RNNs that can add up input neurons, which are pretty similar to my case, but the number of the digits was limited in all of the implementations.
  
  Is there a way to implement an ANN that can add up the input numbers of any magnitude?
  
  **Tags:** neural-networks, machine-learning, deep-learning
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-11-07. Score: 3
  
  Depending on the activation functions in the first layer, this is not a real problem, many functions such as $\tanh(x)$ and $\sigma(x)$ (sigmoid) have asymptotic upper and lower bounds, so the huge input values swamp all other inputs in the corresponding neurons, but the output is well-behaved.
  
  However, a conversion before the input layer may be appropriate for some kind of data. For example, you might want to take the $\log(x)$ of the input values such that the initial weight networks work with the relation of the values instead of their absolute magnitude. This may be useful for audio data such as speech or music and many other measurements of signals that may be attenuated before the measurement.
  
  If your numbers don't actually represent magnitudes of some kind but arbitrary sequences of digits, you should use a network that can deal with sequences, of course.
  
  
  ---
  
  