ДалееСледующее руководство
Конвейеры разработки функций и управление версиями данных
Технический
РУКОВОДСТВО ПО ОСНОВАМ
Feature engineering transforms raw measurements into inputs for a model.
Прослушайте это руководствоОзвучено ИИ · ~3 min
Encoding, aggregation, and interaction features can change what the model can represent, with their usefulness assessed for the intended prediction task.
Raw records can contain numbers, categories, timestamps, and repeated observations that require a representation suitable for a chosen model. Feature engineering creates or transforms those inputs. Extracting a day from a timestamp, encoding a category, and calculating an activity count over a defined earlier period are different examples. The choices should reflect the prediction task and the measurements available when a prediction will be made. A feature derived from an outcome observed only afterward can leak information into evaluation. Fitting a transformation on held-out data can also contaminate an assessment: a scaler should learn its mean and standard deviation on training data, then reuse them on validation or test inputs. Encoding choices address another issue. One-hot encoding represents categories with indicator columns; target encoding uses outcome information and requires additional care to avoid leaking targets. Numeric scaling can matter for objectives or distances sensitive to feature magnitude, but it is not a universal guarantee that no input dominates every model. StandardScaler uses estimated mean and variance, which are sensitive to outliers. An extreme observation can influence those estimates, motivating inspection or comparison with other transformations. Aggregated features also need an explicit window: a count of events before prediction time differs from a count that includes future events. Interaction features represent combinations of inputs. A degree-two polynomial expansion can include the product x1 times x2, so the stated values three and four yield an interaction value of twelve. This creates an input representation; whether it improves predictions remains a separate evaluation question.
Обнаружение мошенничества: получение таких характеристик, как частота транзакций, время с момента последней покупки и расстояние от обычного местоположения.
Прогнозирование спроса: извлечение дней недели, флагов праздников и скользящих средних значений из необработанных временных меток продаж.
Кредитный скоринг: превращение необработанной истории в соотношения, такие как соотношение долга к доходу и подсчет недавних просроченных платежей.
Отток клиентов: агрегирование активности в такие функции, как количество входов в систему в месяц и дней с момента последнего взаимодействия.
Reusable transformations and pipeline tools can make feature definitions easier to inspect and apply consistently. Useful evaluations should record the time window, data split, fitted statistics, and representation used. Automated feature generation can supply candidates, but each candidate still needs an appropriate leakage check and performance assessment. Domain knowledge can suggest what to measure without proving that a proposed feature is predictive. Comparing transformations on the intended task is more informative than declaring manual or learned features universally superior across all tabular, image, or language problems.
Бесплатная рассылка
Три проверенных AI-истории каждое утро буднего дня, написанные простым английским. Бесплатно навсегда, без рекламы.
Одно электронное письмо каждый будний день. Отписаться в один клик. Мы никогда не продаем и не передаем ваш адрес.
Проверьте себя
Мгновенная обратная связь по каждому ответу и общий сертификат с проверяемым идентификатором после прохождения курса.
Поддержите бесплатное образование в области искусственного интеллекта. AI Understanding — это некоммерческая организация 501(c)(3). Никакой рекламы и платного доступа. Сделать пожертвование
Feature engineering transforms raw measurements into inputs for a model. Encoding, aggregation, and interaction features can change what the model can represent, with their usefulness assessed for the intended prediction task.
Разработка функций заключается в создании входных данных (функций) на основе необработанных данных, чтобы модель могла находить полезные шаблоны.
Engineering changes the available representation; a performance benefit needs evidence for the task.
The feature includes information unavailable when making the intended prediction, undermining a realistic evaluation.
Fitting preprocessing on training data avoids using held-out information to select the transformation.
Категориальные переменные обычно преобразуются в числа с помощью горячего или целевого кодирования, чтобы модели могли их использовать.
Продолжайте учиться
Другие руководства, выбранные по этой теме
ДалееСледующее руководство
Конвейеры разработки функций и управление версиями данных
Технический