-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
remove comparison of identical variables #18036
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
Conversation
remove Variable defined multiple times in examples/linear_model/plot_poisson_regression_non_normal_loss.py |
The arff package is an external package and your changes should be contributed there: https://github.com/renatopp/liac-arff |
>>> np.nan != np.nan
True |
Thought, it would be better to use |
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.
Sorry closing, as mentioned above this change should be contributed to https://github.com/renatopp/liac-arff
@@ -77,7 +77,7 @@ | |||
.format(df.loc[df["ClaimNb"] == 0, "Exposure"].sum() / | |||
df["Exposure"].sum())) | |||
|
|||
fig, (ax0, ax1, ax2) = plt.subplots(ncols=3, figsize=(16, 4)) | |||
_, (ax0, ax1, ax2) = plt.subplots(ncols=3, figsize=(16, 4)) |
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.
Even here, I'm not sure it's a positive change.
fig, ax = plt.subplots(...)
is more readable than,
_, ax = ..
particularly in an example even if fig is not used.
Reference Issues/PRs
Fixes #12167
What does this implement/fix? Explain your changes.
remove comparison of identical variables in sklearn/externals/_arff.py
Any other comments?