Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Java: Data Science Made Easy

You're reading from   Java: Data Science Made Easy Data collection, processing, analysis, and more

Arrow left icon
Product type Course
Published in Jul 2017
Publisher Packt
ISBN-13 9781788475655
Length 734 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Authors (3):
Arrow left icon
Alexey Grigorev Alexey Grigorev
Author Profile Icon Alexey Grigorev
Alexey Grigorev
Richard M. Reese Richard M. Reese
Author Profile Icon Richard M. Reese
Richard M. Reese
Jennifer L. Reese Jennifer L. Reese
Author Profile Icon Jennifer L. Reese
Jennifer L. Reese
Arrow right icon
View More author details
Toc

Table of Contents (29) Chapters Close

Title Page
Credits
Preface
1. Module 1 FREE CHAPTER
2. Getting Started with Data Science 3. Data Acquisition 4. Data Cleaning 5. Data Visualization 6. Statistical Data Analysis Techniques 7. Machine Learning 8. Neural Networks 9. Deep Learning 10. Text Analysis 11. Visual and Audio Analysis 12. Visual and Audio Analysis 13. Mathematical and Parallel Techniques for Data Analysis 14. Bringing It All Together 15. Module 2
16. Data Science Using Java 17. Data Processing Toolbox 18. Exploratory Data Analysis 19. Supervised Learning - Classification and Regression 20. Unsupervised Learning - Clustering and Dimensionality Reduction 21. Working with Text - Natural Language Processing and Information Retrieval 22. Extreme Gradient Boosting 23. Deep Learning with DeepLearning4J 24. Scaling Data Science 25. Deploying Data Science Models 26. Bibliography

The importance and process of cleaning data


Once the data has been acquired, it will need to be cleaned. Frequently, the data will contain errors, duplicate entries, or be inconsistent. It often needs to be converted to a simpler data type such as text. Data cleaning is often referred to as data wrangling, reshaping, or munging. They are effectively synonyms.

When data is cleaned, there are several tasks that often need to be performed, including checking its validity, accuracy, completeness, consistency, and uniformity. For example, when the data is incomplete, it may be necessary to provide substitute values.

Consider CSV data. It can be handled in one of several ways. We can use simple Java techniques such as the String class' split method. In the following sequence, a string array, csvArray, is assumed to hold comma-delimited data. The split method populates a second array, tokenArray.

for(int i=0; i<csvArray.length; i++) {
    tokenArray[i] = csvArray[i].split(",");
}

More complex data...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime