- Hands-On Artificial Intelligence for Beginners
- Patrick D. Smith
- 286字
- 2021-06-10 19:33:47
Supervised learning algorithms
Supervised algorithms rely on human knowledge to complete their tasks. Let's say we have a dataset related to loan repayment that contains several demographic indicators, as well as whether a loan was paid back or not:

The Paid column, which tells us if a loan was paid back or not, is called the target - it's what we would like to predict. The data that contains information about the applicants background is known as the features of the datasets. In supervised learning, algorithms learn to predict the target based on the features, or in other words, what indicators give a high probability that an applicant will pay back a loan or not? Mathematically, this process looks as follows:
Here, we are saying that our label is a function of the input features
, plus some amount of error
that it caused naturally by the dataset. We know that a certain set of features will likely produce a certain outcome. In supervised learning, we set up an algorithm to learn what function will produce the correct mapping of a set of features to an outcome.
To illustrate how supervised learning works, we are going to utilize a famous example toy dataset in the machine learning field, the Iris Dataset. It shows four features: Sepal Length, Sepal Width, Petal Length, and Petal Width. In this dataset, our target variable (sometimes called a label) is Name. The dataset is available in the GitHub repository that corresponds with this chapter:
import pandas as pd
data = pd.read_csv("iris.csv")
data.head()
The preceding code generates the following output:
Now that we have our data ready to go, let's jump into some supervised learning!
- Dreamweaver CS3 Ajax網(wǎng)頁設(shè)計入門與實例詳解
- 過程控制工程及仿真
- 基于LPC3250的嵌入式Linux系統(tǒng)開發(fā)
- 圖解PLC控制系統(tǒng)梯形圖和語句表
- 可編程控制器技術(shù)應用(西門子S7系列)
- Photoshop CS3圖像處理融會貫通
- Supervised Machine Learning with Python
- Arduino &樂高創(chuàng)意機器人制作教程
- Android游戲開發(fā)案例與關(guān)鍵技術(shù)
- 大數(shù)據(jù)驅(qū)動的機械裝備智能運維理論及應用
- The Python Workshop
- Google SketchUp for Game Design:Beginner's Guide
- 電氣控制與PLC技術(shù)應用
- 計算機與信息技術(shù)基礎(chǔ)上機指導
- 網(wǎng)絡安全技術(shù)及應用