NaN in Neural network training and simulation; tonndata
Show older comments
Hello,
I have two questions. Thank you very much for any inputs and ideas!!! 1) How to deal with NaN in Neural network training and simulation? The datasets I used as following. The input dataset is a 6*204 matrix with several NaNs. The output dataset is a 6*204 matrix with many NaNs. My simulation dataset is a 6*864000 matrix with many NaNs. I used nntool GUI to train network and do simulation. But the simulation results have numbers even for the simulation samples with all NaNs. I want to ask if there is a way I can set that NaN is not replaced by anything. Just keep it as NaN when do training and simulation.
2) When I try cell array generated by tonndata, the neural network treat the cell array as one sample, so there is no way to separate all samples into training data, test data, validation data. Anyone can share me why using cell array in neural network?
I googled but could not find a good answer or document about these two issues. Thank you very much for any inputs and help!
3 Comments
Greg Heath
on 18 Jun 2015
Not sure how scalar calculations involving NaN could result in numbers. An example would help.
However, matrix calculations can result which only have NaNs in certain components.
2) Not sure what is meant. Need demonstrative examples.
Greg
Rong Yu
on 19 Jun 2015
Rong Yu
on 19 Jun 2015
Accepted Answer
More Answers (1)
Categories
Find more on Deep Learning Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!