Answers.Body: <p>Yes, this is possible. The only restriction on the range of output values is due to the <a href="https://en.m.wikipedia.org/wiki/Activation_function" rel="nofollow noreferrer">activation function</a>, if there is one. If, for example, the activation function is a <a href="https://en.m.wikipedia.org/wiki/Sigmoid_function" rel="nofollow noreferrer">sigmoid</a>, the output would be restricted to values between 0 and 1. You can of course choose an activation function best suited to your problem, even if that means having none. </p>
  
  <p>In your case, if you really want the output of your network to be between 50 and 250, you could use a scaled and shifted sigmoid as your activation: 200*sig(w*x+b)+50. </p>
  
  <p>But, as was pointed out in comments below, having a single output neuron may not be the best architecture for this problem.</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-09T09:21:03.443Z
Answers.Text: You may be right. I'm not sure how easy or stable learning would be. Perhaps a better solution outside the constraints of the question would be to frame this as a classification problem with a softmax final activation and cross entropy error. The classes could be something like {<50cm, 50-60cm, ..., 240-250cm, >250cm}
Answers.UserDisplayName: Philip Raeisghasem
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-09T08:18:43.917Z
Answers.LastActivityDate: 2019-03-11T11:16:28.103Z
Answers.LastEditDate: 2019-03-11T11:16:28.103Z
Answers.UserDisplayName: Philip Raeisghasem
Body: <p>Can ANN with only one neuron in output layer be trained in a way that output neuron’s value (0-1) can be representation of some real value, like for example height.</p>
  
  <p>In other words,can neural network given the inputs predict the height of a person by outputing values from 0 to 1. Zero being the 50 cm and 1 being 250cm.Or it will always gravitate to 0 or 1?Can it predict a height of 150cm (0.5) ?</p>
  
Tags: <neural-networks>
Title: ANN’s single output representing value
UserDisplayName: user23022
ThreadText: # ANN’s single output representing value
  
  (Asked by: username_0 on 2019-03-09)
  
  Can ANN with only one neuron in output layer be trained in a way that output neuron’s value (0-1) can be representation of some real value, like for example height.
  
  In other words,can neural network given the inputs predict the height of a person by outputing values from 0 to 1. Zero being the 50 cm and 1 being 250cm.Or it will always gravitate to 0 or 1?Can it predict a height of 150cm (0.5) ?
  
  **Tags:** neural-networks
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2019-03-09. Score: 1
  
  Yes, this is possible. The only restriction on the range of output values is due to the [activation function](https://en.m.wikipedia.org/wiki/Activation_function), if there is one. If, for example, the activation function is a [sigmoid](https://en.m.wikipedia.org/wiki/Sigmoid_function), the output would be restricted to values between 0 and 1. You can of course choose an activation function best suited to your problem, even if that means having none.
  
  In your case, if you really want the output of your network to be between 50 and 250, you could use a scaled and shifted sigmoid as your activation: 200\*sig(w\*x+b)+50.
  
  But, as was pointed out in comments below, having a single output neuron may not be the best architecture for this problem.
  
  > **Comments:**
  > **username_1**: You may be right. I'm not sure how easy or stable learning would be. Perhaps a better solution outside the constraints of the question would be to frame this as a classification problem with a softmax final activation and cross entropy error. The classes could be something like {<50cm, 50-60cm, ..., 240-250cm, >250cm}  
  
  ---
  
  