projects
/
picoclvr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[picoclvr.git]
/
main.py
diff --git
a/main.py
b/main.py
index
00e19ac
..
7197414
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-46,7
+46,7
@@
parser.add_argument("--max_percents_of_test_in_train", type=int, default=1)
########################################
########################################
-parser.add_argument("--nb_epochs", type=int, default=
None
)
+parser.add_argument("--nb_epochs", type=int, default=
25
)
parser.add_argument("--batch_size", type=int, default=None)
parser.add_argument("--batch_size", type=int, default=None)
@@
-99,6
+99,11
@@
parser.add_argument("--rpl_nb_runs", type=int, default=5)
parser.add_argument("--rpl_no_prog", action="store_true", default=False)
parser.add_argument("--rpl_no_prog", action="store_true", default=False)
+##############################
+# grid options
+
+parser.add_argument("--grid_size", type=int, default=6)
+
##############################
# picoclvr options
##############################
# picoclvr options
@@
-171,104
+176,91
@@
if args.result_dir is None:
######################################################################
default_task_args = {
######################################################################
default_task_args = {
+ "addition": {
+ "model": "352M",
+ "batch_size": 25,
+ "nb_train_samples": 250000,
+ "nb_test_samples": 10000,
+ },
"byheart": {
"model": "37M",
"byheart": {
"model": "37M",
- "nb_epochs": 2,
"batch_size": 25,
"nb_train_samples": 50000,
"nb_test_samples": 10000,
},
"batch_size": 25,
"nb_train_samples": 50000,
"nb_test_samples": 10000,
},
- "learnop": {
+ "expr": {
+ "model": "352M",
+ "batch_size": 25,
+ "nb_train_samples": 2500000,
+ "nb_test_samples": 10000,
+ },
+ "grid": {
"model": "37M",
"model": "37M",
- "nb_epochs": 15,
"batch_size": 25,
"batch_size": 25,
- "nb_train_samples": 50000,
+ "nb_train_samples":
2
50000,
"nb_test_samples": 10000,
},
"guessop": {
"model": "352M",
"nb_test_samples": 10000,
},
"guessop": {
"model": "352M",
- "nb_epochs": 5,
"batch_size": 25,
"nb_train_samples": 1000000,
"nb_test_samples": 10000,
},
"batch_size": 25,
"nb_train_samples": 1000000,
"nb_test_samples": 10000,
},
- "
twotargets
": {
+ "
learnop
": {
"model": "37M",
"model": "37M",
- "nb_epochs": 10,
"batch_size": 25,
"nb_train_samples": 50000,
"nb_test_samples": 10000,
},
"batch_size": 25,
"nb_train_samples": 50000,
"nb_test_samples": 10000,
},
- "addition": {
- "model": "352M",
- "nb_epochs": 50,
- "batch_size": 25,
- "nb_train_samples": 250000,
+ "maze": {
+ "model": "37M",
+ "batch_size": 5,
+ "nb_train_samples": 100000,
"nb_test_samples": 10000,
},
"picoclvr": {
"model": "37M",
"nb_test_samples": 10000,
},
"picoclvr": {
"model": "37M",
- "nb_epochs": 25,
"batch_size": 25,
"nb_train_samples": 250000,
"nb_test_samples": 10000,
},
"batch_size": 25,
"nb_train_samples": 250000,
"nb_test_samples": 10000,
},
- "mnist": {
- "model": "37M",
- "nb_epochs": 25,
- "batch_size": 10,
- "nb_train_samples": 60000,
- "nb_test_samples": 10000,
- },
- "maze": {
- "model": "37M",
- "nb_epochs": 25,
+ "rpl": {
+ "model": "352M",
"batch_size": 5,
"batch_size": 5,
- "nb_train_samples":
1
00000,
+ "nb_train_samples":
25
00000,
"nb_test_samples": 10000,
},
"snake": {
"model": "37M",
"nb_test_samples": 10000,
},
"snake": {
"model": "37M",
- "nb_epochs": 5,
"batch_size": 25,
"nb_train_samples": 250000,
"nb_test_samples": 10000,
},
"stack": {
"model": "37M",
"batch_size": 25,
"nb_train_samples": 250000,
"nb_test_samples": 10000,
},
"stack": {
"model": "37M",
- "nb_epochs": 15,
"batch_size": 25,
"nb_train_samples": 100000,
"nb_test_samples": 1000,
},
"batch_size": 25,
"nb_train_samples": 100000,
"nb_test_samples": 1000,
},
- "expr": {
- "model": "352M",
- "nb_epochs": 25,
+ "twotargets": {
+ "model": "37M",
"batch_size": 25,
"batch_size": 25,
- "nb_train_samples":
250
0000,
+ "nb_train_samples":
5
0000,
"nb_test_samples": 10000,
},
"nb_test_samples": 10000,
},
- "rpl": {
- "model": "122M",
- "
nb_epochs": 50
,
- "batch_size":
5
,
- "nb_train_samples":
100
0000,
+
+ "mnist": {
+ "
model": "37M"
,
+ "batch_size":
10
,
+ "nb_train_samples":
6
0000,
"nb_test_samples": 10000,
},
"world": {
"model": "37M",
"nb_test_samples": 10000,
},
"world": {
"model": "37M",
- "nb_epochs": 10,
"batch_size": 25,
"nb_train_samples": 25000,
"nb_test_samples": 1000,
},
"batch_size": 25,
"nb_train_samples": 25000,
"nb_test_samples": 1000,
},
- "grid": {
- "model": "37M",
- "nb_epochs": 25,
- "batch_size": 25,
- "nb_train_samples": 250000,
- "nb_test_samples": 10000,
- },
}
if args.task in default_task_args:
}
if args.task in default_task_args:
@@
-517,8
+509,7
@@
elif args.task == "grid":
nb_train_samples=args.nb_train_samples,
nb_test_samples=args.nb_test_samples,
batch_size=args.batch_size,
nb_train_samples=args.nb_train_samples,
nb_test_samples=args.nb_test_samples,
batch_size=args.batch_size,
- height=args.picoclvr_height,
- width=args.picoclvr_width,
+ size=args.grid_size,
logger=log_string,
device=device,
)
logger=log_string,
device=device,
)