日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

转正老板让你谈谈你的看法_让我们谈谈逻辑回归

發(fā)布時(shí)間:2023/12/15 编程问答 21 豆豆
生活随笔 收集整理的這篇文章主要介紹了 转正老板让你谈谈你的看法_让我们谈谈逻辑回归 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

轉(zhuǎn)正老板讓你談?wù)勀愕目捶?/p>

Moving forward from Linear Regression, we will now address the next most important algorithm on our ML journey. The Logistic Regression.

從線性回歸向前發(fā)展,我們現(xiàn)在將解決機(jī)器學(xué)習(xí)旅程中的下一個(gè)最重要的算法。 邏輯回歸。

‘Logistic’ in the English language means ‘planning’. Now, how do we interpret that in the context of Machine Learning?

英文中的“物流”是指“計(jì)劃”。 現(xiàn)在,我們?nèi)绾卧跈C(jī)器學(xué)習(xí)的背景下對(duì)此進(jìn)行解釋?

Actually, Logistic Regression derives its name from the Logistic function that is implicitly used in the algorithm and is, therefore, called what it is called. (It has nothing to do with the meaning of ‘logistic’, per se).

實(shí)際上,Logistic回歸是從該算法中隱式使用的Logistic函數(shù)獲得其名稱的,因此被稱為它。 (本質(zhì)上與“物流”的含義無關(guān))。

Let’s now break down the aspects of Logistic Regression.

現(xiàn)在讓我們分解Logistic回歸的各個(gè)方面。

The algorithm is usually used to sort the data into two different possibilities i.e pass/fail, alive/dead, this/that (Binary). While Linear Regression is a predictive algorithm, Logistic Regression is termed as a classification algorithm.

該算法通常用于將數(shù)據(jù)分類為兩種不同的可能性,即通過/失敗,有效/無效,this / that( 二進(jìn)制 )。 雖然線性回歸是一種預(yù)測(cè)算法,但邏輯回歸被稱為分類算法 。

How does the algorithm classify? You may ask. To answer that, we will have to probe it in deeper places. Probe into the very function that is the core of the method.

該算法如何分類? 你可能會(huì)問。 為了回答這個(gè)問題,我們將不得不在更深的地方進(jìn)行探討。 探討作為方法核心的功能 。

The Logistic function (or the Sigmoid function) is a S-shaped curve that rises pretty quickly and then saturates at a certain level. It takes any real valued number and then maps it between 0 and 1.

Logistic函數(shù)(或Sigmoid函數(shù) )是一條S形曲線,其上升非常快,然后在一定水平上達(dá)到飽和。 它采用任何實(shí)數(shù)值,然后將其映射為0到1。

It’s mathematically given by : 1 / (1 + e^-value), where e is the base of the natural logarithms.

從數(shù)學(xué)上講,它是: 1 /(1 + e ^ -value) ,其中e是自然對(duì)數(shù)的底數(shù)。

Now, how does the logistic curve help? Here you go.

現(xiàn)在,邏輯曲線如何幫助? 干得好。

We take the values of x (the training data), plug it in an equation and model the values of y. Exactly like linear regression, except that y here is either 0 or 1. (We are sorting the data into possibilities, as I mentioned before).

我們?nèi)的值( 訓(xùn)練數(shù)據(jù) ),將其插入方程式并為y的值建模。 與線性回歸完全一樣,不同之處在于y此處為0或1。(如前所述,我們正在將數(shù)據(jù)分類為可能性)。

Here’s an example of a Logistic Regression equation :

這是Logistic回歸方程的示例:

y = e^(b0 + b1*x) / (1 + e^(b0 + b1*x))

y = e ^(b0 + b1 * x)/(1 + e ^(b0 + b1 * x))

This formula essentially is a revised version of the logistic function. We take a perfectly linear function b0 + b1*x and plug it into our logistic function to get a mapped output between 0 and 1. (You can say it’s Linear Regression with a twist!)

該公式本質(zhì)上是邏輯函數(shù)的修訂版。 我們采用一個(gè)完美的線性函數(shù)b0 + b1 * x并將其插入我們的邏輯函數(shù)中,以獲取0到1之間的映射輸出。

Here b0 and b1 are coefficients that need to be learned from the training data.

這里b0和b1是需要 從訓(xùn)練數(shù)據(jù)中學(xué)到。

Which brings us to two important questions.

這給我們帶來了兩個(gè)重要的問題。

我們?nèi)绾未_定y是0還是1? (How do we determine whether our y is 0 or 1?)

The answer is simple : Determine a decision boundary.

答案很簡(jiǎn)單:確定決策邊界。

If our decision boundary is 0.5, the values of y which are computed less than 0.5 will be a 0 and the ones greater than 0.5 will be a 1.

如果我們的決策邊界為0.5,則計(jì)算出的小于y的y值將為0,大于0.5的y值為1。

如何學(xué)習(xí)系數(shù)? (How are the coefficients learned?)

While there are several methods to this as covered in ‘Let’s talk Linear Regression’, an important one is the Stochastic Gradient method.

盡管“線性對(duì)話回歸”中介紹了多種方法,但重要的一種方法是隨機(jī)梯度法。

Given a training example :

給出一個(gè)訓(xùn)練示例:

1. We initialise our coefficients to 0, and calculate our prediction.

1.我們將系數(shù)初始化為0,然后計(jì)算我們的預(yù)測(cè)。

2. We calculate the new coefficient values based on the error in prediction.

2.我們根據(jù)預(yù)測(cè)誤差計(jì)算新系數(shù)值。

3. We repeat till our error drops to a desirable level. (We want our model to be accurate after all)

3.重復(fù)執(zhí)行直到錯(cuò)誤降至理想水平。 (我們畢竟希望我們的模型是準(zhǔn)確的)

I will be skimming over the rigorous math in this article to keep it beginner-friendly.

我將在本文中瀏覽嚴(yán)格的數(shù)學(xué),以使其對(duì)初學(xué)者友好。

This article is by no means an exhaustive study of Logistic Regression and is an attempt at simplifying and breaking down the concepts.

本文絕不是對(duì)Logistic回歸的詳盡研究,而是試圖簡(jiǎn)化和分解這些概念。

For a deeper mathematical understanding, I would highly recommend checking out the Scikit Learn documentation and the Python implementation of the algorithm.

為了更深入地了解數(shù)學(xué),我強(qiáng)烈建議您查看Scikit Learn文檔和該算法的Python實(shí)現(xiàn)。

The equation examples and the images in this article have been referred from : https://machinelearningmastery.com/logistic-regression-for-machine-learning/

本文中的方程式示例和圖像已從以下網(wǎng)站引用: https : //machinelearningmastery.com/logistic-regression-for-machine-learning/

翻譯自: https://medium.com/swlh/lets-talk-logistic-regression-4b2072ad7b4e

轉(zhuǎn)正老板讓你談?wù)勀愕目捶?/p>

總結(jié)

以上是生活随笔為你收集整理的转正老板让你谈谈你的看法_让我们谈谈逻辑回归的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。

主站蜘蛛池模板: 亚洲自拍电影 | 成人在线国产精品 | 国产福利免费在线观看 | 精品乱子一区二区三区 | 一区二区中文字幕在线观看 | 性网站在线观看 | 欧美在线视频免费观看 | 日韩成人av网址 | 日本污视频在线观看 | 国产亚洲制服 | 久久午夜伦理 | 美国免费高清电影在线观看 | 成人午夜精品无码区 | 少妇毛片一区二区三区 | 福利在线一区二区三区 | 超碰.com | 欧美91成人网 | 久久桃花网| 国产精品高潮呻吟AV无码 | 少妇无码av无码专区在线观看 | 亚洲欧美高清在线 | 久久两性视频 | 国产精品久久久爽爽爽麻豆色哟哟 | 成人在线短视频 | 91精品国产aⅴ一区二区 | 国产精品一区二区三区在线 | 中文字幕1区 | 一级黄色片在线免费观看 | 日日爽夜夜 | 爱爱网站视频 | 一级激情视频 | 真实乱视频国产免费观看 | 成年人网站在线 | 在线看片 | 欧美黄色大片免费观看 | 久久春色 | 欧美精品欧美精品系列 | 黄色avav | 伊人久久久 | 国产麻豆天美果冻无码视频 | 精品久久999 | 欧美少妇xxxxx| 中文字幕蜜臀 | 久久精品一二三区 | 亚洲色图日韩精品 | 免费国产精品视频 | 久久在线免费观看 | 女儿的朋友在线播放 | 亚洲黄色在线看 | 国产成人久久婷婷精品流白浆 | 亚洲第一天堂久久 | 91成人品| 探花视频在线版播放免费观看 | 婷婷亚洲天堂 | 精品人妻少妇嫩草av无码专区 | 色伊人影院 | 亚洲综合日韩精品欧美综合区 | 久久福利一区 | 五月婷婷激情五月 | 男同激情视频 | 国产网址在线观看 | 91精品国自产在线 | 中文在线免费 | 尤物视频免费在线观看 | 欧美一级大片 | 91红桃视频 | 日本高清不卡码 | 欧美深夜在线 | 国产一区二区日韩 | 韩国久久久 | 蜜臀99久久精品久久久久久软件 | 三级在线免费 | 国内精品视频一区二区三区 | 惊艳大片mv视频 | 欧美做受高潮动漫 | 欧美精品一区二区在线播放 | 五月婷婷丁香花 | 视频一区二区在线观看 | 国产黑丝av | 黄色的网站在线 | 国产精品区一区二 | 中文字幕日韩三级 | 色就是色欧美 | 欧美aⅴ在线 | 国产成人免费看一级大黄 | 欧美女同在线 | 国产偷怕 | 黄色一级大片免费版 | 日韩黄色网 | 美女少妇一区二区 | 欧美精品卡一卡二 | 一级在线观看 | 久久大胆| 日本毛片在线看 | 激情欧美一区二区三区 | 成人自拍视频网 | 神马久久网站 | av男女 | 超碰在线|