Closed Thread
Results 1 to 6 of 6

Thread: Data Types for a Neural Network Emulation

  1. #1
    nikomaster is offline Newbie
    Join Date
    Nov 2007
    Posts
    3
    Rep Power
    0

    Data Types for a Neural Network Emulation

    I all, i am currently on a development for a Neural Network training system based on software, i am developing it in C++, i am using float data types for all neuron inputs and outputs, but i would like to know if is better to use a double precision floating point data type.

    If any one does not know what are Neural Networks, follow the link.

    Regards.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Join Date
    Jul 2006
    Posts
    16,491
    Blog Entries
    75
    Rep Power
    143
    It will depend on what types of values you anticipate being common. If you think you are likely to have inputs/outputs such as .251923847123 and .251923847124, then you may want to increase the precision. In general, however, I doubt it would make a difference which you use.
    Programming is a branch of mathematics.
    My CodeCall Blog | My Personal Blog

  4. #3
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59
    If absolutely necessary, you can link __int64 variables together to get the desired precision. It'll be extra work, though.

  5. #4
    Predictor is offline Newbie
    Join Date
    Jul 2007
    Posts
    20
    Rep Power
    0

    Re: Data Types for a Neural Network Emulation

    Quote Originally Posted by nikomaster View Post
    I all, i am currently on a development for a Neural Network training system based on software, i am developing it in C++, i am using float data types for all neuron inputs and outputs, but i would like to know if is better to use a double precision floating point data type.
    More likely than not, single precision reals are fine. There was a neural network shell vendor who used to advertise the fact that they used higher precision math, but I never saw any evidence that this provided any benefit. On the other hand, probably the most commercially successful neural networks software (BrainMaker, from CSS) used fixed point arithmetic of fairly limited precision, and ran very fast.

  6. #5
    kmhosny's Avatar
    kmhosny is offline Programmer
    Join Date
    Feb 2008
    Location
    Egypt
    Posts
    133
    Rep Power
    0

    Re: Data Types for a Neural Network Emulation

    it wont matter unless your values may get big but in moderate range values it wont matter since the neural network will keep on going till it reaches it's optimal values and the matter of precision will make a minority change.
    "Recursion is just a line of code"
    -Karim Hosny-
    My flickr

  7. #6
    Join Date
    Oct 2007
    Location
    /dev/null
    Posts
    4,513
    Blog Entries
    8
    Rep Power
    59

    Re: Data Types for a Neural Network Emulation

    Hey guys, welcome to CodeCall. In case no one's told you, posting on threads more than a month or two old is generally frowned upon, as it moves new threads down in the list, plus the original poster is probably long gone. This thread's over two years old.
    sudo rm -rf /

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Kohonen Neural Network Question
    By MaltaSauce in forum General Programming
    Replies: 2
    Last Post: 01-25-2011, 03:08 AM
  2. Replies: 5
    Last Post: 08-29-2010, 10:52 AM
  3. Bizar Artificial Neural Network Behavior
    By Lariyn in forum General Programming
    Replies: 5
    Last Post: 07-15-2010, 07:34 PM
  4. Artificial Neural Network
    By Lariyn in forum C and C++
    Replies: 1
    Last Post: 07-11-2010, 11:24 PM
  5. Neural Network Help Please!!
    By ibad in forum General Programming
    Replies: 5
    Last Post: 03-04-2010, 03:37 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts