Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(section): add information about mlr3inferr #855

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open

Conversation

sebffischer
Copy link
Member

No description provided.

@sebffischer sebffischer mentioned this pull request Jan 9, 2025
17 tasks
@@ -285,6 +285,31 @@ print(plt2)
```


### Confidence Intervals {#sec-resampling-ci}

Confidence intervals (CIs) provide a range of values within which we can be confident that it covers the true generalization error.
Copy link
Member

Choose a reason for hiding this comment

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

I would delete the first sentence. The next sentence basically says the same, but this one isn't quite accurate.


Confidence intervals (CIs) provide a range of values within which we can be confident that it covers the true generalization error.
Instead of relying solely on a single point estimate, CIs offer a measure of uncertainty around this estimate, allowing us to understand the reliability of our performance estimate.
While constructing CIs for the generalization error is challenging due to the complex nature of the inference problem, some methods have been shown to work well in practice @kuempelfischer2024ciforge.
Copy link
Member

Choose a reason for hiding this comment

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

I would add some more context here -- some learners/models can provide these directly (and often those calculations aren't all that complex), but if the learner doesn't support it, we have to do something else. Then describe in a sentence or two what those methods do.

rr$aggregate(msr_ci)
```

We can also use `msr("ci")`, which will automatically select the appropriate method based on the `Resampling` object, if an inference method is available for it.
Copy link
Member

Choose a reason for hiding this comment

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

How do I know what resamplings have inference methods?

@@ -576,6 +601,22 @@ plt = plt + ggplot2::scale_fill_manual(values = c("grey30", "grey50", "grey70"))
print(plt)
```

It is also possible to plot confidence intervals by setting the type of plot to `"ci"`.
Ignoring the multiple testing problem, @fig-benchmark-ci shows that the difference between the random forest and both other learners is statistically significant for the sonar task, whereas no final conclusion can be drawn for the german credit problem.
Copy link
Member

Choose a reason for hiding this comment

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

Can we not ignore the multiple testing problem? I would show results for a single learner here.

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.

2 participants