Skip to content
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

Fix comments #93

Merged
merged 1 commit into from
Nov 27, 2017
Merged
Changes from all commits
Commits
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
5 changes: 1 addition & 4 deletions sagemaker-python-sdk/mxnet_gluon_sentiment/sentiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ def train(current_host, hosts, num_cpus, num_gpus, channel_input_dirs, model_dir
learning_rate = hyperparameters.get('learning_rate', 0.01)
log_interval = hyperparameters.get('log_interval', 1000)
embedding_size = hyperparameters.get('embedding_size', 50)
wd = hyperparameters.get('wd', 0.0001)

if len(hosts) == 1:
kvstore = 'device' if num_gpus > 0 else 'local'
Expand Down Expand Up @@ -100,9 +99,7 @@ def train(current_host, hosts, num_cpus, num_gpus, channel_input_dirs, model_dir


class BucketSentenceIter(DataIter):
"""Simple bucketing iterator for language model.
The label at each sequence step is the following token
in the sequence.
"""Simple bucketing iterator for text classification model.
Parameters
----------
sentences : list of list of int
Expand Down