Skip to content

Commit abdd431

Browse files
committed
Fix results save location
This addresses the issue of failing to write the genotype.json when the directory does not exist. This is one of the simpler solutions, and keeps things consistent with the defaul_model.txt of the advanced example.
1 parent 1406cc1 commit abdd431

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[Global_Params]
22
model_name = 'darts_uno'
33
data_url = 'http://ftp.mcs.anl.gov/pub/candle/public/benchmarks/Pilot1/uno/'
4-
savepath = '.'
4+
savepath = './results'
55
log_interval = 10
66
train_data = 'top_21_auc_1fold.uno.h5'
77
learning_rate = 0.025
@@ -10,6 +10,6 @@ momentum = 0.9
1010
weight_decay = 3e-4
1111
grad_clip = 5
1212
batch_size = 100
13-
epochs = 10
13+
epochs = 1
1414
seed = 13
1515

examples/darts/uno/results/.gitkeep

Whitespace-only changes.

examples/darts/uno/uno_example.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def run(params):
3333
args = candle.ArgumentStruct(**params)
3434

3535
args.cuda = torch.cuda.is_available()
36-
device = torch.device(f"cuda" if args.cuda else "cpu")
36+
device = torch.device(f"cuda" if args.cuda else f"cpu")
3737
darts.banner(device=device)
3838

3939
train_data = darts.Uno('./data', 'train', download=True)

0 commit comments

Comments
 (0)