Chapter 6. Application and Evaluation of Modeling in R and Python
After the meticulous process of exploratory data analysis, where data is visualized, understood, and preprocessed, we transition into one of the most pivotal stages in the data science life cycle: the modeling phase. This phase is where theoretical knowledge meets practical application. Leveraging the insights gleaned from EDA, data scientists select, design, and train models to predict or classify unknown outcomes. It’s a stage where the cleaned and transformed data is fed into algorithms, turning raw information into actionable insights. As we delve deeper into the modeling phase, we’ll explore various algorithms, techniques, and best practices to ensure that our models are both accurate and interpretable.
Modeling Steps
Before we dive too deeply into the modeling phase, let’s consider the purpose of modeling. Modeling focuses on building and training predictive models using data to make accurate predictions or classifications on new, unseen data. Models can be supervised or unsupervised, and I’ll cover both in this section.
Model Selection and Training
One of the first steps in model selection and training is to choose an algorithm. An algorithm is a set of well-defined rules or steps that a computer program follows to learn patterns or relationships from data and make predictions or decisions based on that learning. Machine learning algorithms work by analyzing input data (training data) to identify patterns ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access