JBAujogue commited on
Commit
cff7f74
·
1 Parent(s): 958b135

edit dev notebook

Browse files
Files changed (1) hide show
  1. 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.create([\"U\", \"L\", \"C\", \"R\", \"B\", \"D\"], size=size)\n",
49
  "print(cube)"
50
  ]
51
  },
@@ -56,10 +56,10 @@
56
  "metadata": {},
57
  "outputs": [],
58
  "source": [
59
- "cubis = copy.deepcopy(cube)\n",
60
- "cubis.shuffle(5000, seed=0)\n",
61
- "print(cubis)\n",
62
- "print(cubis.history)"
63
  ]
64
  },
65
  {
@@ -82,7 +82,7 @@
82
  "metadata": {},
83
  "outputs": [],
84
  "source": [
85
- "(actions[0, 2, 0].type(torch.FloatTensor) @ actions[0, 1, 1].type(torch.FloatTensor)).type(torch.int8)"
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
  ],