Skip to content

Commit c9a0cfc

Browse files
author
Ignacio Quintero
committed
Address feedback
1 parent ac4a330 commit c9a0cfc

File tree

4 files changed

+14
-85
lines changed

4 files changed

+14
-85
lines changed

.pylintrc

Lines changed: 3 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -30,30 +30,15 @@ disable=
3030
abstract-method,
3131
signature-differs
3232

33-
34-
3533
[REPORTS]
3634
# Set the output format. Available formats are text, parseable, colorized, msvs
3735
# (visual studio) and html
3836
output-format=colorized
3937

40-
4138
# Tells whether to display a full report or only the messages
4239
# CHANGE: No report.
4340
reports=no
44-
# Python expression which should return a note less than 10 (10 is the highest
45-
# note). You have access to the variables errors warning, statement which
46-
# respectively contain the number of errors / warnings messages and the total
47-
# number of statements analyzed. This is used by the global evaluation report
48-
# (RP0004).
49-
#evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
50-
# Add a comment according to your evaluation note. This is used by the global
51-
# evaluation report (RP0004).
52-
#comment=no
5341

54-
[MISCELLANEOUS]
55-
# List of note tags to take in consideration, separated by a comma.
56-
#notes=FIXME,XXX,TODO
5742
[FORMAT]
5843
# Maximum number of characters on a single line.
5944
max-line-length=100
@@ -64,19 +49,10 @@ max-line-length=100
6449
indent-string=' '
6550

6651
[TYPECHECK]
67-
# Tells whether missing members accessed in mixin class should be ignored. A
68-
# mixin class is detected if its name ends with "mixin" (case insensitive).
69-
#ignore-mixin-members=yes
52+
7053
# List of classes names for which member attributes should not be checked
7154
# (useful for classes with attributes dynamically set).
72-
ignored-classes=hashlib,numpy
73-
# When zope mode is activated, add a predefined set of Zope acquired attributes
74-
# to generated-members.
75-
#zope=no
76-
# List of members which are set dynamically and missed by pylint inference
77-
# system, and so shouldn't trigger E0201 when accessed.
78-
# CHANGE: Added 'AndRaise', 'AndReturn', 'InAnyOrder' and 'MultipleTimes' for pymox.
79-
# CHANGE: Added tempdir for @osutils.TempDirDecorator.
55+
ignored-classes=numpy
8056
generated-members=REQUEST,acl_users,aq_parent,AndRaise,AndReturn,InAnyOrder,MultipleTimes,tempdir
8157

8258
[BASIC]
@@ -92,16 +68,6 @@ bad-functions=
9268
exit,
9369
input,
9470
quit,
95-
# Regular expression which should only match correct module names
96-
#module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$
97-
# Regular expression which should only match correct module level names
98-
#const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$
99-
# Regular expression which should only match correct class names
100-
#class-rgx=[A-Z_][a-zA-Z0-9]+$
101-
# Regular expression which should only match correct function names
102-
#
103-
#
104-
10571

10672
[SIMILARITIES]
10773
# Minimum lines number of a similarity.
@@ -122,50 +88,7 @@ dummy-variables-rgx=_|unused_
12288
# you should avoid to define new builtins when possible.
12389
#additional-builtins=
12490

125-
[DESIGN]
126-
# Maximum number of arguments for function / method
127-
#max-args=5
128-
129-
# Argument names that match this expression will be ignored. Default to name
130-
# with leading underscore
131-
132-
#ignored-argument-names=_.*
133-
# Maximum number of locals for function / method body
134-
#max-locals=15
135-
136-
# Maximum number of return / yield for function / method body
137-
#max-returns=6
138-
139-
# Maximum number of branch for function / method body
140-
#max-branchs=12
141-
142-
# Maximum number of statements in function / method body
143-
#max-statements=50
144-
145-
# Maximum number of parents for a class (see R0901).
146-
max-parents=10
147-
148-
# Maximum number of attributes for a class (see R0902).
149-
#max-attributes=7
150-
151-
# Minimum number of public methods for a class (see R0903).
152-
#min-public-methods=2
153-
154-
# Maximum number of public methods for a class (see R0904).
155-
#max-public-methods=20
156-
157-
[IMPORTS]
158-
# Create a graph of every (i.e. internal and external) dependencies in the
159-
# given file (report RP0402 must not be disabled)
160-
#import-graph=
161-
# Create a graph of external dependencies in the given file (report RP0402 must
162-
# not be disabled)
163-
#ext-import-graph=
164-
# Create a graph of internal dependencies in the given file (report RP0402 must
165-
# not be disabled)
166-
#int-import-graph=
167-
16891
[LOGGING]
16992
# Apply logging string format checks to calls on these modules.
17093
logging-modules=
171-
logging
94+
logging

CHANGELOG.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ CHANGELOG
44

55
1.14.1dev
66
=========
7-
* bug-fix: rename MXNet argument from accelerators -> accelerator
7+
8+
* breaking-change: rename MXNet argument from distributions -> distribution
89

910
1.14.0
1011
======

src/sagemaker/estimator.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def attach(cls, training_job_name, sagemaker_session=None, model_channel_name='m
247247

248248
estimator = cls(sagemaker_session=sagemaker_session, **init_params)
249249
estimator.latest_training_job = _TrainingJob(sagemaker_session=sagemaker_session,
250-
training_job_name=init_params['base_job_name'])
250+
job_name=init_params['base_job_name'])
251251
estimator.latest_training_job.wait()
252252
return estimator
253253

@@ -410,9 +410,6 @@ def _ensure_latest_training_job(self, error_message='Estimator is not associated
410410

411411

412412
class _TrainingJob(_Job):
413-
def __init__(self, sagemaker_session, training_job_name): # pylint: disable=useless-super-delegation
414-
super(_TrainingJob, self).__init__(sagemaker_session, training_job_name)
415-
416413
@classmethod
417414
def start_new(cls, estimator, inputs):
418415
"""Create a new Amazon SageMaker training job from the estimator.

src/sagemaker/tuner.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ def as_tuning_range(self, name):
7070

7171
class ContinuousParameter(_ParameterRange):
7272
"""A class for representing hyperparameters that have a continuous range of possible values.
73+
74+
Args:
75+
min_value (float): The minimum value for the range.
76+
max_value (float): The maximum value for the range.
7377
"""
7478
__name__ = 'Continuous'
7579

@@ -121,6 +125,10 @@ def as_json_range(self, name):
121125

122126
class IntegerParameter(_ParameterRange):
123127
"""A class for representing hyperparameters that have an integer range of possible values.
128+
129+
Args:
130+
min_value (int): The minimum value for the range.
131+
max_value (int): The maximum value for the range.
124132
"""
125133
__name__ = 'Integer'
126134

0 commit comments

Comments
 (0)