Skip to content

Commit f8a8013

Browse files
committed
re:Invent 2020 features
1 parent ec1df06 commit f8a8013

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1166
-94
lines changed

.dictionary

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
str
2+
Args
3+
datetime
4+
smexperiments
5+
json
6+
ARN
7+
boolean
8+
boto
9+
DSL
10+
enum
11+
enums
12+
config
13+
Jupyter
14+
hyperparameter
15+
hyperparameters
16+
subexpression
17+
kwargs
18+
API
19+
UI
20+
runtime
21+
AutoML
22+
subfolders
23+
sagemaker

.header_template.txt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
3+
Licensed under the Apache License, Version 2.0 (the "License"). You
4+
may not use this file except in compliance with the License. A copy of
5+
the License is located at
6+
7+
http://aws.amazon.com/apache2.0/
8+
9+
or in the "license" file accompanying this file. This file is
10+
distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11+
ANY KIND, either express or implied. See the License for the specific
12+
language governing permissions and limitations under the License.

.pylintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# * https://github.com/google/seq2seq/blob/master/pylintrc
44
# * https://github.com/google/pygtrie/blob/master/.pylintrc
55

6-
[MASTER]
6+
[MAIN]
77

88
# Specify a configuration file.
99
#rcfile=
@@ -289,7 +289,7 @@ spelling-dict=
289289
spelling-ignore-words=
290290

291291
# A path to a file that contains private dictionary; one word per line.
292-
spelling-private-dict-file=
292+
spelling-private-dict-file=.dictionary
293293

294294
# Tells whether to store unknown words to indicated private dictionary in
295295
# --spelling-private-dict-file option instead of raising a message.

pytest.ini

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[pytest]
2+
addopts = --strict
3+
markers =
4+
docker: tests that require docker
5+
slow: marks tests as slow

setup.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of
55
# the License is located at
66
#
7-
# http://aws.amazon.com/apache2.0/
7+
# http://aws.amazon.com/apache2.0/
88
#
99
# or in the "license" file accompanying this file. This file is
1010
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
@@ -24,7 +24,7 @@ def read(fname):
2424

2525

2626
# Declare minimal set for installation
27-
required_packages = ["boto3>=1.12.8"]
27+
required_packages = ["boto3>=1.16.27"]
2828

2929
# Open readme with original (i.e. LF) newlines
3030
# to prevent the all too common "`long_description_content_type` missing"
@@ -68,6 +68,8 @@ def read(fname):
6868
"pytest-rerunfailures",
6969
"pytest-xdist",
7070
"docker",
71+
"pandas",
72+
"sklearn",
7173
]
7274
},
7375
)

src/__init__.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"). You
4+
# may not use this file except in compliance with the License. A copy of
5+
# the License is located at
6+
#
7+
# http://aws.amazon.com/apache2.0/
8+
#
9+
# or in the "license" file accompanying this file. This file is
10+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11+
# ANY KIND, either express or implied. See the License for the specific
12+
# language governing permissions and limitations under the License.
13+
"""Placeholder docstring."""

src/smexperiments/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/smexperiments/_base_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/smexperiments/_boto_functions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License"). You
44
# may not use this file except in compliance with the License. A copy of

src/smexperiments/_environment.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License"). You
4+
# may not use this file except in compliance with the License. A copy of
5+
# the License is located at
6+
#
7+
# http://aws.amazon.com/apache2.0/
8+
#
9+
# or in the "license" file accompanying this file. This file is
10+
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
11+
# ANY KIND, either express or implied. See the License for the specific
12+
# language governing permissions and limitations under the License.
113
import enum
214
import json
315
import os
@@ -21,7 +33,7 @@ class TrialComponentEnvironment(object):
2133
2234
Attributes:
2335
environment_type (EnvironmentType): The environment type.
24-
source_arn (str): The arn of the current job.
36+
source_arn (str): The ARN of the current job.
2537
"""
2638

2739
environment_type = None
@@ -36,7 +48,7 @@ def load(cls, training_job_arn_env=TRAINING_JOB_ARN_ENV, processing_job_config_p
3648
"""Loads source arn of current job from environment.
3749
3850
Args:
39-
training_job_arn_env (str): The environment key for training job arn.
51+
training_job_arn_env (str): The environment key for training job ARN.
4052
processing_job_config_path (str): The processing job config path.
4153
4254
Returns:

0 commit comments

Comments
 (0)