Search code examples
c#neural-networkencog

How to represent NULL to Neural Network


I have large sets of data but somewhere in columns there is missing data either on purpose if it doesn't exist so it's null or it is missing so that field is null.Should I represent this value as number that I don't use in my data ranges like -1 or something else?


Solution

  • You can use default(T); You can also use Nullable's..

    http://msdn.microsoft.com/en-us/library/b3h38hb0.aspx

    Check out my reporting class for Missing Data

    https://net7ntcip.codeplex.com/SourceControl/changeset/view/89621#1751861

    https://net7ntcip.codeplex.com/SourceControl/changeset/view/89621#1751850