-
Notifications
You must be signed in to change notification settings - Fork 10
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
Fix Pylint warnings #83
Conversation
4d6a03c
to
9fba716
Compare
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.
We need to check if the argument training
can be removed. ( especially when calling model(x, training=True)
)
(this behavior might be dependent on the tf version)
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.
Maybe we should keep **kwargs
in the call when training
is not used?
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.
Great work, we need to discuss the previous comment, otherwise LGTM
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.
Same remark as Thibaut, once the issue (?) is solved LGTM
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.
Maybe we should keep **kwargs
in the call when training
is not used?
In unconstrained.py, the method is passed as private (starting with an underscore), as it is not expected to be used by any user. Docstring is then no required on private method.
Condition with "layer.threshold" and "layer.negative_slope" returns a np.bool and not a standard bool. Then 'np.bool_(True) is True' returns False So bool type is enforced. WIP model.py bool() because of np.bool_ is True...
9fba716
to
fa537c8
Compare
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've been looking at the code of official keras layers, the parameter training
seems not mandatory when the layer has the same behavior in train and test.
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.
fine for me
Pylint returns relevant warnings which are not raised by flake8, the linter used in our CI process. This PR aims at fixing some of these errors to improve deel-lip base code. Each commit of this PR deals with one message type, given in the commit message.
Descriptions for all Pylint messages can be found here.