Skip to content

Commit 1fdefe0

Browse files
authored
doc: remove D212 from ignore to comply with PEP257 standards (#2065)
1 parent 01c6ee3 commit 1fdefe0

21 files changed

+42
-73
lines changed

.pydocstylerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[pydocstyle]
22
inherit = false
3-
ignore = D104,D107,D202,D203,D212,D213,D214,D400,D401,D404,D406,D407,D411,D413,D414,D415,D417
3+
ignore = D104,D107,D202,D203,D213,D214,D400,D401,D404,D406,D407,D411,D413,D414,D415,D417
44
match = (?!record_pb2).*\.py

src/sagemaker/amazon/factorization_machines.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -290,8 +290,7 @@ def __init__(
290290
serializer=RecordSerializer(),
291291
deserializer=RecordDeserializer(),
292292
):
293-
"""
294-
Initialization for FactorizationMachinesPredictor class.
293+
"""Initialization for FactorizationMachinesPredictor class.
295294
296295
Args:
297296
endpoint_name (str): Name of the Amazon SageMaker endpoint to which
@@ -321,8 +320,7 @@ class FactorizationMachinesModel(Model):
321320
"""
322321

323322
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
324-
"""
325-
Initialization for FactorizationMachinesModel class.
323+
"""Initialization for FactorizationMachinesModel class.
326324
327325
Args:
328326
model_data (str): The S3 location of a SageMaker model data

src/sagemaker/amazon/ipinsights.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ def __init__(
193193
serializer=CSVSerializer(),
194194
deserializer=JSONDeserializer(),
195195
):
196-
"""
197-
Args:
196+
"""Creates object to be used to get dot product of entity nad IP address.
198197
198+
Args:
199199
endpoint_name (str): Name of the Amazon SageMaker endpoint to which
200200
requests are sent.
201201
sagemaker_session (sagemaker.session.Session): A SageMaker Session
@@ -223,9 +223,9 @@ class IPInsightsModel(Model):
223223
"""
224224

225225
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
226-
"""
227-
Args:
226+
"""Creates object to get insights on S3 model data.
228227
228+
Args:
229229
model_data (str): The S3 location of a SageMaker model data
230230
``.tar.gz`` file.
231231
role (str): An AWS IAM role (either name or full ARN). The Amazon

src/sagemaker/amazon/kmeans.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,7 @@ def __init__(
217217
serializer=RecordSerializer(),
218218
deserializer=RecordDeserializer(),
219219
):
220-
"""
221-
Initialization for KMeansPredictor class.
220+
"""Initialization for KMeansPredictor class.
222221
223222
Args:
224223
endpoint_name (str): Name of the Amazon SageMaker endpoint to which
@@ -248,8 +247,7 @@ class KMeansModel(Model):
248247
"""
249248

250249
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
251-
"""
252-
Initialization for KMeansModel class.
250+
"""Initialization for KMeansModel class.
253251
254252
Args:
255253
model_data (str): The S3 location of a SageMaker model data

src/sagemaker/amazon/knn.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ def __init__(
209209
serializer=RecordSerializer(),
210210
deserializer=RecordDeserializer(),
211211
):
212-
"""
213-
Function to initialize KNNPredictor.
212+
"""Function to initialize KNNPredictor.
214213
215214
Args:
216215
endpoint_name (str): Name of the Amazon SageMaker endpoint to which
@@ -240,8 +239,7 @@ class KNNModel(Model):
240239
"""
241240

242241
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
243-
"""
244-
Function to initialize KNNModel.
242+
"""Function to initialize KNNModel.
245243
246244
Args:
247245
model_data (str): The S3 location of a SageMaker model data

src/sagemaker/amazon/lda.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ def __init__(
5353
tol=None,
5454
**kwargs
5555
):
56-
"""
57-
Latent Dirichlet Allocation (LDA) is :class:`Estimator` used for unsupervised learning.
56+
"""Latent Dirichlet Allocation (LDA) is :class:`Estimator` used for unsupervised learning.
5857
5958
Amazon SageMaker Latent Dirichlet Allocation is an unsupervised
6059
learning algorithm that attempts to describe a set of observations as a
@@ -192,9 +191,9 @@ def __init__(
192191
serializer=RecordSerializer(),
193192
deserializer=RecordDeserializer(),
194193
):
195-
"""
196-
Args:
194+
"""Creates "LDAPredictor" object to be used for transforming input vectors.
197195
196+
Args:
198197
endpoint_name (str): Name of the Amazon SageMaker endpoint to which
199198
requests are sent.
200199
sagemaker_session (sagemaker.session.Session): A SageMaker Session
@@ -222,8 +221,7 @@ class LDAModel(Model):
222221
"""
223222

224223
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
225-
"""
226-
Initialization for LDAModel class.
224+
"""Initialization for LDAModel class.
227225
228226
Args:
229227
model_data (str): The S3 location of a SageMaker model data

src/sagemaker/amazon/linear_learner.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -452,8 +452,7 @@ def __init__(
452452
serializer=RecordSerializer(),
453453
deserializer=RecordDeserializer(),
454454
):
455-
"""
456-
Initialization for LinearLearnerPredictor.
455+
"""Initialization for LinearLearnerPredictor.
457456
458457
Args:
459458
endpoint_name (str): Name of the Amazon SageMaker endpoint to which
@@ -483,8 +482,7 @@ class LinearLearnerModel(Model):
483482
"""
484483

485484
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
486-
"""
487-
Initialization for LinearLearnerModel.
485+
"""Initialization for LinearLearnerModel.
488486
489487
Args:
490488
model_data (str): The S3 location of a SageMaker model data

src/sagemaker/amazon/ntm.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,8 +220,7 @@ def __init__(
220220
serializer=RecordSerializer(),
221221
deserializer=RecordDeserializer(),
222222
):
223-
"""
224-
Initialization for NTMPredictor class.
223+
"""Initialization for NTMPredictor class.
225224
226225
Args:
227226
endpoint_name (str): Name of the Amazon SageMaker endpoint to which
@@ -251,8 +250,7 @@ class NTMModel(Model):
251250
"""
252251

253252
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
254-
"""
255-
Initialization for NTMModel class.
253+
"""Initialization for NTMModel class.
256254
257255
Args:
258256
model_data (str): The S3 location of a SageMaker model data

src/sagemaker/amazon/object2vec.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,8 +345,7 @@ class Object2VecModel(Model):
345345
"""
346346

347347
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
348-
"""
349-
Initialization for Object2VecModel class.
348+
"""Initialization for Object2VecModel class.
350349
351350
Args:
352351
model_data (str): The S3 location of a SageMaker model data

src/sagemaker/amazon/pca.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,7 @@ def __init__(
208208
serializer=RecordSerializer(),
209209
deserializer=RecordDeserializer(),
210210
):
211-
"""
212-
Initialization for PCAPredictor.
211+
"""Initialization for PCAPredictor.
213212
214213
Args:
215214
endpoint_name (str): Name of the Amazon SageMaker endpoint to which
@@ -239,8 +238,7 @@ class PCAModel(Model):
239238
"""
240239

241240
def __init__(self, model_data, role, sagemaker_session=None, **kwargs):
242-
"""
243-
Initialization for PCAModel.
241+
"""Initialization for PCAModel.
244242
245243
Args:
246244
model_data (str): The S3 location of a SageMaker model data

0 commit comments

Comments
 (0)