LFD Book Forum  

Go Back   LFD Book Forum > General > General Discussion of Machine Learning

Reply
 
Thread Tools Display Modes
  #1  
Old 11-01-2012, 05:50 AM
qkgia qkgia is offline
Junior Member
 
Join Date: Nov 2012
Posts: 1
Default Neural network with discrete and continuous input

Dear Prof.

I have a question related to neural network.

Can we train a neural network with inputs containing both discrete and continuous values? Does it affect on back-propagation algorithm? If it does, can we two separate network one for discrete inputs and one for continuous inputs?

Thank you.
Reply With Quote
  #2  
Old 11-01-2012, 09:42 AM
yaser's Avatar
yaser yaser is offline
Caltech
 
Join Date: Aug 2009
Location: Pasadena, California, USA
Posts: 1,476
Default Re: Neural network with discrete and continuous input

Quote:
Originally Posted by qkgia View Post
Dear Prof.

I have a question related to neural network.

Can we train a neural network with inputs containing both discrete and continuous values? Does it affect on back-propagation algorithm? If it does, can we two separate network one for discrete inputs and one for continuous inputs?

Thank you.
We can use both continuous and discrete variables in the same way, assuming the discrete variable is numerical, i.e., it is a number albeit discrete, and it has a natural order (e.g., rating of a movie or number of hits on a web site, rather than just a code for events with no order).

For other types of discrete variables, there are still ways to code them for the network so that they can be used together with continuous variables. For instance, a variable that assumes 3 values that have no order can be coded as three binary variables, where only one of the variables is 1 and the others are 0 to designate one of the three values of the original variable.

In all of these cases, it often helps to normalize the numerical range of the variables (say to mean 0 and variance 1) to avoid some of them dominating backpropagation by their shee numerical strength.
__________________
Where everyone thinks alike, no one thinks very much
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 11:00 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
The contents of this forum are to be used ONLY by readers of the Learning From Data book by Yaser S. Abu-Mostafa, Malik Magdon-Ismail, and Hsuan-Tien Lin, and participants in the Learning From Data MOOC by Yaser S. Abu-Mostafa. No part of these contents is to be communicated or made accessible to ANY other person or entity.