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