机器人控制学习机器编程代码

机器学习 , 意见 (Machine Learning, Opinion)

Before we proceed further to this post let us first understand what is a binary classification. So let’s understand this by a very simple instance. You are at home and it’s lunchtime, your mom comes to you and asks if you are hungry and want to have your lunch, your answer will be either “yes” or “no”. You only have two options to reply i.e. binary options. Let’s take another example of a student who has just received his result of grade 12 the result will be “passed” or “failed”. These two examples fall under the binary classification as they have two options. Now let’s see how expert systems or rule-based systems are used for Binary Classification.

在继续本文之前,让我们首先了解什么是二进制分类。 因此,让我们通过一个非常简单的实例来了解这一点。 您现在在家,现在是午餐时间,您的妈妈来找您,问您是否饿了,想吃午饭,答案是“是”或“否”。 您只有两个选项可以答复,即二进制选项。 让我们再举一个例子,该学生刚刚收到12年级的成绩,其结果将是“通过”或“失败”。 这两个示例具有两个选项,因此属于二进制分类。 现在让我们看看如何将专家系统或基于规则的系统用于二进制分类。

二进制分类专家系统: (The expert system in Binary Classification:)

The task of the machine is to check whether the image given to a machine contains text or not?

机器的任务是检查提供给机器的图像是否包含文本?

To understand this let’s see how Humans make decisions?

要了解这一点,让我们看看人类如何做出决定?

Consider the Health domain: Suppose a doctor is examining the patient and he needs to check whether the patient has Dengue or not?

考虑“健康”领域:假设医生正在检查患者,而他需要检查患者是否患有登革热?

The doctor is looking at several factors like Skin rash, fever, headache, cold cough, vomiting, and decides whether the person has dengue or not.

医生正在研究皮疹,发烧,头痛,感冒咳嗽,呕吐等多种因素,并确定患者是否患有登革热。

Factors Looked up by Doctors- Image by Author医生查找的因素-作者图像

The doctor checked one of the patients with the shown symptoms and did not find the dengue.

医生检查了其中一名表现出症状的患者,没有发现登革热。

Symptoms of a patient with no Dengue- Image by Author没有登革热的患者的症状作者提供的图像

The doctor then checked another patient and found most of the symptoms were there which were enough for the doctor to declare the patient has Dengue.

然后,医生检查了另一名患者,发现大多数症状都在那里,足以使医生宣布该患者患有登革热。

Symptoms of a patient with Dengue- Image by Author登革热患者的症状作者提供的图像

So now the question arises how the doctor is making all such decisions??

所以现在出现了一个问题,医生如何做出所有这些决定?

The answer to this is historical data. The doctor had encountered several patients and based on his experience he is now making all such decisions whether a patient has dengue or not.

答案就是历史数据 。 医生遇到了几位患者,根据他的经验,他现在正在做出所有这样的决定,无论患者是否患有登革热。

The below-shown image contains the historical data of four patients.

下图显示了四位患者的历史数据。

Historical records of patients- Image by Author患者的历史记录-作者提供的图片

As machines understand only the numbers so let’s take ‘CROSS’ as ‘0’ and ‘TICK’ as ‘1’, so the historical data will appear as follow:

由于机器只能理解数字,因此我们将“ CROSS”(交叉)设为“ 0”,将“ TICK”(“刻度”)设为“ 1”,因此历史数据如下所示:

Historical data in numerical form for Machine Understanding- Image by Author机器理解的数字形式的历史数据-作者提供的图像

So what are the Semantics of decision making by doctors?

那么,医生的决策语义是什么?

2 things that play the role there: Feature and Rules.

在那里起作用的2件事: 功能规则

Features are the inputs or symptoms that we are taking- Skin rash, fever, headache, cold cough and vomiting.

特征是我们正在接受的输入或症状-皮疹,发烧,头痛,感冒咳嗽和呕吐。

Rules are the permutations of symptoms going on in the head of the doctor which decides whether dengue is there i.e suppose if 2 or more symptoms are positive or 3 or more are positive then the person has dengue.

规则是医生头脑中发生的各种症状的排列,这些症状决定是否存在登革热,即假设如果2个或更多症状为阳性或3个或更多症状为阳性,则该人患有登革热。

Features and Rules- Image by Author功能和规则-作者提供的图片

Now we want to outsource these rules to a machine in the form of a program so that the machine can execute the program by taking some input and give us the output. We’ll write an if-else condition and based on the conditions the program will give the output.

现在,我们想将这些规则以程序的形式外包给机器,以便机器可以通过输入一些信息并提供给我们输出来执行程序。 我们将编写if-else条件,并根据条件,程序将提供输出。

Outsourcing the rules to the machine through program- Image by Author通过程序将规则外包给机器

专家系统的局限性: (Limitations of an expert system:)

Let’s take a situation here: Suppose you have a company named Data Science Arena and your company is to hire a person for a job.

让我们在这里采取一种情况:假设您有一家名为Data Science Arena的公司,而您的公司将雇用一个人从事工作。

So for hiring someone, the hiring manager is going to look at various parameters like- 10th marks, 12th marks, if he/she is a graduate, what was the CGPA, what all projects have been done, and some other parameters. The hiring manager will make different permutations of tasks in his/her mind and then he’ll decide whether to select or reject a candidate.

因此,对于雇用某人,招聘经理将查看各种参数,例如-10分,12分,如果他/她是毕业生,什么是CGPA,已完成的所有项目以及其他一些参数。 招聘经理会在脑海中做出不同的任务排列,然后决定是否选择或拒绝候选人。

Hiring Scenario- Image by Author招聘方案-作者提供的图片

But if the tasks of hiring are comparatively large then it would be very difficult for any human to make the permutations of the tasks and the company will prepare a program to be fed to the machine to make it process and give the output.

但是,如果招聘任务比较大,那么任何人都很难对任务进行排列,公司将准备一个程序供机器使用,以进行处理并提供输出。

Thus comes the first limitation- If the number of features (tasks here) are more then it won’t be possible to come up with the different permutation easily and thus difficult to bring out an if-else program easily.

因此, 第一个限制是 -如果功能(这里的任务)的数量更多,那么将不可能轻易地提出不同的排列,因此很难轻易地推出if-else程序。

Also as there would be a large number of historical data of the employees who had been hired and also the ones who have left the company. So looking at the different scenarios out of the large historical data it won’t be easily possible for a human to write a program out of it.

此外,还将有大量的历史数据,包括已雇用的员工和离开公司的员工。 因此,从大量的历史数据中查看不同的场景,对于人类来说,用它编写程序是不容易的。

The data appears to be as follows:

数据如下所示:

Historical data of 4 Employees- Image by Author4名员工的历史数据-作者提供的图片

Looking at the data one can see that the rules for forming the permutations would be too complex.

查看数据,可以看到形成排列的规则太复杂了。

Thus comes the second limitation- Even if anyhow you came up with the rules but it won’t be possible to remember all the rules as the rules would be too much complex.

因此出现了第二个限制 -即使您以某种方式提出了规则,但由于规则太复杂了,所以无法记住所有规则。

Also sometimes the rules are inexpressible i.e. suppose the hiring manager hired a person based on his honesty. So how can we express this as a rule?

同样,有时规则是无法表达的,即假设招聘经理根据其诚实性雇用了一个人。 那么,我们通常如何表达呢?

As honesty can’t be expressed in any quantitative form thus making it as the third limitation.

由于诚实不能以任何定量的形式表达,因此使其成为第三个限制。

So to solve the above limitations we use machine learning. It takes the inputs and forms a function f(x1, x2, … xn) that includes all our permutations and based on the input provided, gives us the output. The function formed can be a linear or of any degree based on the inputs.

因此,为了解决上述限制,我们使用机器学习。 它接受输入并形成函数f(x1,x2,…xn),其中包括我们的所有排列,并根据提供的输入提供输出。 所形成的函数可以是线性的,也可以是基于输入的任何程度的函数。

Thanks for reading. Hope this blog gave you some insights about how machine learning is conquering the explicit programming.

机器人控制学习机器编程代码_机器学习正在征服显式编程相关推荐

  1. 如果你是C开发人员请看这三个显式编程技巧

    嵌入式系统开发人员应尽可能明确,以避免 ASSUME 综合症并在其系统中产生意外行为.在今天的文章中,让我们来看看嵌入式开发人员可以通过更明确的方式清理代码的几个领域. 嵌入式系统开发人员应尽可能明确 ...

  2. 简单编程代码_好了好了,不闲扯了,我们开始学编程了

    一.如何选择一门编程语言 说到编程,很多人都想着多么厉害,多么大神. 但是其实编程不过就是码代码,就像砌砖一样,设计好图纸,然后按部就班的码上去就好了. 但是砌砖也是个技术活,你要去学习怎么用工具,怎 ...

  3. soul刷屏编程代码_奔涌吧,编程!少儿编程教育在未来会像语文,数学一样重要!...

    想必最近你的朋友圈一定被<奔涌吧,后浪>刷屏了,的确,时代在变好,我们能够更自由的学习,读书,很多孩子在年轻时就已经接触到许多的兴趣活动,他们早早的就在发展一项"事业" ...

  4. 与孩子一起学编程代码_这周与您的孩子一起做一个代码小时

    与孩子一起学编程代码 The Hour of Code started in 2013 with the goal of getting kids excited about programming ...

  5. java计分系统编程代码_使用Java代码对实时系统进行编程

    由于许多重要原因,Java语言在实时系统中的使用并不广泛. 这些包括Java语言设计固有的不确定性性能影响,例如动态类加载,以及Java Runtime Environment(JRE)本身,例如垃圾 ...

  6. k邻近算法python代码_机器学习算法之K近邻法-Python实现

    一.算法简介 k近邻法(k-nearest neighbor,k-NN)是一种基本的分类方法,输入的是实例的特征向量,对应于特征空间的点,输出结果为实例的类别,可以取多类.对于训练集来说,每个实例的类 ...

  7. 孝感市小学生机器人编程比赛_小学生获机器人大赛一等奖 编程是语文老师教的...

    走进兰溪云山小学的机器人创客教室,只见两位小男孩蹲在地上,琢磨着他们的机器人. "路线有问题,还需要调整."很快,他们又窜进隔壁的计算机房,啪啪啪敲打键盘,调整机器人的编程代码. ...

  8. ironbot智能编程机器人_边玩边学,编程启蒙,IronBot机器人套件视频图文评测

    前言 当今世界充满竞争和挑战,你的对手可能不是人.早在2015年,教育部就颁发了指导意见,鼓励以编程为核心的,包括科学(S).技术(T).工程(E).艺术和航空(A),以及数学(M)五个方面的&quo ...

  9. python3实用编程技巧_适合Python初学者的一些编程技巧

    这篇文章主要介绍了给Python初学者的一些编程技巧,皆是基于基础的一些编程习惯建议,需要的朋友可以参考下 交换变量 x = 6 y = 5 x, y = y, x print x >>& ...

  10. 什么是反应式编程? 这里有你想要了解的反应式编程 (Reactive programming)

    理解反应式编程 你曾有过订阅报纸或者杂志的经历吗?互联网的确从传统的出版发行商那儿分得了一杯羹,但是过去订阅报纸真的是我们了解时事的最佳方式.那时,我们每天早上都会收到一份新鲜出炉的报纸,并在早饭时间 ...

最新文章

  1. HDU1530(最大团问题)
  2. Pandas简明教程:六、Pandas条件查询
  3. Spring boot表单重复提交
  4. 域名解析跳转到另一个域名_github建立静态网站,域名解析和跳转
  5. 转 OFBIZ webservice简介
  6. CC视频CTO栗伟:CDN系统架构及CC视频应用实践
  7. Node Sass could not find a binding for your current environment: OS X 64-bit with Node.js 10.x
  8. cxpacket_如何避免CXPACKET?
  9. Linux定时发送arp,linux-networking – Keepalived定期发送免费ARP
  10. asp.net服务器端对话框控件的简单实现(附源码)
  11. python程序员专用壁纸_Python程序员必用的电脑桌面
  12. Hive 窗口函数如何设置窗口大小
  13. 介绍:一款Mathematica的替代开源软件Mathetics
  14. mysql查询每月最后一天数据_Mysql查询每个月的最后一天
  15. 用 360 随身 WiFi 钓鱼
  16. 怎么去除新装修房子的甲醛
  17. 【教程】如何把iPad变成PC端的扩展屏
  18. 十折交叉验证pythoniris_python机器学习-交叉验证(cross-vaildation)
  19. Socket 【网络通信 - Socket】
  20. 【ics-05 | mfw】攻防世界CTF题WP

热门文章

  1. [WCF编程]12.事务:事务概述
  2. (转载)C/C++:sizeof('a')的值为什么不一样?
  3. IT从业人员的10个专业论坛
  4. 好风凭借力,送我上青云!
  5. 各种语言和各种前沿技术的简介和科普
  6. 基于Kinect 2.0深度摄像头的三维重建 and Kinect Fusion
  7. atitit 项目硬件平台选型attilax总结4blg.docx
  8. atitit 研发管理 要不要自己做引擎自己实现架构?.docx
  9. 专访凯美瑞德研发总监孟江华:银行间市场操作系统的自主可控亟待加强
  10. (转) 数字加密货币全球资源汇总