Spaces:
Sleeping
Sleeping
edit dev notebook
Browse files- notebooks/dev.ipynb +6 -6
notebooks/dev.ipynb
CHANGED
@@ -45,7 +45,7 @@
|
|
45 |
"\n",
|
46 |
"actions = build_actions_tensor(size)\n",
|
47 |
"\n",
|
48 |
-
"cube = Cube
|
49 |
"print(cube)"
|
50 |
]
|
51 |
},
|
@@ -56,10 +56,10 @@
|
|
56 |
"metadata": {},
|
57 |
"outputs": [],
|
58 |
"source": [
|
59 |
-
"
|
60 |
-
"
|
61 |
-
"print(
|
62 |
-
"print(
|
63 |
]
|
64 |
},
|
65 |
{
|
@@ -82,7 +82,7 @@
|
|
82 |
"metadata": {},
|
83 |
"outputs": [],
|
84 |
"source": [
|
85 |
-
"(actions[0, 2, 0].type(torch.
|
86 |
]
|
87 |
}
|
88 |
],
|
|
|
45 |
"\n",
|
46 |
"actions = build_actions_tensor(size)\n",
|
47 |
"\n",
|
48 |
+
"cube = Cube([\"U\", \"L\", \"C\", \"R\", \"B\", \"D\"], size=size)\n",
|
49 |
"print(cube)"
|
50 |
]
|
51 |
},
|
|
|
56 |
"metadata": {},
|
57 |
"outputs": [],
|
58 |
"source": [
|
59 |
+
"cubis_cpu = copy.deepcopy(cube)\n",
|
60 |
+
"cubis_cpu.shuffle(2000, seed=0)\n",
|
61 |
+
"print(cubis_cpu)\n",
|
62 |
+
"print(cubis_cpu.history)"
|
63 |
]
|
64 |
},
|
65 |
{
|
|
|
82 |
"metadata": {},
|
83 |
"outputs": [],
|
84 |
"source": [
|
85 |
+
"(actions[0, 2, 0].type(torch.float32) @ actions[0, 1, 1].type(torch.float32)).type(torch.int8)"
|
86 |
]
|
87 |
}
|
88 |
],
|