python 逻辑回归_Python中的逻辑回归-简介

python 逻辑回归

python 逻辑回归

Python中的逻辑回归-简介 (Logistic Regression in Python - Introduction)

Logistic Regression is a statistical method of classification of objects. This chapter will give an introduction to logistic regression with the help of some examples.

Logistic回归是对象分类的一种统计方法。 本章将通过一些示例介绍逻辑回归。

分类 (Classification)

To understand logistic regression, you should know what classification means. Let us consider the following examples to understand this better −

要了解逻辑回归,您应该知道分类的含义。 让我们考虑以下示例以更好地理解这一点-

  • A doctor classifies the tumor as malignant or benign.

    医生将肿瘤分类为恶性或良性。
  • A bank transaction may be fraudulent or genuine.

    银行交易可能是欺诈性的或真实的。

For many years, humans have been performing such tasks - albeit they are error-prone. The question is can we train machines to do these tasks for us with a better accuracy?

多年来,人类一直在执行此类任务-尽管它们容易出错。 问题是我们可以训练机器为我们更好地完成这些任务吗?

One such example of machine doing the classification is the email Client on your machine that classifies every incoming mail as “spam” or “not spam” and it does it with a fairly large accuracy. The statistical technique of logistic regression has been successfully applied in email client. In this case, we have trained our machine to solve a classification problem.

这样的机器进行分类的示例是您机器上的电子邮件客户端 ,该电子邮件客户端将所有传入邮件分类为“垃圾邮件”或“非垃圾邮件”,并且做到了相当大的准确性。 Logistic回归统计技术已成功应用于电子邮件客户端。 在这种情况下,我们已经训练了机器以解决分类问题。

Logistic Regression is just one part of machine learning used for solving this kind of binary classification problem. There are several other machine learning techniques that are already developed and are in practice for solving other kinds of problems.

Logistic回归只是用于解决这种二进制分类问题的机器学习的一部分。 还有其他几种机器学习技术已经开发出来,并且正在实践中用于解决其他类型的问题。

If you have noted, in all the above examples, the outcome of the predication has only two values - Yes or No. We call these as classes - so as to say we say that our classifier classifies the objects in two classes. In technical terms, we can say that the outcome or target variable is dichotomous in nature.

如果您已经注意到,在上述所有示例中,谓词的结果只有两个值-是或否。我们将它们称为类-可以说我们说分类器将对象分为两个类。 用技术术语来说,我们可以说结果或目标变量本质上是二分法的。

There are other classification problems in which the output may be classified into more than two classes. For example, given a basket full of fruits, you are asked to separate fruits of different kinds. Now, the basket may contain Oranges, Apples, Mangoes, and so on. So when you separate out the fruits, you separate them out in more than two classes. This is a multivariate classification problem.

还有其他分类问题,其中输出可能被分类为两个以上的类。 例如,给定装满水果的篮子,要求您分离不同种类的水果。 现在,购物篮中可能装有橘子,苹果,芒果等。 因此,当您分离出水果时,会将它们分成两个以上的类。 这是一个多元分类问题。

翻译自: https://www.tutorialspoint.com/logistic_regression_in_python/logistic_regression_in_python_introduction.htm

python 逻辑回归

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值