Achuthan, Srisairam
2012-Jan-24 21:47 UTC
[R] Problem training a neural network with "neuralnet" library
Hi, I am having difficulty in training a neural network using the package "neuralnet". My neural network has 2 input neurons (covariates), 1 hidden layer with 2 hidden neurons and 2 output neurons (responses). I am training my neural network with a dataset that has been transformed so that each column is of type "numeric". The difficulty I am facing is that the responses of my trained neural network are always around the mean of the corresponding training set response values. For example, if both the output neurons in the training set assume values between 0 and 1 (say from a normal distribution with mean 0.5 and standard deviation 0.15), then the responses of my trained neural network for both the neurons are around 0.5 (+ or - 0.02). I don't specify the initial values of the weights (startweight). I am letting "neuralnet" to pick arbitrary values for the startweight. Is it possible to design a neural network in R using "neuralnet" so that the response is not constrained to the mean of the response neurons? Do I have to use a different neural network library such as "nnet"? Please advise. Thanks, Sai. Srisairam Achuthan, Ph.D., Senior Scientific Programmer, Translational Research Informatics, City of Hope, Los Angeles. --------------------------------------------------------------------- *SECURITY/CONFIDENTIALITY WARNING: This message and any attachments are intended solely for the individual or entity to which they are addressed. This communication may contain information that is privileged, confidential, or exempt from disclosure under applicable law (e.g., personal health information, research data, financial information). Because this e-mail has been sent without encryption, individuals other than the intended recipient may be able to view the information, forward it to others or tamper with the information without the knowledge or consent of the sender. If you are not the intended recipient, or the employee or person responsible for delivering the message to the intended recipient, any dissemination, distribution or copying of the communication is strictly prohibited. If you received the communication in error, please notify the sender immediately by replying to this message and deleting the message and any accompanying files from your system. If, due to the security risks, you do not wish to receive further communications via e-mail, please reply to this message and inform the sender that you do not wish to receive further e-mail from the sender. --------------------------------------------------------------------- [[alternative HTML version deleted]]