From d29f31ec447c5f541ec3585dd17a69d44b78f224 Mon Sep 17 00:00:00 2001 From: npapernot Date: Mon, 29 Jul 2019 22:33:30 +0000 Subject: [PATCH] more lint --- privacy/bolton/__init__.py | 8 ++++---- privacy/bolton/losses.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/privacy/bolton/__init__.py b/privacy/bolton/__init__.py index 1660208..5dc3940 100644 --- a/privacy/bolton/__init__.py +++ b/privacy/bolton/__init__.py @@ -23,7 +23,7 @@ if LooseVersion(tf.__version__) < LooseVersion("2.0.0"): if hasattr(sys, "skip_tf_privacy_import"): # Useful for standalone scripts. pass else: - from privacy.bolton.models import BoltonModel # pylint: disable=import-not-at-top - from privacy.bolton.optimizers import Bolton # pylint: disable=import-not-at-top - from privacy.bolton.losses import StrongConvexHuber # pylint: disable=import-not-at-top - from privacy.bolton.losses import StrongConvexBinaryCrossentropy # pylint: disable=import-not-at-top + from privacy.bolton.models import BoltonModel # pylint: disable=g-import-not-at-top + from privacy.bolton.optimizers import Bolton # pylint: disable=g-import-not-at-top + from privacy.bolton.losses import StrongConvexHuber # pylint: disable=g-import-not-at-top + from privacy.bolton.losses import StrongConvexBinaryCrossentropy # pylint: disable=g-import-not-at-top diff --git a/privacy/bolton/losses.py b/privacy/bolton/losses.py index d38c7cd..880b8c5 100644 --- a/privacy/bolton/losses.py +++ b/privacy/bolton/losses.py @@ -25,7 +25,7 @@ from tensorflow.python.keras.utils import losses_utils from tensorflow.python.platform import tf_logging as logging -class StrongConvexMixin: +class StrongConvexMixin: # pylint: disable=old-style-class """Strong Convex Mixin base class. Strong Convex Mixin base class for any loss function that will be used with