Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit7353224

Browse files
minjk-blgitbook-bot
authored andcommitted
GITBOOK-44: Frame-Encoding
1 parent7f90bd6 commit7353224

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed
80.8 KB
Loading
Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,11 @@
11
#4-4. Frame - Encoding
22

3+
<figure><imgsrc="../../.gitbook/assets/image (216).png"alt=""width="499"><figcaption></figcaption></figure>
34

5+
* This feature is used for columns with categorical data entered.
46

5-
<figure><imgsrc="../../.gitbook/assets/image (38).png"alt=""><figcaption></figcaption></figure>
6-
7-
Use this feature for columns where categorical data is entered.
8-
9-
1._**Label Encoding**_: Assign a number for each type of variable.&#x20;
10-
11-
&#x20; For example, assign 0 for spring, 1 for summer, 2 for autumn, and 3 for winter.
12-
13-
2._**One-Hot-Encoding**_: Assign a binary vector for each type of variable.&#x20;
14-
15-
&#x20; For example, spring is assigned\[1, 0, 0, 0], summer is\[0, 1, 0, 0], autumn is\[0, 0, 1, 0],&#x20;
16-
17-
&#x20; and winter is\[0, 0, 0, 1].
7+
1._**Label Encoding**_: Assign a number to each type of variable.&#x20;
8+
1. For example, assign 0 for spring, 1 for summer, 2 for fall, and 3 for winter.
9+
2._**One-Hot-Encoding**_: Assign a binary vector to each type of variable.&#x20;
10+
1. For example, spring would be assigned\[1, 0, 0, 0], summer would be\[0, 1, 0, 0], fall would be\[0, 0, 1, 0], and winter would be\[0, 0, 0, 1].
1811

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp