All language subtitles for 004 Preprocessing Categorical Data_en

af Afrikaans
ak Akan
sq Albanian
am Amharic
ar Arabic
hy Armenian
az Azerbaijani
eu Basque
be Belarusian
bem Bemba
bn Bengali
bh Bihari
bs Bosnian
br Breton
bg Bulgarian
km Cambodian
ca Catalan
ceb Cebuano
chr Cherokee
ny Chichewa
zh-CN Chinese (Simplified)
zh-TW Chinese (Traditional)
co Corsican
hr Croatian
cs Czech
da Danish
nl Dutch
en English
eo Esperanto
et Estonian
ee Ewe
fo Faroese
tl Filipino
fi Finnish
fr French
fy Frisian
gaa Ga
gl Galician
ka Georgian
de German
el Greek
gn Guarani
gu Gujarati
ht Haitian Creole
ha Hausa
haw Hawaiian
iw Hebrew
hi Hindi
hmn Hmong
hu Hungarian
is Icelandic
ig Igbo
id Indonesian
ia Interlingua
ga Irish
it Italian
ja Japanese
jw Javanese
kn Kannada
kk Kazakh
rw Kinyarwanda
rn Kirundi
kg Kongo
ko Korean
kri Krio (Sierra Leone)
ku Kurdish
ckb Kurdish (Soranรฎ)
ky Kyrgyz
lo Laothian
la Latin
lv Latvian
ln Lingala
lt Lithuanian
loz Lozi
lg Luganda
ach Luo
lb Luxembourgish
mk Macedonian
mg Malagasy
ms Malay
ml Malayalam
mt Maltese
mi Maori
mr Marathi
mfe Mauritian Creole
mo Moldavian
mn Mongolian
my Myanmar (Burmese)
sr-ME Montenegrin
ne Nepali
pcm Nigerian Pidgin
nso Northern Sotho
no Norwegian
nn Norwegian (Nynorsk)
oc Occitan
or Oriya
om Oromo
ps Pashto
pl Polish
pt-BR Portuguese (Brazil)
pt Portuguese (Portugal)
pa Punjabi
qu Quechua
ro Romanian
rm Romansh
nyn Runyakitara
ru Russian
sm Samoan
gd Scots Gaelic
sr Serbian
sh Serbo-Croatian
st Sesotho
tn Setswana
crs Seychellois Creole
sn Shona
sd Sindhi
si Sinhalese
sk Slovak
sl Slovenian
so Somali
es Spanish
es-419 Spanish (Latin American)
su Sundanese
sw Swahili
sv Swedish
tg Tajik
ta Tamil
tt Tatar
te Telugu
th Thai
ti Tigrinya
to Tonga
lua Tshiluba
tum Tumbuka
tr Turkish
tk Turkmen
tw Twi
ug Uighur
uk Ukrainian
ur Urdu
uz Uzbek
vi Vietnamese
cy Welsh
wo Wolof
xh Xhosa
yi Yiddish
yo Yoruba
zu Zulu

Original subtitles

Speaker: So far, most of what we've seen

were examples of numerical variables,

exchange rates, trading volume, security prices, and so on.

Often though, we must deal with categorical data.

In short, categorical data refers to groups or categories,

such as our cat dog examples,

but the machine learning algorithm

takes only numbers as values, doesn't it?

Therefore, the question when working with categorical data

is how to convert a CAT category into a number

so we can input it into a model or output it in the end.

Obviously, a different number should be associated

with each category, right?

Or better, a tensor, we are getting closer.

Imagine our shop has three products,

bread, yogurt, and muffins.

Now, how do we convert these categories to numbers?

A possible solution could be to enumerate them like this.

Bread equals one, yogurt equals two, muffins equals three.

Unfortunately, this implies there is some order.

It's like saying that a muffin is more than a yogurt,

which is more than bread.

Think about prices.

If we instead had three prices, $1, $2, and $3,

three times $1 is equal to $3.

Using the same logic, does it make any sense to you

that three times bread equals one muffin?

There is another level of ambiguity.

To get from bread to muffins,

we always go through yogurt.

Ultimately, what we have done is assume the data

has some order while it hasn't.

Typically that's an issue

when our data is divided into categories.

Think about the products in a shop,

about different car brands or about people.

So our question becomes how to encode such categories

in a way which will be useful

for a machine learning algorithm.

Two main ways are adopted.

The first one is called One-hot Encoding

and the other Binary Encoding.

We will see how to perform them in the next lesson.

Thanks for watching.

Can't find what you're looking for?
Get subtitles in any language from opensubtitles.com, and translate them here.