แบบทดสอบที่เชื่อมโยงกับคำแนะนำ · ปานกลาง ระดับ

แบบทดสอบการถดถอยแบบ Lasso และ Elastic Net

ตรวจสอบว่าบทลงโทษ L1 และ L2 ส่งผลต่อค่าสัมประสิทธิ์อย่างไร เหตุใดการปรับขนาดและการตรวจสอบข้ามจึงมีความสำคัญ และตัวทำนายที่สัมพันธ์กันมีอิทธิพลต่อการเลือกอย่างไร

เส้นทางแนะนำที่เกี่ยวข้องLasso และ Elastic Net Regression
คำถาม 1 ของ 8

การฟิตแบบ lasso กำหนดค่าสัมประสิทธิ์เป็นศูนย์พอดีให้กับฟีเจอร์หนึ่ง สิ่งนั้นบ่งบอกถึงอะไรภายในโมเดลที่ฟิตแล้วนี้?

ดูตัวอย่างทุกคำถาม8 คำถาม

คำตอบและคำอธิบายจะปรากฏขึ้นเมื่อคุณทำแบบทดสอบ

  1. การฟิตแบบ lasso กำหนดค่าสัมประสิทธิ์เป็นศูนย์พอดีให้กับฟีเจอร์หนึ่ง สิ่งนั้นบ่งบอกถึงอะไรภายในโมเดลที่ฟิตแล้วนี้?
    • The feature is excluded from its linear prediction
    • The feature has no association in every reasonable model
    • The feature was removed during data preprocessing
    • The feature has no variation in the source population
  2. Which penalty combination defines elastic net in the guide?
    • L1 penalty with alpha denoting only the L1 share
    • L1 plus L2
    • L1 penalty only, with no L2 component
    • L2 penalty with L1 used only during feature scaling
  3. ตัวพยากรณ์ที่มีความเกี่ยวข้องกันสูงสองตัวสลับกันเป็นตัวที่ถูกเลือกไว้โดย lasso ในแต่ละการสุ่มตัวอย่างซ้ำ สิ่งนี้แสดงให้เห็นอะไร?
    • Standardization guarantees stable selection whenever predictors are correlated
    • Any change in selected features proves the test set leaked into cross-validation
    • Their selection can be unstable despite similar predictions
    • Lasso is guaranteed to assign identical coefficients across resamples
  4. เหตุใดจึงควรเรียนรู้การปรับสเกลภายในแต่ละโฟลด์การฝึกของการตรวจสอบความถูกต้องแบบไขว้ (cross-validation)?
    • Fit the scaler once on all rows, then split for cross-validation
    • Fit scaling parameters on validation rows only
    • Scale after selecting the final penalty using test data
    • To keep validation-fold information out of preprocessing
  5. ในข้อตกลงอัตราส่วนการผสมทั่วไป จุดปลายใดที่สอดคล้องกับ pure lasso?
    • The endpoint with all L2 penalty
    • The endpoint with all L1 penalty
    • The endpoint with no penalty
    • The setting that removes the intercept
  6. ชุดข้อมูลชุดหนึ่งมีตัวพยากรณ์ที่วัดเป็นดอลลาร์และเป็นเศษส่วนขนาดเล็ก เหตุใดการปรับสเกลจึงมีความสำคัญสำหรับการถดถอยที่มีการใส่ค่าปรับ?
    • Feature scaling cannot affect penalty behavior when units change
    • Rescaling the target is the only preprocessing relevant to coefficients
    • The penalty acts on coefficient magnitudes, which depend on feature units
    • Scaling after fitting leaves the selected coefficients unchanged
  7. When should a final test set be used if penalty settings are chosen by cross-validation?
    • Only if training error is zero
    • Repeatedly to choose each penalty value
    • Before fitting the preprocessing pipeline
    • After model selection, for a final evaluation
  8. Which statement about a zero lasso coefficient is appropriately cautious?
    • It is a result of this penalized fit, not universal proof of no relationship
    • It proves this predictor has no causal effect
    • It will remain zero across populations and penalty settings
    • It establishes that no nonlinear relationship exists