Machine Learning for Regression
or
Machine Learning for RegressionCurriculum Module
Created with R2021a. Compatible with R2021a and later releases.
Description
This package contains several生活的脚本and supporting files that teach the basics of machine learning for regression. The materials are designed to be flexible and can be easily modified to accommodate a variety of teaching and learning methods. These include a brief background, interactive illustrations, tasks, reflection questions, a real-world application in electricity load forecasting, and guided exercises for the different concepts explored. The module can be used to provide a light introduction to the terminology and concepts in machine learning, centered around regression. The overarching goal is to familiarize students with the typical workflow, setup, and considerations involved in solving regression problems with machine learning.
The instructions inside the live scripts will guide you through the activities and exercises. Get started with each live script by running it one section at a time. To stop running the script or a section midway (for example, when an animation is in progress), use the年代topbutton in theRUNsection of the Live Editor tab in the MATLAB toolstrip.
年代uggested Prework
MATLAB Onramp—a free two-hour introductory tutorial to learn the essentials of MATLAB®. Additional programming skills (seeMATLAB Fundamentals) are beneficial, but not assumed in the tasks and instructions.
Regression Basics—a curriculum module to cover the fundamentals of regression analyis.
No prior exposure to the subject of machine learning is assumed.
Details
machineLearningIntro.mlx
An interactive lesson that introduces some key concepts in machine learning, along with a few regression models. It contains many independent introductory sections that are easy to edit.
Learning Goals
- 年代tate the difference between regression, classification, and clustering problems.
- Outline the common steps involved in applying machine learning techniques.
- Define feature engineering and feature extraction.
- Formulate regression as a machine learning problem.
- Identify and use the different machine learning models commonly used for regression.
- Explain overfitting and underfitting in machine learning, and identify at least two ways of tackling these problems.
loadForecastRegression.mlx
,loadForecastRegression_soln.mlx
年代tudents are guided through the steps to apply machine learning for electricity load forecasting using real-world data. This script can be used in two different modes: controls-only or with complete code.
Learning Goals
- Apply the steps in the machine learning workflow to solve a practical problem in time series forecasting.
- Formulate the time series forecasting problem as a machine learning problem by engineering appropriate features.
- Validate and compare different types of regression models.
- Test and evaluate the trained model to make predictions.
electricityLoadDataML.mlx
A supplementary script to download the external electricity load data fromNew York ISOfor use inloadForecastRegression.mlx
. This script contains the code for downloading, organizing, formatting, and cleaning up the raw data.
FE1_programmaticML.mlx
,FE2_loadForecastDL.mlx
These two scripts contain ideas to expand on the practical problem presented inloadForecastRegression.mlx
. Working through the suggestions requires some independent exploration and active learning.FE1_programmaticML.mlx
encourages students to write their own machine learning algorithm, andFE2_loadForecastDL.mlx
begins to explore deep learning for load forecasting.
2022世界杯八强谁会赢?
MATLAB, Statistics and Machine Learning Toolbox™
License
The license for this module is available in the LICENSE.TXT file in this GitHub repository.
年代upport
有任何问题或反馈?联系MathWorks online teaching team.
Copyright 2021 The MathWorks, Inc.
Cite As
Emma Smith Zbarsky (2023).Machine Learning for Regression(https://github.com/MathWorks-Teaching-Resources/Machine-Learning-for-Regression/releases/tag/v1.1.3), GitHub. Retrieved.
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxTags
Communities
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
年代tart Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.1.3.0 | 年代ee release notes for this release on GitHub:https://github.com/MathWorks-Teaching-Resources/Machine-Learning-for-Regression/releases/tag/v1.1.3 |
||
1.1.2 | 年代ee release notes for this release on GitHub:https://github.com/MathWorks-Teaching-Resources/Machine-Learning-for-Regression/releases/tag/v1.1.2 |
||
1.1.1 | 年代ee release notes for this release on GitHub:https://github.com/MathWorks-Teaching-Resources/Machine-Learning-for-Regression/releases/tag/v1.1.1 |
||
1.1.0 |