View source: R/piece_transformer.R
| pt_cube4_layout | R Documentation |
Which stickers make up each piece, for a cube written as 96 stickers in face order. Pieces come in three kinds and the model is told which is which: 8 corners of three stickers, 24 wings of two, 24 centres of one. The short pieces are padded to three slots and the padding masked off.
pt_cube4_layout()
Sticker numbers are 0-based, as the checkpoint's own layout table has them.
A list with positions (a 56 x 3 integer matrix of
sticker indices), mask (56 x 3 logical, which slots are
real), types (length-56 integer, 0 corner / 1 wing / 2 centre),
state_size and num_classes.
pt_transformer
lay <- pt_cube4_layout()
dim(lay$positions)
table(lay$types)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.