Keras / NN - Handling NaN, missing input
You need to have the same input size during training and inference. If you have a few missing values (a few %), you can always choose to replace the missing values by a 0 or by the average of the column. If you have more missing values (more than 50%) you are probably better off ignoring the column completely. Note that this theoretical, the best way to make it work is to try different strategies on your data.
These days i'm trying to teach myself machine learning and i'm going though some issues with my dataset.
Some of my rows (i work with csv files that i create with some js script, i feel more confident doing that in js) are empty wich is normal as i'm trying to build some guessing model but the issue is that it results in having nan values on my training set.
My NN was not training so i added a piece of code to remove them from my set but now i have some issues where my model can't work with input from different size..
So my question is: how do i handle missing data ? (i basically have 2 rows and can only have the value from 1 and can't merge them as it will not give good results)
i can remove it from my set, wich would reduce the accuracy of my model in the end.
PS: if needed i'll post some code when i come back home.