projects
/
culture.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update.
[culture.git]
/
main.py
diff --git
a/main.py
b/main.py
index
efcc0dd
..
d1f82cf
100755
(executable)
--- a/
main.py
+++ b/
main.py
@@
-36,7
+36,7
@@
parser.add_argument(
"--task",
type=str,
default="sandbox",
"--task",
type=str,
default="sandbox",
- help="sandbox, picoclvr, mnist, maze, snake, stack, expr, world",
+ help="sandbox, picoclvr, mnist, maze, snake, stack, expr,
rpl,
world",
)
parser.add_argument("--log_filename", type=str, default="train.log", help=" ")
)
parser.add_argument("--log_filename", type=str, default="train.log", help=" ")
@@
-206,6
+206,12
@@
default_task_args = {
"nb_train_samples": 1000000,
"nb_test_samples": 10000,
},
"nb_train_samples": 1000000,
"nb_test_samples": 10000,
},
+ "rpl": {
+ "nb_epochs": 40,
+ "batch_size": 25,
+ "nb_train_samples": 100000,
+ "nb_test_samples": 10000,
+ },
"world": {
"nb_epochs": 10,
"batch_size": 25,
"world": {
"nb_epochs": 10,
"batch_size": 25,
@@
-419,6
+425,14
@@
elif args.task == "expr":
device=device,
)
device=device,
)
+elif args.task == "rpl":
+ task = tasks.RPL(
+ nb_train_samples=args.nb_train_samples,
+ nb_test_samples=args.nb_test_samples,
+ batch_size=args.batch_size,
+ device=device,
+ )
+
elif args.task == "world":
task = tasks.World(
nb_train_samples=args.nb_train_samples,
elif args.task == "world":
task = tasks.World(
nb_train_samples=args.nb_train_samples,