当前位置:网站首页>The video of machine learning to learn [update]
The video of machine learning to learn [update]
2022-08-04 03:36:00 【terrific51】
Video Learning for Machine Learning
I. Overview of Machine Learning
1. What is machine learning
Machine learning is a computer program that learns from experience and gets better at a specific task.
Most important for machine learning:
- Data: Experience is ultimately transformed into data that the computer can understand, so that the computer can learn from the experience.
- Model: The algorithm.Once you have the data, you can design a model and use the data as input to train the model.The trained model eventually becomes the core of machine learning, making the model the hub that can generate decisions.
2. Supervised vs Unsupervised Learning
(1) Supervised Learning
Supervised learning (Supervised learning) allows the computer to learn the rules from a large amount of known input and output paired data, so that it can make a reasonable output prediction for a new input.
- House price prediction (regression problem)
Shown below is an example of a house price forecast.It is an example of supervised learning.
As in this housing price prediction example, supervised learning provides the algorithm with a data set (which contains the correct answers), that is, we give it a housing price data set, and each sample in this data set corresponds to a correct answer(i.e. the actual selling price of the house).The purpose of the algorithm is to give more correct answers.
The prediction of house price is a regression problem (regression), because house price is a real, continuous value.
- Malignant/benign cancer (classification problem)
Malignant/benign cancer (ie 0/1) is a classification problem because malignant/benign (ie 0/1) are discrete values.
(2) Unsupervised Learning
Unsupervised learning (Unsupervised learning) analyzes the inherent characteristics and structure of the data itself by learning a large amount of unlabeled data.
Unsupervised learning requires letting the algorithm discover everything from the data on its own.One of the common algorithms is clustering: using algorithms to group together news stories, market segmentation, etc.
3. Model description
Linear Regression Model
- Cost function
Squared error cost function
Model, parameters, cost function, objective (find a value of w, b that minimizes J(w,b))
when b=0
By simplifying the model, our goal is to find wA value that minimizes J(w)
When w=1, J(w)=0 is calculated:When w=0.5, J(w)=0.58 is calculated:
Take different values of w, calculate J(w), and draw a graph as shown:
when b!=0
House price forecast
4. Gradient descent algorithm
where a is the learning rate.If the learning rate is too small, then large drops are feasible, but will be slow.This will take a long time because you will be taking very small steps, many steps before it gets close to the minimum.But if the learning rate is too large, the steps will be very large, and it is likely that the minimum value will be skipped due to the large step size, and the minimum value will never be reached.
As shown in the picture:
If the parameter is reachedlocal minima, then further binning reduces steps to none at all.It doesn't change the process precisely because it keeps the solution at a local minimum.
As we approach a local minimum, the rank drop will beSmaller steps are automatically taken because the derivative automatically gets smaller as we approach a local minimum, which means that the steps also get smaller automatically, even if a remains at some fixed value.
Derivation:
边栏推荐
- TOML configuration file format, YAML's top contender
- Oracle与Postgresql在PLSQL内事务回滚的重大差异
- Polygon zkEVM network node
- 说说数据治理中常见的20个问题
- SQL injection in #, - +, - % 20, % 23 is what mean?
- FFmpeg —— 录制麦克风声音(附源码)
- SQL注入中 #、 --+、 --%20、 %23是什么意思?
- 哎,又跟HR在小群吵了一架!
- How many ways do you know about communication between multiple threads?
- C language -- ring buffer
猜你喜欢
"Introduction to nlp + actual combat: Chapter 8: Using Pytorch to realize handwritten digit recognition"
Functions, recursion and simple dom operations
复现20字符短域名绕过
Brush esp8266-01 s firmware steps
哎,又跟HR在小群吵了一架!
SQL注入中 #、 --+、 --%20、 %23是什么意思?
Gigabit 2 X light 8 electricity management industrial Ethernet switches WEB management - a key Ring Ring net switch
企业直播风起:目睹聚焦产品,微赞拥抱生态
说说数据治理中常见的20个问题
Deep Learning (3) Classification Theory Part
随机推荐
Introduction to mq application scenarios
架构实战营模块三作业
docker+bridge+redis master-slave+sentry mode
typescript type 和 interface 的区别
目标检测-中篇
Mockito单元测试
初识Numpy
数据安全峰会2022 | 美创DSM获颁“数据安全产品能力验证计划”评测证书
拿捏JVM性能优化(自己笔记版本)
SQL injection in #, - +, - % 20, % 23 is what mean?
FFmpeg —— 录制麦克风声音(附源码)
自定义通用分页标签02
Sfdp 超级表单开发平台 V6.0.5 正式发布
函数,递归以及dom简单操作
MySQL Query Exercise (1)
Mockito unit testing
本周四晚19:00知识赋能第4期直播丨OpenHarmony智能家居项目之设备控制实现
Architecture of the actual combat camp module three operations
golang中的unsafe.Pointer,指针,引用
跨境电商看不到另一面:商家刷单、平台封号、黑灰产牟利