Skip to content

Fix tune_ml_models() for IV-type PLIV - #439

Open
AsadGudzevic94 wants to merge 1 commit into
DoubleML:mainfrom
AsadGudzevic94:fix-pliv-ivtype-tune-ml-models
Open

AsadGudzevic94 wants to merge 1 commit into
DoubleML:mainfrom
AsadGudzevic94:fix-pliv-ivtype-tune-ml-models

Conversation

@AsadGudzevic94

Copy link
Copy Markdown
Contributor

Description

Passes the target d to cross_val_predict for ml_r in the initial estimate of the IV-type score.

New test in test_pliv_tune_ml_models.py that tunes an IV-type PLIV with one instrument (the existing test uses three instruments, which takes the other branch). It fails on main.

Reference to Issues or PRs

Fixes #434

PR Checklist

  • The title of the pull request summarizes the changes made.
  • The PR contains a detailed description of all changes and additions.
  • References to related issues or PRs are added.
  • The code passes all (unit) tests.
  • Enhancements or new feature are equipped with unit tests.
  • The changes adhere to the PEP8 standards.

@JanTeichertKluge
JanTeichertKluge self-requested a review November 2, 2026 16:52

@JanTeichertKluge JanTeichertKluge left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine, thank you for the fix!
Best
Jan

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

tune_ml_models() fails for DoubleMLPLIV with score="IV-type"

2 participants