Numerical Machine Learning
()
About this ebook
Numerical Machine Learning is a simple textbook on machine learning that bridges the gap between mathematics theory and practice. The book uses numerical examples with small datasets and simple Python codes to provide a complete walkthrough of the underlying mathematical steps of seven commonly used machine learning algorithms and techniques, including linear regression, regularization, logistic regression, decision trees, gradient boosting, Support Vector Machine, and K-means Clustering.
Through a step-by-step exploration of concrete numerical examples, the students (primarily undergraduate and graduate students studying machine learning) can develop a well-rounded understanding of these algorithms, gain an in-depth knowledge of how the mathematics relates to the implementation and performance of the algorithms, and be better equipped to apply them to practical problems.
Key features
- Provides a concise introduction to numerical concepts in machine learning in simple terms
- Explains the 7 basic mathematical techniques used in machine learning problems, with over 60 illustrations and tables
- Focuses on numerical examples while using small datasets for easy learning
- Includes simple Python codes
- Includes bibliographic references for advanced reading
The text is essential for college and university-level students who are required to understand the fundamentals of machine learning in their courses.
Related to Numerical Machine Learning
Related ebooks
Beginner's Guide to Machine Learning Concepts Rating: 0 out of 5 stars0 ratingsThe Fundamentals of Machine Learning: Building Intelligent Systems from Data Rating: 0 out of 5 stars0 ratingsMachine Learning for Beginners - 2nd Edition: Build and deploy Machine Learning systems using Python (English Edition) Rating: 0 out of 5 stars0 ratingsMachine Learning with Python: Foundations and Applications: ML, #1 Rating: 0 out of 5 stars0 ratingsThe Fundamentals of Machine Learning: A Comprehensive Introduction Rating: 0 out of 5 stars0 ratingsMachine Learning with Tensorflow: A Deeper Look at Machine Learning with TensorFlow Rating: 0 out of 5 stars0 ratingsPython Machine Learning Illustrated Guide For Beginners & Intermediates: The Future Is Here! Rating: 5 out of 5 stars5/5Digital Transformation: Building Intelligent Enterprises Rating: 0 out of 5 stars0 ratingsFundamentals of Machine Learning: An Introduction to Neural Networks Rating: 0 out of 5 stars0 ratingsComprehensive Machine Learning Techniques: A Guide for the Experienced Analyst Rating: 0 out of 5 stars0 ratingsPython Automation Mastery: From Novice To Pro Rating: 0 out of 5 stars0 ratingsArtificial Intelligence Algorithms Rating: 0 out of 5 stars0 ratingsComputer Programming Bible: 12 In 1 Rating: 0 out of 5 stars0 ratings50 Breakthrough AI Concepts in 500 Words Each: In 500 words, #17 Rating: 0 out of 5 stars0 ratingsAI and ML for Coders: AI Fundamentals Rating: 0 out of 5 stars0 ratingsFundamentals of Machine Learning: a Simplified Approach Rating: 0 out of 5 stars0 ratingsIntroduction to Machine Learning and Neural Classification Rating: 0 out of 5 stars0 ratingsChatGPT: The revolution of communication Rating: 0 out of 5 stars0 ratingsNeural Networks for Beginners: Introduction to Machine Learning and Deep Learning Rating: 0 out of 5 stars0 ratingsMachine Learning with Spark and Python: Essential Techniques for Predictive Analytics Rating: 0 out of 5 stars0 ratingsLead With AI: Igniting Company Growth with Artificial Intelligence Rating: 0 out of 5 stars0 ratingsInside Generative AI: A Deep Dive Into Generative AI For Beginners, Professionals, and New Career Seekers Rating: 0 out of 5 stars0 ratingsBig Data, Big Design: Why Designers Should Care about Artificial Intelligence Rating: 0 out of 5 stars0 ratingsApplied Deep Learning: Design and implement your own Neural Networks to solve real-world problems (English Edition) Rating: 0 out of 5 stars0 ratings
Computers For You
Mastering ChatGPT: 21 Prompts Templates for Effortless Writing Rating: 4 out of 5 stars4/5Algorithms to Live By: The Computer Science of Human Decisions Rating: 4 out of 5 stars4/5ITIL Foundation Essentials ITIL 4 Edition - The ultimate revision guide Rating: 5 out of 5 stars5/5SDL Trados Studio – A Practical Guide Rating: 5 out of 5 stars5/5Build a WordPress Website From Scratch 2024: WordPress 2024 Rating: 0 out of 5 stars0 ratingsStorytelling with Data: Let's Practice! Rating: 4 out of 5 stars4/5ITIL® 4 Essentials: Your essential guide for the ITIL 4 Foundation exam and beyond Rating: 5 out of 5 stars5/5Get Into UX: A foolproof guide to getting your first user experience job Rating: 4 out of 5 stars4/5Mastering Ubuntu Server Rating: 5 out of 5 stars5/5Mastering Microsoft Excel 2016: How to Master Microsoft Excel 2016 in 30 days Rating: 5 out of 5 stars5/5Learn SAP MM in 24 Hours Rating: 0 out of 5 stars0 ratingsPython Projects for Everyone Rating: 0 out of 5 stars0 ratingsSQL Queries: 200+ Queries to Challenge you. Rating: 5 out of 5 stars5/5Still Room for Humans: Career Planning in an AI World Rating: 0 out of 5 stars0 ratingsArtificial Intelligence: The Complete Beginner’s Guide to the Future of A.I. Rating: 4 out of 5 stars4/5Microsoft Azure For Dummies Rating: 0 out of 5 stars0 ratingsFrom Data to Decisions: A Practical Guide to Implementing Modern Decision Intelligence Rating: 0 out of 5 stars0 ratingsiCloud for Beginners: A Ridiculously Simple Guide to Online Storage Rating: 0 out of 5 stars0 ratingsLearning Articulate Storyline Rating: 0 out of 5 stars0 ratingsC# 10.0 All-in-One For Dummies Rating: 0 out of 5 stars0 ratingsComputer Science I Essentials Rating: 5 out of 5 stars5/5Responsive Web Design with HTML5 and CSS3 - Second Edition Rating: 4 out of 5 stars4/5Introduction to Computer Fundamentals Rating: 4 out of 5 stars4/5
Reviews for Numerical Machine Learning
0 ratings0 reviews
Book preview
Numerical Machine Learning - Zhiyuan Wang
PREFACE
In recent years, machine learning has become increasingly popular and pervasive, with applications ranging from self-driving cars and facial recognition to personalized website recommendations and stock market forecasting. The increased availability of data and advancements in computer power have made it possible to apply machine learning algorithms to a vast array of problems with impressive outcomes. Machine learning is currently utilized in a variety of areas, including banking, healthcare, marketing, and manufacturing, and it is anticipated that it will continue to play a significant role in the development of new technologies in the future. Consequently, machine learning has emerged as an essential subject of study for people interested in data science, artificial intelligence, and related fields. As machine learning continues to evolve and expand its reach, researchers and practitioners are constantly developing new techniques and algorithms to address specific challenges or improve upon existing methods. In this ever-changing landscape, it is crucial for those working in the field to stay up-to-date with the latest advancements and trends. This includes not only mastering the fundamental concepts and algorithms, but also understanding how to adapt and apply them in novel ways to solve real-world problems. By embracing the interdisciplinary nature of machine learning, and collaborating with experts from diverse fields, we can accelerate the development of innovative solutions that have the potential to transform industries, enhance the quality of life, and create a more sustainable future for all.
From our experiences of teaching machine learning using various textbooks, we have noticed that there tends to be a strong emphasis on abstract mathematics when discussing the theories of machine learning algorithms. On the other hand, in the application of machine learning, it usually straightaway goes to import offthe- shelf libraries such as scikit-learn, TensorFlow, Keras, and PyTorch. The disconnect between abstract mathematical theories and practical application creates a gap in understanding. This book bridges the gap using numerical examples with small datasets and simple Python codes to provide a complete walkthrough of the underlying mathematical steps of machine learning algorithms. By working through concrete examples step by step, readers/students can develop a well-rounded understanding of these algorithms, gain a more indepth knowledge of how mathematics relates to the implementation and performance of the algorithms, and be better equipped to apply them to practical problems.
Beginning with an introduction to machine learning in Chapter 1, the remaining chapters of the book cover seven commonly used machine learning algorithms and techniques, including both supervised and unsupervised learning, as well as both linear and nonlinear models. The book requires some prerequisite knowledge of basic probability and statistics, linear algebra, calculus, and Python programming. The book is intended for university students studying machine learning and is used as our primary teaching material for the Introduction to Machine Learning
module at DigiPen Institute of Technology Singapore.
In conclusion, we would like to acknowledge Mr. Tan Chek Ming (Managing Director), Prof. Prasanna Ghali (Provost), Ms. Caroline Tan (Deputy Director), Ms. Angela Tay (Senior Manager), and all at DigiPen Institute of Technology Singapore, for their consistent support and help. We also wish to thank a number of our students (including Nelson Ng, Rhonda McGladdery, Farhan Fadzil, Lim Li Jia, Musa Ahmad Dahlan, Jeremy Yap, and Seah Jue Chen) for their diligence in spotting several typographical errors during their course of studies. Also, it has been a delight working with Bentham's professional editorial and production staff. We particularly thank Noor Ul Ain Khan, Humaira Hashmi, and Obaid Sadiq for their consistent, timely, and kind support throughout the development of this book. Furthermore, we extend our heartfelt appreciation to our families (including Xiaoyue Cui, Muyuan Wang, Safura Tazeen, Khasim BI, Shirleen Chow, Adler Teoh, Hriday Bhoyar, Swati Kolkhede, and all) for their unwavering encouragement throughout the creation of this book. We dedicate this book to them. The first author, Zhiyuan Wang, would also like to convey special thanks and appreciation to his Ph.D. advisors, Prof. Zhe Wu, Prof. Xiaonan Wang, and Prof. Gade Pandu Rangaiah from the National University of Singapore. Although they were not involved in this book, Zhiyuan deeply cherishes their sincere and invaluable guidance in his Ph.D. journey, which has helped him become a better researcher and educator.
Despite our best efforts to ensure the accuracy of the content within this book, errors may inadvertently persist. If you come across any inaccuracies or omissions, we kindly request that you bring them to our attention by emailing us at wangzhiyuan@u.nus.edu. We are committed to rectifying such oversights in future editions and will post corrections on our shared https://drive.google.com/drive/folders/1FqJvo4ZPazNbEH_GlHFoodqvegnQmHc n?usp=share_link
Zhiyuan Wang
DigiPen Institute of Technology Singapore Singapore
National University of Singapore Singapore
Sayed Ameenuddin Irfan
DigiPen Institute of Technology Singapore Singapore
National University of Singapore Singapore
Zhiyuan Wang
DigiPen Institute of Technology Singapore Singapore
Christopher Teoh
DigiPen Institute of Technology Singapore Singapore
&
Priyanka Hriday Bhoyar
DigiPen Institute of Technology Singapore Singapore
Introduction to Machine Learning
Zhiyuan Wang, Sayed Ameenuddin Irfan, Christopher Teoh, Priyanka Hriday Bhoyar
Abstract
Machine learning, a rapidly growing subfield of computer science, has had a significant impact on many industries and our lives. This chapter discusses the brief history of machine learning, its widespread adoption as a de facto feature, and fundamental concepts such as supervised and unsupervised learning, regression and classification, and underfitting and overfitting. We also emphasize the importance of understanding machine learning through numerical examples, which can bridge the gap between abstract mathematical theories and practical applications of machine learning algorithms. By developing a strong foundation in machine learning, readers/students can harness its potential to address challenges and opportunities across diverse sectors.
Keywords: Numerical Examples, Machine Learning History, Supervised Learning, Unsupervised Learning, Regression, Classification, Underfitting, Overfitting.
1.1. BRIEF HISTORY OF MACHINE LEARNING
Machine learning is a subfield of computer science that involves the creation of algorithms that can learn from data and make predictions. It has a long and rich history [1], with roots dating back to the 1950s when the field of artificial intelligence was founded. This field focused on developing machines that could perform tasks that typically require human-like intelligence, such as recognizing patterns, learning from experience, and making decisions. The first machine learning algorithms were developed in the 1960s, including decision tree and nearest neighbor algorithms. The 1980s saw the rapid growth of the field with the development of algorithms such as artificial neural network and support vector machine. These algorithms were applied to a wide range of applications in the 1990s, including natural language processing, computer vision, and speech recognition. In the 2000s, the field continued to evolve with the development of new algorithms, such as gradient boosting, and the increasing use of machine learning in industries such as finance and healthcare. The 2010s saw the widespread adoption of machine learning, aided by the advent of big data and the development of powerful graphics processing units (GPU) that could be used to train large and complex machine learning models. The subfield of deep learning [2], which typically involves the use of multi-layered neural networks, became particularly popular and found application across a diverse range of domains. Today, machine learning is a rapidly growing field that is currently being applied in various sectors. It has the potential to revolutionize many industries and has already had a significant societal impact.
1.2. MACHINE LEARNING AS A DE FACTO FEATURE
Machine learning is expected to be a transformative technology over the next two decades due to several factors. One key factor is the increasing availability of data, which is expected to continue to grow significantly in the coming years. As machine learning algorithms are particularly well suited for analyzing and making sense of large amounts of data, this will create new opportunities for their application in a variety of fields, including but not limited to healthcare, finance, transportation, education, manufacturing, and beyond. In these and other areas, machine learning has been adopted to automate some tasks that are currently performed by humans, freeing up humans to focus on more creative and high-level work [3].
In addition to automation, machine learning algorithms can be used to improve decision-making by analyzing large amounts of data and making predictions or recommendations based on that data. This can be particularly useful in fields such as finance, where machine learning can be used to identify