Skip to content

Commit 0f33dbc

Browse files
committed
Fix badly formatted printf's
1 parent 7b2b1a6 commit 0f33dbc

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Pilot3/P3B7/data.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ def _download(self):
200200
self._preprocess(raw_data)
201201

202202
def _preprocess(self, raw_data):
203-
print(f'{"Preprocessing data..."}')
203+
print("Preprocessing data...")
204204
self._make_processed_dirs()
205205

206206
with open(raw_data, 'rb') as f:
@@ -215,7 +215,7 @@ def _preprocess(self, raw_data):
215215
self._save_split('train', corpus.train, y_train)
216216
self._save_split('valid', corpus.valid, y_valid)
217217
self._save_vocab(corpus.vocab)
218-
print(f'{"Done!"}')
218+
print("Done!")
219219

220220
def _save_split(self, split, data, target):
221221
target = self._create_target(target)

Pilot3/P3B7/p3b7_baseline_pytorch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def evaluate(model, loader, device):
131131

132132
accmeter.update_accuracy()
133133

134-
print(f'{"Validation accuracy:"}')
134+
print("Validation accuracy:")
135135
accmeter.print_task_accuracies()
136136

137137
loss /= len(loader.dataset)
@@ -149,7 +149,7 @@ def save_dataframe(metrics, filename, args):
149149
def run(args):
150150
args = candle.ArgumentStruct(**args)
151151
args.cuda = torch.cuda.is_available()
152-
args.device = torch.device(f'{"cuda"}' if args.cuda else "cpu")
152+
args.device = torch.device("cuda" if args.cuda else "cpu")
153153

154154
train_data, valid_data = get_synthetic_data(args)
155155

0 commit comments

Comments
 (0)