Skip to content

Commit c389c72

Browse files
change: include additional docstyle improvements (#1889)
Co-authored-by: Ajay Karpur <[email protected]>
1 parent 2b812c8 commit c389c72

20 files changed

+196
-131
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,D205,D209,D212,D213,D214,D400,D401,D404,D406,D407,D411,D413,D414,D415,D417
3+
ignore = D104,D107,D202,D203,D205,D212,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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class FactorizationMachines(AmazonAlgorithmEstimatorBase):
3030
Factorization Machines combine the advantages of Support Vector Machines
3131
with factorization models. It is an extension of a linear model that is
3232
designed to capture interactions between features within high dimensional
33-
sparse datasets economically."""
33+
sparse datasets economically.
34+
"""
3435

3536
repo_name = "factorization-machines"
3637
repo_version = 1

src/sagemaker/amazon/ipinsights.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class IPInsights(AmazonAlgorithmEstimatorBase):
2929
"""An unsupervised learning algorithm that learns the usage patterns for IPv4 addresses.
3030
3131
It is designed to capture associations between IPv4 addresses and various entities, such
32-
as user IDs or account numbers."""
32+
as user IDs or account numbers.
33+
"""
3334

3435
repo_name = "ipinsights"
3536
repo_version = 1

src/sagemaker/amazon/kmeans.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class KMeans(AmazonAlgorithmEstimatorBase):
2929
3030
As the result of KMeans, members of a group are as similar as possible to one another and as
3131
different as possible from members of other groups. You define the attributes that you want
32-
the algorithm to use to determine similarity."""
32+
the algorithm to use to determine similarity.
33+
"""
3334

3435
repo_name = "kmeans"
3536
repo_version = 1

src/sagemaker/amazon/knn.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class KNN(AmazonAlgorithmEstimatorBase):
3030
For classification problems, the algorithm queries the k points that are closest to the sample
3131
point and returns the most frequently used label of their class as the predicted label. For
3232
regression problems, the algorithm queries the k closest points to the sample point and returns
33-
the average of their feature values as the predicted value."""
33+
the average of their feature values as the predicted value.
34+
"""
3435

3536
repo_name = "knn"
3637
repo_version = 1

src/sagemaker/amazon/lda.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ class LDA(AmazonAlgorithmEstimatorBase):
3030
LDA is most commonly used to discover a
3131
user-specified number of topics shared by documents within a text corpus. Here each
3232
observation is a document, the features are the presence (or occurrence count) of each
33-
word, and the categories are the topics."""
33+
word, and the categories are the topics.
34+
"""
3435

3536
repo_name = "lda"
3637
repo_version = 1

src/sagemaker/amazon/linear_learner.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class LinearLearner(AmazonAlgorithmEstimatorBase):
3232
For multiclass classification problems, the labels must be from 0 to num_classes - 1. For
3333
regression problems, y is a real number. The algorithm learns a linear function, or, for
3434
classification problems, a linear threshold function, and maps a vector x to an approximation
35-
of the label y."""
35+
of the label y.
36+
"""
3637

3738
repo_name = "linear-learner"
3839
repo_version = 1

src/sagemaker/amazon/ntm.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,12 @@
2525

2626

2727
class NTM(AmazonAlgorithmEstimatorBase):
28-
"""An unsupervised learning algorithm used to organize a corpus of documents into topics
28+
"""An unsupervised learning algorithm used to organize a corpus of documents into topics.
2929
3030
The resulting topics contain word groupings based on their statistical distribution.
3131
Documents that contain frequent occurrences of words such as "bike", "car", "train",
32-
"mileage", and "speed" are likely to share a topic on "transportation" for example."""
32+
"mileage", and "speed" are likely to share a topic on "transportation" for example.
33+
"""
3334

3435
repo_name = "ntm"
3536
repo_version = 1

src/sagemaker/amazon/object2vec.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525

2626
def _list_check_subset(valid_super_list):
27-
"""
27+
"""Provides a function to check validity of list subset.
28+
2829
Args:
2930
valid_super_list:
3031
"""
@@ -45,7 +46,8 @@ class Object2Vec(AmazonAlgorithmEstimatorBase):
4546
4647
It can learn low-dimensional dense embeddings of high-dimensional objects. The embeddings
4748
are learned in a way that preserves the semantics of the relationship between pairs of
48-
objects in the original space in the embedding space."""
49+
objects in the original space in the embedding space.
50+
"""
4951

5052
repo_name = "object2vec"
5153
repo_version = 1

src/sagemaker/amazon/pca.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ class PCA(AmazonAlgorithmEstimatorBase):
2828
"""An unsupervised machine learning algorithm to reduce feature dimensionality.
2929
3030
As a result, number of features within a dataset is reduced but the dataset still
31-
retain as much information as possible."""
31+
retain as much information as possible.
32+
"""
3233

3334
repo_name = "pca"
3435
repo_version = 1

0 commit comments

Comments
 (0)