-
Notifications
You must be signed in to change notification settings - Fork 89
OTCP tutorial #613
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
base: main
Are you sure you want to change the base?
OTCP tutorial #613
Conversation
base draft tutorial otcp
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- please remove the unused
RandomForestRegressor
- for imports (either ours or external packages), let's not import the classes directly (e.g.,
from ott.tools.conformal import OTCP
), but let's use, e.g.from ott.tools import conformal
and laterotcp = conformal.OTCP(...)
. Same applies for thesklearn
packages.
Reply via ReviewNB
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's important we add link to the original dataset where it comes from. Furthermore, since we're downloading from the 2nd publication you mention, I'd mention only that one + add it as a citation in the bibliography and use {cite}
. dheur:25
Reply via ReviewNB
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to have display(df.head())
, you can just to df
on the last line when executing the notebook cell.
Reply via ReviewNB
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #34. x=confidence_regions[idx, :, 1].flatten(),
Don't think .flatten()
is needed.
Reply via ReviewNB
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #42. label="Contour of Confidence Region",
This can also be removed, it's not being shown.
Reply via ReviewNB
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line #3. y_candidates = jnp.array(Y_train[:500])
Maybe it would be more interesting here to provide a 2D grid instead of sampling the candidates from y_train
.
Reply via ReviewNB
@@ -0,0 +1,780 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
base draft tutorial otcp