Прескочи на главни садржај
🔒 Режим прегледа. Првих петнаест Foundations лекција је бесплатно; ова је Pro. Покрените 7-дневни trial да откључате едитор, AI савете и остатак курса. Картица је обавезна, можете отказати у било ком тренутку у Dashboard.
Покрени 7-дневни trial →
⚡
← Kursevi
›
Data Science Applied
›
Модул 4 · Узрочно закључивање и А/Б тестирање
›
Циљно кодирање (и упозорење о цурењу)
quiz
52 / 104
🇷🇸
SR
▼
↗
Подели
⋯
Више
+100 XP
📋
Zadatak
📖
Teorija
🤖
AI Pomoć
Zadatak
📝 **Question:** Why does naive target encoding cause leakage? 📋 Изаберите тачан одговор. 💡 **Савет:** Поново прочитајте горњу теорију ако нисте сигурни.
🎯 Kviz
Pitanje
📝 **Question:** Why does naive target encoding cause leakage? 📋 Изаберите тачан одговор. 💡 **Савет:** Поново прочитајте горњу теорију ако нисте сигурни.
A
Because the encoded value is stored as a float64 column and the extra precision relative to the binary target lets the gradient-boosted tree split on noise, which is why naive encoders overfit the training set
B
Because the row's own target value contributes to the mean used to encode that row's feature, so the model effectively sees the answer through the feature — fixed by out-of-fold encoding or train-only fitting
C
Because rare categories with only one or two observations produce extreme means that anchor the encoder, and the model learns to memorise those rare-level rows instead of generalising across the dataset
D
Because pandas evaluates groupby().mean() with a non-deterministic row order, so the same category can map to slightly different encodings on each fit and the model picks up that artefact as signal
Odgovori
💬 Diskusija
Budi prvi — postavi pitanje ili podeli savet.
Prijavi se
da bi se pridružio diskusiji. Čitanje je besplatno.
Učitavanje diskusije…