C# Machine Learning Projects
Nine real-world projects to build robust and high-performing machine learning models with C#
Yoon Hyup Hwang
BIRMINGHAM - MUMBAI
C# Machine Learning Projects
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Pravin Dhandre
Acquisition Editor: Tushar Gupta
Content Development Editor: Aaryaman Singh
Technical Editor: Sayli Nikalje
Copy Editors: Safis Editing
Project Coordinator: Manthan Patel
Proofreader: Safis Editing
Indexer: Tejal Daruwale Soni
Graphics: Tania Dutta
Production Coordinator: Arvindkumar Gupta
First published: June 2018
Production reference: 1130618
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78899-640-2
www.packtpub.com
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
PacktPub.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at service@packtpub.com for more details.
At www.PacktPub.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Yoon Hyup Hwang is a seasoned data scientist with several years of experience in marketing and finance industries with expertise in predictive modeling, machine learning, statistical analysis, and data engineering. He holds M.S.E. in Computer and Information Technology from the University of Pennsylvania, and a B.A. in Economics from the University of Chicago.
In his free time, he enjoys training different martial arts (Krav Maga, BJJ, and Muay Thai), snowboarding, and roasting coffee.
To my wife, Sunyoung, thank you for your endless support and love. Sacrificing our weekends and family time, you played a critical role in publishing this book. To my family, thank you for your consistent support and trust in me. To my publishing team at Packt, I would like to thank everyone, especially Aaryaman, Sayli, and Tushar. Also, I would like to thank everyone reading this book, and I hope you enjoy it. Cheers!
About the reviewer
Dirk Strauss is a software developer and Microsoft .NET MVP from South Africa with over 13 years of programming experience. He has extensive experience in SYSPRO customization, with C# and web development being his main focus. He currently works for Embrace as a full-stack developer.
He authored C# Programming Cookbook in 2016 and C# 7 and .NET Core 2.0 Blueprints in 2017 (published by Packt). He has also written for Syncfusion, contributing to the Succinctly series of eBooks. He blogs whenever he gets a chance. You can follow him on Twitter at @DirkStrauss.
Prakash Tripathi , is a technical lead in an MNC by profession, and an author and speaker by passion. He has extensive experience in the design, development, maintenance, and support of enterprise applications, mainly using Microsoft technologies and platforms.
Active in technical communities, he has been awarded Most Valuable Professional (MVP) by Microsoft for 2016-17 and 2017-18, and by c-sharpcorner (a leading developers portal) three times. He holds a master's in computer applications from MANIT-Bhopal, India.
I would like to thank my parents for bringing me into the world and teaching me life skills, and my wife, Aradhana, for her continuous support and motivation throughout the journey of this book. I cannot forget to thank Microsoft and the c-sharpcorner technical communities. They've provided a platform to demonstrate and excel in this fast-growing and ever-changing field.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Table of Contents
Preface
In the era of data, it is hard to overlook the importance of machine learning (ML) and data science. ML has been used and adopted widely across many industries, and its adoption rate is growing faster than ever. Not only big technology companies, such as Google, Microsoft, and Apple, but also many non-technology companies such as Bloomberg and Goldman Sachs, invest heavily in ML. From searching for what to eat for dinner tonight on search engines to getting approvals for new credit cards, the applications of ML are everywhere in our daily lives. As a fellow data scientist and ML practitioner, I cannot emphasize enough the importance of ML in the current era of data, especially of big data.
If you are looking for resources to learn applied ML, you have come to the right place. For many aspiring data scientists and ML practitioners, the amount of resources for applied ML in C# is lacking in the ML books out there. You can easily find books that have detailed explanations on the theory behind ML. You can also easily find books that touch the practical aspects of ML in different programming languages, such as Python. However, as you might have noticed, there are not many books that cover how to build practical ML models and applications using C#.