The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
"Neural Networks NaN Error"
Hello,
I am try to train my Neural Network on the data set at http://sites.google.com/site/motazsite/teaching/data-mining-discussion/trndataCSV.csv
But I got the error below.
I trained many NN without any problem. What is wrong with this dataset?
Thanks,
Motaz
I am try to train my Neural Network on the data set at http://sites.google.com/site/motazsite/teaching/data-mining-discussion/trndataCSV.csv
But I got the error below.
Process failed: operator cannot be executed (Trying to assign invalud number to matrix: NaN)
I trained many NN without any problem. What is wrong with this dataset?
Thanks,
Motaz
Tagged:
0
Answers
I don't think there is much wrong with the data, as the following works for me.. So it has more to do with the learner not liking the data, in particular not finding a number where it wants one; so changing the learner, as above, looks like the way to go. Hope that helps.
It worked with me now after I changed the format from csv to xls But the Model Has no Weights !!! ???
And the Model Has been evaluated !
Thanks in advance,
Motaz
first of all, a neural net works on numerical inputs. If you have nominal attributes as in your data set, the internal representation will be used, which assigns numerical values to the nominal ones depending on the order in which values appear in the data set. Hence, it is in no way advisable to directly work on such nominal values when learning a neural net. Unfortunately, the old implementation [tt]NeuralNet[/tt] still allows that. Anyway, the operator [tt]NeuralNet[/tt] is deprecated. You should use the operator [tt]NeuralNetImproved[/tt] instead. This one also forces you to change the value types of the nominal attributes beforehand, as it does not work on nominal attributes.
Kind regards,
Tobias
I am using Rapid Miner 4.4
Where can find NeuralNetImproved operator?. I have only NeuralNetSimple and NeuralNet at Learner.Supervised.Functions
Thanks,
Motaz
4.4 has the new NN in the area you mentioned, mine has the other two faded to show they are to be phased out. When I looked at the data I noticed quite a few attributes that were nominal, like country. It is difficult to see a sensible way of making them numerical. So my advice again is to look at learners that handle both numeric and nominal values, and to bin the NN approach because that is for numerics.
Just my two cents
one way of making them numerical would be to use the nominal2binomial operator and then convert these binominal values to 0s and 1s.
Another hint is, that you should check if there are missing values in your dataset. These might confuse the neural net during adapting its nodes weights.
Greetings,
Sebastian
Warm Greetings,
Motaz