pt_cube4_layout: The piece layout of a 4x4x4 cube

View source: R/piece_transformer.R

pt_cube4_layoutR Documentation

The piece layout of a 4x4x4 cube

Description

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.

Usage

pt_cube4_layout()

Details

Sticker numbers are 0-based, as the checkpoint's own layout table has them.

Value

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.

See Also

pt_transformer

Examples

lay <- pt_cube4_layout()
dim(lay$positions)
table(lay$types)

ggmlR documentation built on Oct. 23, 2026, 1:07 a.m.