Skip to content

Commit

Permalink
E302: Fix expected 2 blank lines, found 1
Browse files Browse the repository at this point in the history
  • Loading branch information
rht committed Dec 21, 2017
1 parent 88e4a3a commit 42a2c92
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions scripts/analyze_all_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
DATASETS = ['SE0714', 'Olympic', 'PsychExp', 'SS-Twitter', 'SS-Youtube',
'SCv1', 'SV2-GEN'] # 'SE1604' excluded due to Twitter's ToS


def get_results(dset):
METHOD = 'last'
RESULTS_DIR = 'results/'
Expand Down
3 changes: 2 additions & 1 deletion scripts/convert_all_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def format_pickle(dset, train_texts, val_texts, test_texts, train_labels, val_la
'val_labels': val_labels,
'test_labels': test_labels}


def convert_dataset(filepath, extend_with, vocab):
print('-- Generating {} '.format(filepath))
sys.stdout.flush()
Expand All @@ -55,7 +56,7 @@ def convert_dataset(filepath, extend_with, vocab):
data['test_ind']],
extend_with=extend_with)
pick = format_pickle(dset, tokenized[0], tokenized[1], tokenized[2],
dicts[0], dicts[1], dicts[2])
dicts[0], dicts[1], dicts[2])
with open(filepath, 'w') as f:
pickle.dump(pick, f)
cover = coverage(tokenized[2])
Expand Down
1 change: 1 addition & 0 deletions scripts/download_weights.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@

MB_FACTOR = float(1<<20)


def prompt():
while True:
valid = {
Expand Down
1 change: 1 addition & 0 deletions scripts/finetune_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
finetune)
from deepmoji.class_avg_finetuning import class_avg_finetune


def roundup(x):
return int(math.ceil(x / 10.0)) * 10

Expand Down

0 comments on commit 42a2c92

Please sign in to comment.