Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: code to perform data preprocessing

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default code to perform data preprocessing

    i need to perform data preprocessing wherein i should fill up the missing values by mean value. for (eg)
    patientid age exang
    1 35 1
    2 - 1
    3 40 -
    here age of patient 2 is missing. i need to fill it by suming up the age of all three patients and divide by 3 (ie) by mean value. similarly for exang attribute. can anyone help me with a code ? Thank you.


  2. #2
    Crazy Cat Lady KevinWorkman's Avatar
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    5,483
    My Mood
    Hungover
    Thanks
    144
    Thanked 641 Times in 548 Posts

    Default Re: code to perform data preprocessing

    That's not really how this works. What have you tried? Where are you stuck? How would you do this in your head, without a computer?
    Useful links: How to Ask Questions the Smart Way | Use Code Tags | Java Tutorials
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

Similar Threads

  1. Replies: 4
    Last Post: October 24th, 2011, 08:09 AM
  2. How to perform operations on arguments with type OBJECT?
    By hexwind in forum What's Wrong With My Code?
    Replies: 6
    Last Post: June 3rd, 2011, 12:17 PM
  3. [SOLVED] Servlet cant perform sql after second button click
    By Stefan_Lam in forum What's Wrong With My Code?
    Replies: 10
    Last Post: March 31st, 2011, 05:18 AM
  4. [SOLVED] my code didnt perform its function
    By jamal in forum What's Wrong With My Code?
    Replies: 5
    Last Post: September 21st, 2010, 04:17 PM
  5. Data preprocessing
    By rpsaranya in forum JDBC & Databases
    Replies: 0
    Last Post: February 23rd, 2010, 11:32 PM

Tags for this Thread