当前位置:网站首页>Concept of naive Bayes
Concept of naive Bayes
2022-06-21 10:33:00 【I'm afraid I'm not retarded】
Introduction to machine learning —— Naive Bayes
Naive Bayes
Naive Bayes (Naive Bayes,NB): It is a classification algorithm based on probability theory , Based on Bayesian theory , Classify by calculating the probability that the samples belong to different categories , It is a classic classification algorithm .
Bayesian theory : Based on the best evidence available ( Observe 、 Data and information, etc ), To calculate the degree of belief ( Or hypothesis 、 opinion 、 proposition ) Effective method . The degree of belief is the confidence in the authenticity and correctness of things .
simple : pure 、 Rough , It is simple and crude to assume that a given target value is conditionally independent of each other
Naive Bayesian model
Yes m Samples , Each sample has n Features , Output is k Categories , A priori probability is obtained through sample learning ( How many records are there for each category ), The conditional probability is obtained through sample learning ( In a certain category , Sample present x What's the probability of ), Through the above learning results , You can calculate X、Y The joint probability distribution of
Laplacian smoothing
Laplacian smoothing : In the process of classification , Sometimes we encounter the problem of zero probability , That is, the value of an attribute in a sample with prediction does not appear in the sample , The calculation result of the whole probability will be 0. Laplace smoothes through the molecules 、 Adding adjustment to the denominator can solve this kind of problem .
Advantages and disadvantages of naive Bayesian algorithm
NB advantage :
- Endorsement based on statistics , Classification efficiency is stable
- Support multi category tasks
- Not sensitive to missing data
- Method is simple , The model is easy to explain
- A small amount of calculation , Support massive data
- Support incremental calculation , It can be used as an online forecast
NB shortcoming :
- A priori probability is required , Different values affect the results
- There is an error rate in classification decision
- Sensitive to the expression of input data
- ” simple “ Your assumptions have a big impact on the results
边栏推荐
- A bit of knowledge - what is amp?
- POI implements operation to generate word tables and operate chart data in word
- 领导:谁再用redis过期监听实现关闭订单,立马滚蛋!
- New programmers optimize a line of code on Monday and are discouraged on Wednesday?
- 110. JS event loop and setimmediate, process.nexttick
- 应用配置管理,基础原理分析
- On the problem of class member variable pollution in the context of one-time concurrence
- 如何做一个有趣的人
- Ccs7.3 how to erase only part of the flash sector when burning DSP on-chip flash (two projects of on-chip flash burning of a DSP chip)
- 中国国际电子商务中心与易观分析联合发布:2021年4季度全国网络零售发展指数同比增长0.6%
猜你喜欢

简易的安卓天气app(三)——城市管理、数据库操作

Introduction and template of segment tree Foundation (I)

NLog自定义Target之MQTT

js正则-梳理

China international e-commerce center and Analysys jointly released: the national online retail development index in the fourth quarter of 2021 increased by 0.6% year on year

Matplotlib two methods of drawing torus!

Coordinate system transformation, application in inertial navigation antenna

Will the thunderstorm of Celsius be the "Lehman moment" in the field of encryption?

并发底层原理:线程、资源共享、volatile 关键字

Underlying principle of Concurrency: thread, resource sharing, volatile keyword
随机推荐
TC software outline design document (mobile group control)
Les nouveaux programmeurs optimisent une ligne de code lundi et sont exhortés à se retirer mercredi?
108. detailed use of Redux (case)
DSP online upgrade (4) -- functions implemented by bootloader
TensorFlow,危!抛弃者正是谷歌自己
leetcode:715. Range 模块【无脑segmentTree】
About Alipay - my savings plan - interest rate calculation instructions
POI implements operation to generate word tables and operate chart data in word
Mid 2022 Summary - step by step, step by step
并发底层原理:线程、资源共享、volatile 关键字
Odd number of characters异常
Underlying principle of Concurrency: thread, resource sharing, volatile keyword
Get the data in the configuration file properties
从零开始做网站11-博客开发
使用shapeit进行单倍型分析
Xidian AI ranked higher than Qingbei in terms of AI major, and Nantah ranked first in China in terms of Software Science in 2022
Vuforia引擎支持的版本
Comparison between JWT and session
领导:谁再用redis过期监听实现关闭订单,立马滚蛋!
The more AI evolves, the more it resembles the human brain! Meta found the "prefrontal cortex" of the machine. AI scholars and neuroscientists were surprised