Bài kiểm tra có liên kết hướng dẫn · Cứng Cấp độ

Bài kiểm tra mã hóa mục tiêu

Kiểm tra rò rỉ mã hóa mục tiêu, khớp chéo và làm mịn bằng các phương tiện danh mục, ví dụ kho hiếm và xử lý danh mục không nhìn thấy.

Đường dẫn hướng dẫn liên quanMã hóa mục tiêu
Câu hỏi 1 của 8

Một danh mục xuất hiện trong một hàng đào tạo. Tại sao việc sử dụng mục tiêu không được làm mịn của hàng đó làm đầu vào của chính nó lại nguy hiểm?

Xem trước mọi câu hỏi8 câu hỏi

Câu trả lời và giải thích xuất hiện khi bạn làm bài kiểm tra.

  1. Một danh mục xuất hiện trong một hàng đào tạo. Tại sao việc sử dụng mục tiêu không được làm mịn của hàng đó làm đầu vào của chính nó lại nguy hiểm?
    • The encoding necessarily becomes identical to the global mean
    • The category frequency alone reveals the model's validation score
    • The encoding directly reveals that row's outcome
    • An unsmoothed single-row encoding is protected from leakage by its small sample size
  2. Làm thế nào một nếp gấp được giữ lại sẽ nhận được mã hóa mục tiêu trong quá trình khớp chéo?
    • From category summaries calculated using the other training folds
    • From summaries calculated using its own labels only
    • From summaries calculated using the final test labels
    • From summaries calculated using all training folds, including its own labels
  3. Sử dụng ví dụ làm mịn của hướng dẫn, giá trị nào thu được từ tổng mục tiêu là 30, số đếm là hai, giá trị trung bình toàn cầu là sáu và trọng số trước là bốn?
    • 15
    • 6
    • 54
    • 9
  4. Tại sao việc làm mịn lại kéo ước tính của một danh mục hiếm về ý nghĩa đào tạo toàn cầu?
    • To make every category's encoding identical
    • To reduce the influence of very small category samples
    • To remove the need for an evaluation split
    • To guarantee that category frequency cannot change
  5. Hoạt động TargetEncode nào của scikit-learn sử dụng tính năng khớp chéo nội bộ khi mã hóa dữ liệu đào tạo?
    • Calling transform on training rows using a mapping fitted on all those rows
    • Calling fit and then transform on the same training rows
    • Calling fit_transform on the training data
    • Calling fit once before dividing the training data into evaluation folds
  6. How should evaluation labels be used when constructing a target-encoding mapping?
    • They should not be used to learn the mapping being evaluated
    • They should define the mapping for rare categories only
    • They should determine the global mean but not category means
    • They should be added when the training score is low
  7. According to the guide, what does scikit-learn's TargetEncoder use for a category absent from its fitting data?
    • The smallest observed category value
    • The held-out outcome for that row
    • A newly calculated test-set average
    • The learned target mean
  8. A target-encoding dataset contains repeated entities and time-dependent outcomes. Which design needs attention beyond ordinary random cross-fitting?
    • Using random row folds because each row excludes its own label
    • Choosing splits that respect the intended group and time boundaries
    • Using stronger smoothing as a substitute for respecting time boundaries
    • Using an ordinary Pipeline as proof that its encoder's internal folds respect groups