
Introduce a regression pipeline in R by processing data, training models reproducibly, and making predictions, using tidy models, workflowsets, and plumber to expose an API.
Follow a Datacamp tutorial to install R on Windows, Mac OS X, or Ubuntu with steps. Seek help if you encounter issues installing R or RStudio before the next lecture.
Create a new RStudio project named udemy_pipeline with data and models folders, add scripts like tune_tidymodels.R and prepare_data.R, and import txt attachments for tidymodels setup.
Explore rsample in tidymodels to split data into training and testing sets with initial_split, stratified sampling, and cross-validation readiness, preparing ames_train and ames_test for model evaluation.
Learn to preprocess data in R using the tidymodels recipes package, applying normalization, dummy encoding, and other step functions, and bake the recipe on training data to avoid leakage.
Explore feature engineering with recipes and step_functions, using step_other with a 0.05 threshold, step_nzv, and ames_train. Create total_area from area columns, apply step_mutate and step_dummy.
Learn to train and fit models with the parsnip unified API, using rand_forest with ranger or spark for regression, then prep data and predict on ames_test.
Explore hyperparameter tuning for a random forest in R, using vfold_cv cross-validation, the tune package, and grid_random grids with recipes, parsnip, and dials.
Examine tuning results across 10 hold-out sets, compare rmse and rsquared with collect_metrics, and use select_best to identify the best hyperparameters for a parsnip rand_forest model.
Define and tune a regression workflow by combining a preprocessor recipe with a random forest model, tune hyperparameters, and finalize before fitting and predicting.
Leverage workflowsets to compare multiple workflows of preprocessors and models, using recipes like normalize and dummy, with feature engineering such as total_area in R.
Explain how to work with workflow set objects and tuning results, generate entropy-based grids, and identify the best random forest workflow using collect_metrics and RMSE or R-squared.
Build a machine learning pipeline with plumber and tidymodels, set up data and folders, and expose API endpoints for training, predictions, and reporting on a local server.
Learn to define R functions as api endpoints with plumber, install and run plumber, and test a simple echo endpoint via Swagger and curl.
Explore the basics of the pipeline, including rmarkdown dynamic reports driven by params, selective output in code chunks, library checks, and loading the ames housing data with a default summary.
Explore building a machine learning pipeline in R, from seeding data and creating training/test splits to cross-validation, preprocessing with recipes, imputation, and tuning for random forests and linear regression.
Identify the best workflow by rmse using grid_results and rank_results, then generate test predictions with last_fit and plot observed vs predicted with ggplot2, saving the final model to an Rds.
learn to build a plumber api in R to expose a predict_data endpoint using parsnip and read data and the model with read.csv and readRDS to generate predictions.
Explore how the report endpoint in a plumber-based machine learning pipeline renders an html report by rendering an rmarkdown document with input data, target, and tune params.
Interact with a machine learning pipeline via start_api.R and swagger, run the report, tune parameters, and make predictions on unseen data, while inspecting results and feature importance.
Add a new preprocessor with PCA to reduce feature dimensionality using an 80 percent explained variance threshold, integrated into the pipeline.
Add a regression tree to the machine learning pipeline using rpart, tune parameters, and customize the workflow with new models and tune grids; inspect outputs via the API.
Celebrates the completion of a regression pipeline course using tidymodels, workflowsets, and plumber in r. Wishing you the best as you continue your journey as an r programmer.
Hi,
in this course you are going to get a quick introduction into the fascinating world of building predictive models in R using tidymodels. This course guides you through important packages of tidymodels to empower you to build an automatic regression pipeline, which you can use to tune a model for your own data set. I will introduce you to tidymodels and show you how you can build a simple API using plumber.
We discover the important packages together. After each video in the first chapter you will solve short quizzes to deepen your knowledge. Step by step you will learn the important parts to build a regression pipeline.
In the second chapter we will finally build the pipeline, which you can customize to your specific needs. We will make the pipeline available through plumber.
This course is pretty dense in nature, but I believe that it is a very good starting point for you, since you will be able to build upon the material provided to you.
I assume that you are familiar with R, tidyverse principles and the basics of machine learning. But even If you are a complete beginner, I think that this course can be valuable to you.
I am looking forward seeing you in the course,
Sincerely Moritz