Answers.Body: <p>Generally, order matters. A (trained) Neural Network (NN) is just a mathematical function trained on taking some given input and producing the corresponding output. So, if you train a certain node on producing large output if (and only if) an animal is present in a picture (for example), but later you give it the numeric evidence for a car being present in the image, it will still produce large output, indicating an animal being present in the image. This is simply because a node doesn't know what it is receiving or supposed to detect. It just follows its standard mathematical procedure.</p>
  <p>So, if you train your network on one kind of input data, you must provide the same kind of input data during testing (or at least you cannot simply exchange inputs or outputs of certain nodes without manually correcting for that in the remainder of the network).</p>
  <p>In the most simple case, consider whether you could simply swap the inputs to that simple function: <span class="math-container">$f(x,y) = x^2 + y$</span>. If you swap the inputs, the output will be different. The exactly same applies to NNs.</p>
  <p>Addition:
  I think <a href="https://stackoverflow.com/a/44628011/11478452">this post</a> explains and especially illustrates the intuition nicely.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-07-15T21:25:20.657Z
Answers.LastActivityDate: 2020-07-15T21:33:20.273Z
Answers.LastEditDate: 2020-07-15T21:33:20.273Z
Answers.UserDisplayName: Daniel B.
Body: <p>Do the test dataset feature order and inference (real world) feature order have to be the same as the training dataset? For example, if features are in the order (a,c,b,e,d) for the training dataset, does that particular order have to match for the inference and test dataset?</p>
  
Tags: <deep-learning><convolutional-neural-networks>
Title: Do the order of the features ie channel matter for a 1d convolutional network?
UserDisplayName: user289602
ThreadText: # Do the order of the features ie channel matter for a 1d convolutional network?
  
  (Asked by: username_0 on 2020-07-15)
  
  Do the test dataset feature order and inference (real world) feature order have to be the same as the training dataset? For example, if features are in the order (a,c,b,e,d) for the training dataset, does that particular order have to match for the inference and test dataset?
  
  **Tags:** deep-learning, convolutional-neural-networks
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2020-07-15. Score: 2 | Accepted answer
  
  Generally, order matters. A (trained) Neural Network (NN) is just a mathematical function trained on taking some given input and producing the corresponding output. So, if you train a certain node on producing large output if (and only if) an animal is present in a picture (for example), but later you give it the numeric evidence for a car being present in the image, it will still produce large output, indicating an animal being present in the image. This is simply because a node doesn't know what it is receiving or supposed to detect. It just follows its standard mathematical procedure.
  
  So, if you train your network on one kind of input data, you must provide the same kind of input data during testing (or at least you cannot simply exchange inputs or outputs of certain nodes without manually correcting for that in the remainder of the network).
  
  In the most simple case, consider whether you could simply swap the inputs to that simple function: $f(x,y) = x^2 + y$. If you swap the inputs, the output will be different. The exactly same applies to NNs.
  
  Addition:
  I think [this post](https://stackoverflow.com/a/44628011/11478452) explains and especially illustrates the intuition nicely.
  
  
  ---
  
  