
Machine Learning for Decision Sciences with Case Studies in Python
- 454 pages
- English
- ePUB (mobile friendly)
- Available on iOS & Android
Machine Learning for Decision Sciences with Case Studies in Python
About this book
This book provides a detailed description of machine learning algorithms in data analytics, data science life cycle, Python for machine learning, linear regression, logistic regression, and so forth. It addresses the concepts of machine learning in a practical sense providing complete code and implementation for real-world examples in electrical, oil and gas, e-commerce, and hi-tech industries. The focus is on Python programming for machine learning and patterns involved in decision science for handling data.
Features:
- Explains the basic concepts of Python and its role in machine learning
- Provides comprehensive coverage of feature engineering including real-time case studies
- Perceives the structural patterns with reference to data science and statistics and analytics
- Includes machine learning-based structured exercises
- Appreciates different algorithmic concepts of machine learning including unsupervised, supervised, and reinforcement learning
This book is aimed at researchers, professionals, and graduate students in data science, machine learning, computer science, and electrical and computer engineering.
Trusted by 375,005 students
Access to over 1 million titles for a fair monthly price.
Study more efficiently using our study tools.
Information
1 Introduction
Learning Objectives
- Understand the need for data science and machine learning (ML) in a real-world scenario.
- Appreciate the fundamentals of ML and deep learning.
- Describe structural patterns and understand their variants.
- Know the key roles of a data scientist for solving practical problems.
- Identify the real-world application areas of ML models.
1.1 Introduction to Data Science
1.1.1 Mathematics
1.1.2 Statistics
1.2 Describing Structural Patterns
1.2.1 Uses of Structural Patterns
- Adapter design patternAdapter patterns create a connection between interfaces of different classes; let’s take the real-life example; we have two applications created with two different programming languages. Now, you want to compile both applications on a single platform. The adapter works here as it changes the interface of one instance so that other instances can easily understand it. The adapter hides all the complex conversions.
- Bridge design patternThe bridge design pattern splits the abstraction from its implementation. Let’s take the example of the main socket, which controls the lights, fan, TV, and AC of the house. This main socket acts as a bridge between the house’s sub-switches that control turning ON/OFF of the utilities.
- Composite design patternComposite design patterns are used where a group of identical instances is considered as one instance. This pattern creates a hierarchal structure of similar objects. For example, the composite pattern creates a class that includes the faction of its objects.Let’s understand the pattern with an example of grouping the teachers into different departments, classes will contain all the details of a teacher like a name, salary, address, and department, and composite teacher class will use teacher class to add teachers in a different department and print the teachers.
- Decorator design patternDecorator design patterns are used whenever new functions are needed to be added to existing objects without changing the entire structure of the class. Decorator design pattern creates a new class that abstracts the original class and provides the newly added functionalities. Let’s discuss an example of a decorator design pattern for a clearer understanding. Suppose we need to develop an online ordering system of a well-known burger restaurant that takes all requirements from a customer like what kind of bun, patty, and cheese they need in the burger and according to the requirement estimate the burger price.Since customer customization may vary from customer to customer, creating classes for each type of customization will be a difficult task. Here we can create a decorator pattern class, which will contain all the information to customize the burger, like adding extra cheese, extra patty etc. The main class will be the burger with the regular base price. By using a decorator class, the burger class can be extended and the price can be added according to the customization.
- Façade design pattern Façade design patterns act like abstraction, which conceals all the inner complex details of the application and provides a simple interface to the client to access the applications. Let us consider an example of a grocery shop, which is equipped with loads of items. When a customer visits the shop for the first time, he is unable to search and find the items he wishes to purchase. So he gives a list to the shopkeeper and the shopkeeper gives the customer all the required items. This is an example of Facade design pattern.
- Flyweight design patternFlyweight design patterns, as the name implies, are patterns that fly away from the weight, i.e., a memory from the application. It reduces the objects from the source code to release the memory and boosts the performance. Flyweight design can be called code optimization. Flyweight searches the objects that are similar and use them. In case no match is found, it creates a new object. Improving system performance is a non-functional and essential requirement of software as it affects its appearance. Suppose we have an application running too slow due to lines and lines of code written and wastage of cache; now, flyweight design patterns work here. It will eliminate all the similar objects that are created and waste memory.
- Private classThis type of pattern is used for security purposes where data are crucial. Create a private class and store the data, which will be in the same state throughout the code. All variables defined in the private class are only accessible within its class. To access the private class attributes, you need to create their getters and setters. The private class is used where information needs to be hidden from the outside world and only displayed to you.
- ProxyProxy is all about providing access. In proxy design patterns, a class is created, which represents the functionality of other classes. Let’s take the example of a credit card that acts as a proxy and contains all your bank account amounts.
1.3 Machine Learning and Statistics
- Supervised machine learning algorithm
- Supervised learning deals with the known and categorizes data. It can classify uncategorized data also. In supervised learning, a sample set contains input data with desired output data. Based on this new test, data can easily be categorized. For example, an application identifies the animal that is either an herbivore, a carnivore, or an omnivore animal. Using supervised learning, it already knew the classification of the animal. Now, whenever a new animal is entered into the system as an input, the system will automatically predict its category.
- Unsupervised machine learning algorithm
- In the unsupervised learning sample set, data are unknown and unlabeled. The data cannot be implemented directly as we are unaware of the outputs. It simply works on finding the similarities between the data and categorizes them as one. For example, categorize the customer based on which product they purchase, and based on a similar product, we can categorize customers.
- Semi-supervised machine learning algorithm
- Semi-supervised learning is the mixture of supervised and unsupervised learning as its dataset contains categorized and uncategorized data. The aim is to predict the new data that are more effective and accurate than the output data given by the user. For example, you wish to buy a product and watch ads related to the product, and suddenly, you want to review the same product. Though the product is from a different company, the categorized data would be the basic ad released by the company.
- Reinforcement machine learning algorithm
- In reinforcement learning, the machine does not learn from classified data; instead it learns from its experience and prediction, an agent takes all the actions (robotic avatar), finds all possible scenarios and fits in the best solution. Games such as hangman is the best example of reinforcement learning algorithm. Statistics is a representation of data, hypothesis, etc. It’s the correlation between the points, invariable and multivariable. Statistics types are as follows:
- Forecasting continuous variable: If a variable can adapt value between minimum and maximum, then it is called continuous variable, for example, weight and age. It may be deterministic or probabilistic. A deterministic result can be compared and evaluated with respective observations. Probabilistic results are in the form of distribution.
- Regression: It deals with the relationship between predictor and outcome variables. It analyzes the results based on predictive analysis and modeling. Let’s take the example of dieting apps that predict the diet schedule based on your daily food routine, weight, and height.
- Classification: It’s the process of grouping the data on the basis of similar categories. For example, classify animals based on their habitats.
1.4 Relat...
Table of contents
- Cover
- Half Title
- Title Page
- Copyright Page
- Table of Contents
- Preface
- Acknowledgment
- About the Authors
- Introduction
- Chapter 1 Introduction
- Chapter 2 Overview of Python for Machine Learning
- Chapter 3 Data Analytics Life Cycle for Machine Learning
- Chapter 4 Unsupervised Learning
- Chapter 5 Supervised Learning: Regression
- Chapter 6 Supervised Learning: Classification
- Chapter 7 Feature Engineering
- Chapter 8 Reinforcement Engineering
- Chapter 9 Case Studies for Decision Sciences Using Python
- Appendix: Python Cheat Sheet for Machine Learning
- Bibliography
- Index
Frequently asked questions
- Essential is ideal for learners and professionals who enjoy exploring a wide range of subjects. Access the Essential Library with 800,000+ trusted titles and best-sellers across business, personal growth, and the humanities. Includes unlimited reading time and Standard Read Aloud voice.
- Complete: Perfect for advanced learners and researchers needing full, unrestricted access. Unlock 1.4M+ books across hundreds of subjects, including academic and specialized titles. The Complete Plan also includes advanced features like Premium Read Aloud and Research Assistant.
Please note we cannot support devices running on iOS 13 and Android 7 or earlier. Learn more about using the app