Skip to content

Upd base #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 35 commits into from
Jul 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
70c95b6
change: remove TODO comment on import-error Pylint check (#918)
knakad Jul 10, 2019
7acfb31
prepare release v1.33.0
Jul 10, 2019
1705b13
update development version to v1.33.1.dev0
Jul 10, 2019
b1f95fb
change: enable unidiomatic-typecheck pylint check (#921)
knakad Jul 10, 2019
0cf5902
change: enable no-else-return and no-else-raise pylint checks (#925)
knakad Jul 11, 2019
100d906
change: fix list serialization for 1P algos (#922)
Jul 11, 2019
6061a8b
change: enable simplifiable-if-expression pylint checks (#926)
knakad Jul 11, 2019
fb309bc
feature: deal with credentials for Git support for GitHub (#914)
GaryTu1020 Jul 11, 2019
2cf69b2
feature: Git integration for CodeCommit (#927)
GaryTu1020 Jul 12, 2019
01ed740
change: enable inconsistent-return-statements Pylint check (#930)
knakad Jul 15, 2019
1b4c2b1
change: enable consider-merging-isinstance Pylint check (#932)
knakad Jul 15, 2019
798299a
change: enable attribute-defined-outside-init Pylint check (#933)
knakad Jul 15, 2019
b6b3cf6
change: enable wrong-import-order Pylint check (#935)
knakad Jul 15, 2019
6adb29b
change: enable ungrouped-imports Pylint check (#936)
knakad Jul 16, 2019
3734314
change: fix attach for 1P algorithm estimators (#931)
Jul 16, 2019
1badf76
change: set num_processes_per_host only if provided by user (#928)
Jul 16, 2019
aab1675
change: enable consider-using-in Pylint check (#938)
knakad Jul 16, 2019
39adbbc
change: enable too-many-public-methods Pylint check (#939)
knakad Jul 16, 2019
36bbf8a
change: enable chained-comparison Pylint check (#940)
knakad Jul 16, 2019
d039e37
change: enable consider-using-ternary Pylint check (#942)
knakad Jul 17, 2019
91c5529
change: modify TODO on disabled Pylint check (#943)
knakad Jul 17, 2019
8871a14
prepare release v1.34.0
Jul 18, 2019
87d455a
update development version to v1.34.1.dev0
Jul 18, 2019
40f1f98
change: add MXNet 1.4.1 support (#886)
laurenyu Jul 18, 2019
356283e
change: format and add missing docstring placeholders (#945)
knakad Jul 18, 2019
2dfe7d3
change: allow serving script to be defined for deploy() and transform…
laurenyu Jul 19, 2019
910d9f8
change: update PyTorch version (#947)
chuyang-deng Jul 19, 2019
946adeb
change: improve documentation of some functions (#864)
knaresh Jul 19, 2019
af4b3e3
doc: update using_tensorflow topic (#946)
eslesar-aws Jul 19, 2019
7b9ad5c
fix: update TensorFlow script mode dependency list (#869)
icywang86rui Jul 22, 2019
d3c5205
change: improving Chainer integ tests (#872)
mvsusp Jul 22, 2019
4ebb088
change: enable line-too-long Pylint check (#948)
knakad Jul 22, 2019
d3892fb
doc: add instructions for setting up Cloud9 environment. (#949)
knakad Jul 22, 2019
6545cf8
prepare release v1.34.1
Jul 23, 2019
dfa9644
update development version to v1.34.2.dev0
Jul 23, 2019
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions .pylintrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,11 @@ profile=no
# paths.
ignore=CVS,tensorflow_serving

# Add files or directories matching the regex patterns to the blacklist. The
# regex matches against base names, not paths.
# Add files or directories matching the regex patterns to the blacklist.
# The regex matches against base names, not paths.
# Regex patterns can be comma(and newline)-separated
ignore-patterns=
.*_pb2.py, # Ignore all files generated by the protocol buffer compiler

# Pickle collected data for later comparisons.
persistent=yes
Expand Down Expand Up @@ -81,30 +83,14 @@ disable=
too-many-arguments,
invalid-name,
too-many-instance-attributes,
line-too-long, # We let Flake8 take care of this # TODO: Fix these and stop relying on flake8
len-as-condition, # TODO: Enable this check once pylint 2.4.0 is released and consumed due to the fix in https://github.com/PyCQA/pylint/issues/2684
import-error, # TODO: Fix import errors
attribute-defined-outside-init, # TODO: Fix scope
import-error, # Since we run Pylint before any of our builds in tox, this will always fail
protected-access, # TODO: Fix access
abstract-method, # TODO: Fix abstract methods
unidiomatic-typecheck, # TODO: Fix typechecks
wrong-import-order, # TODO: Fix import order
no-else-return, # TODO: Remove unnecessary elses
useless-object-inheritance, # TODO: Remove unnecessary imports
useless-object-inheritance, # TODO: Enable this check and fix code once Python 2 is no longer supported.
cyclic-import, # TODO: Resolve cyclic imports
no-else-raise, # TODO: Remove unnecessary elses
no-self-use, # TODO: Convert methods to functions where appropriate
inconsistent-return-statements, # TODO: Make returns consistent
consider-merging-isinstance, # TODO: Merge isinstance where appropriate
consider-using-in, # TODO: Consider merging comparisons with "in"
simplifiable-if-expression, # TODO: Simplify expressions
too-many-public-methods, # TODO: Resolve
ungrouped-imports, # TODO: Group imports
consider-using-ternary, # TODO: Consider ternary expressions
chained-comparison, # TODO: Simplify chained comparison between operands
simplifiable-if-statement, # TODO: Simplify ifs
too-many-branches, # TODO: Simplify or ignore as appropriate
missing-docstring, # TODO: Fix missing docstring

[REPORTS]
# Set the output format. Available formats are text, parseable, colorized, msvs
Expand Down Expand Up @@ -241,8 +227,9 @@ max-nested-blocks=5
# Maximum number of characters on a single line.
max-line-length=100

# Regexp for a line that is allowed to be longer than the limit.
ignore-long-lines=^\s*(# )?<?https?://\S+>?$
# Regexp for a line that is allowed to be longer than the limit. Can only be a single regex.
# The following matches any semblance of a url of any sort.
ignore-long-lines=^\s*.*(# )?(<?https?:\/\/)?[-a-zA-Z0-9@:%%._\+~#=><]{1,256}\.[a-zA-Z0-9()]{1,6}\b[-a-zA-Z0-9()@:%%_\+.~#?&\/\/=<>]*\S*>?$

# Allow the body of an if to be on the same line as the test if there is no
# else.
Expand Down
62 changes: 62 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,67 @@
# Changelog

## v1.34.1 (2019-07-23)

### Bug fixes and other changes

* enable line-too-long Pylint check
* improving Chainer integ tests
* update TensorFlow script mode dependency list
* improve documentation of some functions
* update PyTorch version
* allow serving script to be defined for deploy() and transformer() with frameworks
* format and add missing docstring placeholders
* add MXNet 1.4.1 support

### Documentation changes

* add instructions for setting up Cloud9 environment.
* update using_tensorflow topic

## v1.34.0 (2019-07-18)

### Features

* Git integration for CodeCommit
* deal with credentials for Git support for GitHub

### Bug fixes and other changes

* modify TODO on disabled Pylint check
* enable consider-using-ternary Pylint check
* enable chained-comparison Pylint check
* enable too-many-public-methods Pylint check
* enable consider-using-in Pylint check
* set num_processes_per_host only if provided by user
* fix attach for 1P algorithm estimators
* enable ungrouped-imports Pylint check
* enable wrong-import-order Pylint check
* enable attribute-defined-outside-init Pylint check
* enable consider-merging-isinstance Pylint check
* enable inconsistent-return-statements Pylint check
* enable simplifiable-if-expression pylint checks
* fix list serialization for 1P algos
* enable no-else-return and no-else-raise pylint checks
* enable unidiomatic-typecheck pylint check

## v1.33.0 (2019-07-10)

### Features

* git support for hosting models
* allow custom model name during deploy

### Bug fixes and other changes

* remove TODO comment on import-error Pylint check
* enable wrong-import-position pylint check
* Revert "change: enable wrong-import-position pylint check (#907)"
* enable signature-differs pylint check
* enable wrong-import-position pylint check
* enable logging-not-lazy pylint check
* reset default output path in Transformer.transform
* Add ap-northeast-1 to Neo algorithms region map

## v1.32.2 (2019-07-08)

### Bug fixes and other changes
Expand Down
17 changes: 17 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,23 @@ reported the issue. Please try to include as much information as you can. Detail
* Any modifications you've made relevant to the bug
* A description of your environment or deployment

## Setting up your development environment [optional, but recommended]

* Set up the Cloud9 environment:
* Instance type: You'll need at least 4 GB of RAM to avoid running into memory issues. We recommend at least a t3.medium to run the unit tests. Larger hosts will reduce the chance of encountering resource limits.
* Follow the instructions at [Creating a Cloud9 EC2 Environment](https://docs.aws.amazon.com/cloud9/latest/user-guide/create-environment.html#create-environment-main) to set up a Cloud9 EC2 environment
* Expand the storage of the EC2 instance from 10GB to 20GB
* Because you'll need a minimum of 11GB of disk storage on the EC2 instance to run the package's unit tests, you'll need to expand your EC2 volume size. We recommend at least 20GB. A larger volume will reduce the chance of encountering resource limits.
* Follow the instructions at [Modifying an EBS Volume Using Elastic Volumes (Console)](https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/requesting-ebs-volume-modifications.html#modify-ebs-volume) to increase the EBS volume size associated with the newly created EC2 instance.
* Wait 5-10min for the new EBS volume increase to take effect.
* Allow EC2 to claim the additional space by stopping and then starting your EC2 host.
* Create a fork of this package on GitHub. You should end up with a fork at `https://github.com/<username>/sagemaker-python-sdk`
* Follow the instructions at [Fork a repo](https://help.github.com/en/articles/fork-a-repo) to fork a GitHub repository.
* In the Cloud9 UI, pull down this package by clicking on "Clone from Github" or running the following command in the Cloud9 terminal: `git clone https://github.com/<username>/sagemaker-python-sdk` where <username> is your github username.
* Install tox using `pip install tox`
* Install coverage using `pip install .[test]`
* cd into the sagemaker-python-sdk package: `cd sagemaker-python-sdk` or `cd /environment/sagemaker-python-sdk`
* Run the following tox command and verify that all unit tests pass: `tox tests/unit`

## Contributing via Pull Requests
Contributions via pull requests are much appreciated.
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,9 @@ MXNet SageMaker Estimators

By using MXNet SageMaker Estimators, you can train and host MXNet models on Amazon SageMaker.

Supported versions of MXNet: ``0.12.1``, ``1.0.0``, ``1.1.0``, ``1.2.1``, ``1.3.0``, ``1.4.0``.
Supported versions of MXNet: ``0.12.1``, ``1.0.0``, ``1.1.0``, ``1.2.1``, ``1.3.0``, ``1.4.0``, ``1.4.1``.

Supported versions of MXNet for Elastic Inference: ``1.3.0``, ``1.4.0``.
Supported versions of MXNet for Elastic Inference: ``1.3.0``, ``1.4.0``, ``1.4.1``.

We recommend that you use the latest supported version, because that's where we focus most of our development efforts.

Expand All @@ -191,7 +191,7 @@ By using TensorFlow SageMaker Estimators, you can train and host TensorFlow mode

Supported versions of TensorFlow: ``1.4.1``, ``1.5.0``, ``1.6.0``, ``1.7.0``, ``1.8.0``, ``1.9.0``, ``1.10.0``, ``1.11.0``, ``1.12.0``, ``1.13.1``.

Supported versions of TensorFlow for Elastic Inference: ``1.11.0``, ``1.12.0``.
Supported versions of TensorFlow for Elastic Inference: ``1.11.0``, ``1.12.0``, ``1.13.0``

We recommend that you use the latest supported version, because that's where we focus most of our development efforts.

Expand Down Expand Up @@ -221,7 +221,7 @@ PyTorch SageMaker Estimators

With PyTorch SageMaker Estimators, you can train and host PyTorch models on Amazon SageMaker.

Supported versions of PyTorch: ``0.4.0``, ``1.0.0``.
Supported versions of PyTorch: ``0.4.0``, ``1.0.0``, ``1.1.0``.

We recommend that you use the latest supported version, because that's where we focus most of our development efforts.

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.32.3.dev0
1.34.2.dev0
9 changes: 9 additions & 0 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
# distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
# ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.
"""Placeholder docstring"""
from __future__ import absolute_import

import os
Expand All @@ -22,6 +23,10 @@
class Mock(MagicMock):
@classmethod
def __getattr__(cls, name):
"""
Args:
name:
"""
if name == "__version__":
return "1.4.0"
else:
Expand Down Expand Up @@ -55,6 +60,7 @@ def __getattr__(cls, name):
"sphinx.ext.coverage",
"sphinx.ext.autosummary",
"sphinx.ext.napoleon",
"sphinx.ext.autosectionlabel",
]

# Add any paths that contain templates here, relative to this directory.
Expand Down Expand Up @@ -90,3 +96,6 @@ def __getattr__(cls, name):

# autosummary
autosummary_generate = True

# autosectionlabel
autosectionlabel_prefix_document = True
Loading