Skip to content

Commit 8a69d47

Browse files
Merge branch 'master' into coverage_enforcing
2 parents 560c568 + 92d41d9 commit 8a69d47

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

CHANGELOG.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
CHANGELOG
33
=========
44

5+
1.1.2
6+
=======
7+
8+
* bug-fix: AmazonEstimators: do not call create bucket if data location is provided
9+
510
1.1.1
611
========
712

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ You can install from source by cloning this repository and issuing a pip install
4747

4848
git clone https://github.com/aws/sagemaker-python-sdk.git
4949
python setup.py sdist
50-
pip install dist/sagemaker-1.1.1.tar.gz
50+
pip install dist/sagemaker-1.1.2.tar.gz
5151

5252
Supported Python versions
5353
~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -1147,7 +1147,7 @@ You need to add them inside the hyperparameters dictionary in the
11471147
- ``eval_hooks (list)`` A list of `SessionRunHook` hooks to pass during evaluation.
11481148
- ``eval_delay_secs (int)`` Start evaluating after waiting for this many seconds.
11491149
- ``continuous_eval_throttle_secs (int)`` Do not re-evaluate unless the last evaluation was started at least this many seconds ago.
1150-
- ``min_eval_frequency (int)`` The minimum number of steps between evaluations. Of course, evaluation does not occur if no new snapshot is available, hence, this is the minimum. If 0, the evaluation will only happen after training. If None, defaults to default is 1000.
1150+
- ``min_eval_frequency (int)`` The minimum number of steps between evaluations. Of course, evaluation does not occur if no new snapshot is available, hence, this is the minimum. If 0, the evaluation will only happen after training. If None, defaults to 1000.
11511151
- ``delay_workers_by_global_step (bool)`` if ``True`` delays training workers based on global step instead of time.
11521152
- ``train_steps_per_iteration (int)`` Perform this many (integer) number of train steps for each training-evaluation iteration. With a small value, the model will be evaluated more frequently with more checkpoints saved.
11531153

doc/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def __getattr__(cls, name):
1818
'tensorflow.python.framework', 'tensorflow_serving', 'tensorflow_serving.apis']
1919
sys.modules.update((mod_name, Mock()) for mod_name in MOCK_MODULES)
2020

21-
version = '1.1.1'
21+
version = '1.1.2'
2222
project = u'sagemaker'
2323

2424
# Add any Sphinx extension module names here, as strings. They can be extensions

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def read(fname):
1111

1212

1313
setup(name="sagemaker",
14-
version="1.1.1",
14+
version="1.1.2",
1515
description="Open source library for training and deploying models on Amazon SageMaker.",
1616
packages=find_packages('src'),
1717
package_dir={'': 'src'},

src/sagemaker/amazon/amazon_estimator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def __init__(self, role, train_instance_count, train_instance_type, data_locatio
4242
super(AmazonAlgorithmEstimatorBase, self).__init__(role, train_instance_count, train_instance_type,
4343
**kwargs)
4444

45-
default_location = "s3://{}/sagemaker-record-sets/".format(self.sagemaker_session.default_bucket())
46-
data_location = data_location or default_location
45+
data_location = data_location or "s3://{}/sagemaker-record-sets/".format(
46+
self.sagemaker_session.default_bucket())
4747
self.data_location = data_location
4848

4949
def train_image(self):

tests/unit/test_amazon_estimator.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,13 @@ def test_data_location_validation(sagemaker_session):
8888
pca.data_location = "nots3://abcd/efgh"
8989

9090

91+
def test_data_location_does_not_call_default_bucket(sagemaker_session):
92+
data_location = "s3://my-bucket/path/"
93+
pca = PCA(num_components=2, sagemaker_session=sagemaker_session, data_location=data_location, **COMMON_ARGS)
94+
assert pca.data_location == data_location
95+
assert not sagemaker_session.default_bucket.called
96+
97+
9198
def test_pca_hyperparameters(sagemaker_session):
9299
pca = PCA(num_components=55, algorithm_mode='randomized',
93100
subtract_mean=True, extra_components=33, sagemaker_session=sagemaker_session,

0 commit comments

Comments
 (0)