Warn default value of min_padding_length #2309
Conversation
f"which can cause some subtle bugs (more info see {url}). " | ||
"Strongly recommend to set a value, usually the maximum size " | ||
"of the convolutional layer size when using CnnEncoder.", | ||
FutureWarning) |
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 don't think FutureWarning
is right here - nothing is going to change in the future, it's just a warning that the user might have buggy code. Maybe the default of UserWarning
is correct here?
@@ -1,8 +1,6 @@ | |||
# pylint: disable=no-self-use,invalid-name | |||
from collections import defaultdict | |||
|
|||
import warnings | |||
|
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.
Thanks.
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.
Thanks, this looks good. There is one other important thing to fix, though: this adds a whole bunch of new warnings thrown in our test suite. Those need to be fixed or squelched before this can be merged. Also, in your other PR, UserWarning
and FutureWarning
should be treated as an error, just like DeprecationWarning
is.
Got it. I am gonna to fix it. |
Please have a look. I think related warnings are clear now. |
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.
LGTM, thanks!
Fixes #2287.