Skip to content

Commit 54c764c

Browse files
authored
Fix inaccurate linear learner hyper-parameter and bump version to 1.2.2 (#120)
* Fix inaccurate range and doc in linear learner hyper-parameters * bump to verison 1.2.2
1 parent 17d24a1 commit 54c764c

File tree

5 files changed

+18
-11
lines changed

5 files changed

+18
-11
lines changed

CHANGELOG.rst

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,36 @@
22
CHANGELOG
33
=========
44

5+
1.2.2
6+
=====
7+
8+
* bug-fix: Estimators: fix valid range of hyper-parameter 'loss' in linear learner
9+
510
1.2.1
6-
========
11+
=====
12+
713
* bug-fix: Change Local Mode to use a sagemaker-local docker network
814

915
1.2.0
10-
========
16+
=====
1117

1218
* feature: Add Support for Local Mode
1319
* feature: Estimators: add support for TensorFlow 1.6.0
1420
* feature: Estimators: add support for MXNet 1.1.0
1521
* feature: Frameworks: Use more idiomatic ECR repository naming scheme
1622

1723
1.1.3
18-
========
24+
=====
1925

2026
* bug-fix: TensorFlow: Display updated data correctly for TensorBoard launched from ``run_tensorboard_locally=True``
2127
* feature: Tests: create configurable ``sagemaker_session`` pytest fixture for all integration tests
22-
* bug-fix: AmazonEstimators: fix inaccurate hyper-parameters in kmeans, pca and linear learner
23-
* feature: Add new hyperparameters for linear learner.
28+
* bug-fix: Estimators: fix inaccurate hyper-parameters in kmeans, pca and linear learner
29+
* feature: Estimators: Add new hyperparameters for linear learner.
2430

2531
1.1.2
2632
=====
2733

28-
* bug-fix: AmazonEstimators: do not call create bucket if data location is provided
34+
* bug-fix: Estimators: do not call create bucket if data location is provided
2935

3036
1.1.1
3137
=====

README.rst

Lines changed: 1 addition & 1 deletion
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.3.tar.gz
50+
pip install dist/sagemaker-1.2.2.tar.gz
5151

5252
Supported Python versions
5353
~~~~~~~~~~~~~~~~~~~~~~~~~

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.3'
21+
version = '1.2.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.2.1",
14+
version="1.2.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/linear_learner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,14 @@ class LinearLearner(AmazonAlgorithmEstimatorBase):
4444
init_sigma = hp('init_sigma', gt(0), 'A float greater-than 0', float)
4545
init_bias = hp('init_bias', (), 'A number', float)
4646
optimizer = hp('optimizer', isin('sgd', 'adam', 'auto'), 'One of "sgd", "adam" or "auto', str)
47-
loss = hp('loss', isin('logistic', 'squared_loss', 'absolute_loss', 'auto'),
47+
loss = hp('loss', isin('logistic', 'squared_loss', 'absolute_loss', 'hinge_loss', 'eps_insensitive_squared_loss',
48+
'eps_insensitive_absolute_loss', 'quantile_loss', 'huber_loss', 'auto'),
4849
'"logistic", "squared_loss", "absolute_loss", "hinge_loss", "eps_insensitive_squared_loss", '
4950
'"eps_insensitive_absolute_loss", "quantile_loss", "huber_loss" or "auto"', str)
5051
wd = hp('wd', ge(0), 'A float greater-than or equal to 0', float)
5152
l1 = hp('l1', ge(0), 'A float greater-than or equal to 0', float)
5253
momentum = hp('momentum', (ge(0), lt(1)), 'A float in [0,1)', float)
53-
learning_rate = hp('learning_rate', gt(0), 'A float greater-than or equal to 0', float)
54+
learning_rate = hp('learning_rate', gt(0), 'A float greater-than 0', float)
5455
beta_1 = hp('beta_1', (ge(0), lt(1)), 'A float in [0,1)', float)
5556
beta_2 = hp('beta_2', (ge(0), lt(1)), 'A float in [0,1)', float)
5657
bias_lr_mult = hp('bias_lr_mult', gt(0), 'A float greater-than 0', float)

0 commit comments

Comments
 (0)