Tiếp theoHướng dẫn tiếp theo
Đường ống kỹ thuật tính năng và phiên bản dữ liệu
kỹ thuật
HƯỚNG DẪN cơ bản
Feature engineering transforms raw measurements into inputs for a model.
Nghe hướng dẫn nàyAI thuật lại · ~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.
Phát hiện gian lận: lấy các tính năng như tần suất giao dịch, thời gian kể từ lần mua hàng cuối cùng và khoảng cách từ vị trí thông thường.
Dự báo nhu cầu: trích xuất ngày trong tuần, cờ ngày lễ và trung bình luân phiên từ dấu thời gian bán hàng thô.
Chấm điểm tín dụng: biến lịch sử thô thành các tỷ lệ như nợ trên thu nhập và số lần thanh toán trễ gần đây.
Khách hàng rời bỏ: tổng hợp hoạt động thành các tính năng như số lần đăng nhập mỗi tháng và số ngày kể từ lần tương tác cuối cùng.
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.
Bản tin miễn phí
Ba câu chuyện AI đã được xác minh vào mỗi buổi sáng các ngày trong tuần, được viết bằng tiếng Anh đơn giản. Miễn phí mãi mãi, không có quảng cáo.
Một email mỗi ngày trong tuần. Hủy đăng ký trong một cú nhấp chuột. Chúng tôi không bao giờ bán hoặc chia sẻ địa chỉ của bạn.
Tự kiểm tra
Phản hồi tức thì về mọi câu trả lời và chứng chỉ có thể chia sẻ với ID có thể xác minh sau khi bạn vượt qua khóa học.
Hỗ trợ giáo dục AI miễn phí. AI Understanding là tổ chức phi lợi nhuận 501(c)(3) — không bao giờ có quảng cáo, không có tường phí. Hãy quyên góp
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.
Kỹ thuật tính năng là việc tạo ra các đầu vào (tính năng) từ dữ liệu thô để mô hình có thể tìm thấy các mẫu hữu ích.
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.
Các biến phân loại thường được chuyển đổi thành số thông qua mã hóa một nóng hoặc mã hóa mục tiêu để các mô hình có thể sử dụng chúng.
Tiếp tục học hỏi
Đã chọn thêm hướng dẫn cho chủ đề này
Tiếp theoHướng dẫn tiếp theo
Đường ống kỹ thuật tính năng và phiên bản dữ liệu
kỹ thuật