Wombo-Combo / feature_schema.json
paniquex's picture
Initial release
a12f534
Raw History Blame Contribute Delete
20.9 kB
{
"format": "reyn.combo.features.v1",
"features": 186,
"rows": [
"attacker 0",
"attacker 1"
],
"base_observation": {
"batch_size": 2,
"self": "p0",
"target": "p1",
"schema": {
"p0": {
"percent": "int",
"facing": "bool",
"x": "float",
"y": "float",
"action": "int",
"invulnerable": "bool",
"character": "int",
"jumps_left": "int",
"shield_strength": "float",
"on_ground": "bool",
"controller": {
"main_stick": {
"x": "float",
"y": "float"
},
"c_stick": {
"x": "float",
"y": "float"
},
"shoulder": "float",
"buttons": {
"A": "bool",
"B": "bool",
"X": "bool",
"Y": "bool",
"Z": "bool",
"L": "bool",
"R": "bool",
"D_UP": "bool"
}
},
"nana": {
"exists": "bool",
"percent": "int",
"facing": "bool",
"x": "float",
"y": "float",
"action": "int",
"invulnerable": "bool",
"character": "int",
"jumps_left": "int",
"shield_strength": "float",
"on_ground": "bool"
}
},
"p1": {
"percent": "int",
"facing": "bool",
"x": "float",
"y": "float",
"action": "int",
"invulnerable": "bool",
"character": "int",
"jumps_left": "int",
"shield_strength": "float",
"on_ground": "bool",
"controller": {
"main_stick": {
"x": "float",
"y": "float"
},
"c_stick": {
"x": "float",
"y": "float"
},
"shoulder": "float",
"buttons": {
"A": "bool",
"B": "bool",
"X": "bool",
"Y": "bool",
"Z": "bool",
"L": "bool",
"R": "bool",
"D_UP": "bool"
}
},
"nana": {
"exists": "bool",
"percent": "int",
"facing": "bool",
"x": "float",
"y": "float",
"action": "int",
"invulnerable": "bool",
"character": "int",
"jumps_left": "int",
"shield_strength": "float",
"on_ground": "bool"
}
},
"stage": "int",
"randall": {
"x": "float",
"y": "float"
},
"fod_platforms": {
"left": "float",
"right": "float"
},
"items": {
"exists": "bool",
"type": "int",
"state": "int",
"x": "float",
"y": "float"
}
}
},
"input": "float32 [2,186], already divided by scale and clipped to [low,high] per group",
"categorical": {
"partner.action": [
39,
399
],
"last_move.mine": [
175,
27
],
"last_move.partner": [
176,
27
]
},
"groups": [
{
"name": "target.hitstun",
"width": 1,
"low": 0.0,
"high": 3.0,
"unit": "frames of hitstun left",
"kind": "value",
"scale": 60.0,
"start": 0,
"stop": 1
},
{
"name": "target.hitlag",
"width": 1,
"low": 0.0,
"high": 3.0,
"unit": "frames of hitlag left",
"kind": "value",
"scale": 20.0,
"start": 1,
"stop": 2
},
{
"name": "target.velocity",
"width": 5,
"low": -3.0,
"high": 3.0,
"unit": "own air x, own ground x, own y, knockback x, knockback y (units a frame)",
"kind": "value",
"scale": 5.0,
"start": 2,
"stop": 7
},
{
"name": "target.percent",
"width": 1,
"low": 0.0,
"high": 10.0,
"unit": "true percent (the base model's leaf stops at 300)",
"kind": "value",
"scale": 100.0,
"start": 7,
"stop": 8
},
{
"name": "target.action_frame",
"width": 1,
"low": -1.0,
"high": 5.0,
"unit": "frames into his action state",
"kind": "value",
"scale": 60.0,
"start": 8,
"stop": 9
},
{
"name": "target.stunned",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "stunned: the engine's hitstun flag",
"kind": "bit",
"scale": 1.0,
"start": 9,
"stop": 10
},
{
"name": "target.held",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "held: in a grab or a throw",
"kind": "bit",
"scale": 1.0,
"start": 10,
"stop": 11
},
{
"name": "target.locked",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "locked: he cannot act on the next frame",
"kind": "bit",
"scale": 1.0,
"start": 11,
"stop": 12
},
{
"name": "target.offset",
"width": 2,
"low": -5.0,
"high": 5.0,
"unit": "(target - me) x, y",
"kind": "value",
"scale": 50.0,
"start": 12,
"stop": 14
},
{
"name": "position.me",
"width": 2,
"low": -3.0,
"high": 3.0,
"unit": "x, y",
"kind": "value",
"scale": 100.0,
"start": 14,
"stop": 16
},
{
"name": "position.target",
"width": 2,
"low": -3.0,
"high": 3.0,
"unit": "x, y",
"kind": "value",
"scale": 100.0,
"start": 16,
"stop": 18
},
{
"name": "position.partner",
"width": 2,
"low": -3.0,
"high": 3.0,
"unit": "x, y",
"kind": "value",
"scale": 100.0,
"start": 18,
"stop": 20
},
{
"name": "position.edge",
"width": 3,
"low": -5.0,
"high": 5.0,
"unit": "ledge - |x| of me, target, partner; negative: beyond it",
"kind": "value",
"scale": 50.0,
"start": 20,
"stop": 23
},
{
"name": "position.target_off_stage",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "the target is beyond the ledge",
"kind": "bit",
"scale": 1.0,
"start": 23,
"stop": 24
},
{
"name": "partner.offset_me",
"width": 2,
"low": -5.0,
"high": 5.0,
"unit": "(partner - me) x, y",
"kind": "value",
"scale": 50.0,
"start": 24,
"stop": 26
},
{
"name": "partner.offset_target",
"width": 2,
"low": -5.0,
"high": 5.0,
"unit": "(target - partner) x, y",
"kind": "value",
"scale": 50.0,
"start": 26,
"stop": 28
},
{
"name": "partner.velocity",
"width": 5,
"low": -3.0,
"high": 3.0,
"unit": "own air x, own ground x, own y, knockback x, knockback y (units a frame)",
"kind": "value",
"scale": 5.0,
"start": 28,
"stop": 33
},
{
"name": "partner.facing",
"width": 1,
"low": -1.0,
"high": 1.0,
"unit": "+1 he looks right, -1 left",
"kind": "sign",
"scale": 1.0,
"start": 33,
"stop": 34
},
{
"name": "partner.on_ground",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "",
"kind": "bit",
"scale": 1.0,
"start": 34,
"stop": 35
},
{
"name": "partner.jumps",
"width": 1,
"low": 0.0,
"high": 3.0,
"unit": "air jumps left",
"kind": "value",
"scale": 2.0,
"start": 35,
"stop": 36
},
{
"name": "partner.hitlag",
"width": 1,
"low": 0.0,
"high": 3.0,
"unit": "frames of hitlag left",
"kind": "value",
"scale": 20.0,
"start": 36,
"stop": 37
},
{
"name": "partner.action_frame",
"width": 1,
"low": -1.0,
"high": 5.0,
"unit": "frames into his action state",
"kind": "value",
"scale": 60.0,
"start": 37,
"stop": 38
},
{
"name": "partner.percent",
"width": 1,
"low": 0.0,
"high": 10.0,
"unit": "percent",
"kind": "value",
"scale": 100.0,
"start": 38,
"stop": 39
},
{
"name": "partner.action",
"width": 1,
"low": 0.0,
"high": 398.0,
"unit": "his action state id (clamped like the base encoder's)",
"kind": "category",
"scale": 1.0,
"start": 39,
"stop": 40
},
{
"name": "combo.open",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "a true combo is open",
"kind": "bit",
"scale": 1.0,
"start": 40,
"stop": 41
},
{
"name": "combo.counted",
"width": 1,
"low": 0.0,
"high": 10.0,
"unit": "counted moves",
"kind": "value",
"scale": 10.0,
"start": 41,
"stop": 42
},
{
"name": "combo.moves",
"width": 1,
"low": 0.0,
"high": 10.0,
"unit": "linked moves, counted or not",
"kind": "value",
"scale": 10.0,
"start": 42,
"stop": 43
},
{
"name": "combo.hits",
"width": 1,
"low": 0.0,
"high": 10.0,
"unit": "hits",
"kind": "value",
"scale": 20.0,
"start": 43,
"stop": 44
},
{
"name": "combo.since_hit",
"width": 1,
"low": 0.0,
"high": 5.0,
"unit": "frames since the last hit",
"kind": "value",
"scale": 60.0,
"start": 44,
"stop": 45
},
{
"name": "combo.since_counted",
"width": 1,
"low": 0.0,
"high": 5.0,
"unit": "frames since the last counted move (credit ends at 1)",
"kind": "value",
"scale": 60.0,
"start": 45,
"stop": 46
},
{
"name": "combo.hit_last",
"width": 2,
"low": 0.0,
"high": 1.0,
"unit": "the last hit was mine, the partner's",
"kind": "bit",
"scale": 1.0,
"start": 46,
"stop": 48
},
{
"name": "combo.counted_last",
"width": 2,
"low": 0.0,
"high": 1.0,
"unit": "the last counted move was mine, the partner's",
"kind": "bit",
"scale": 1.0,
"start": 48,
"stop": 50
},
{
"name": "memory.mine",
"width": 25,
"low": 0.0,
"high": 1.0,
"unit": "the move is among my last distinct moves; one column per move of the ordered moves list",
"kind": "bit",
"scale": 1.0,
"start": 50,
"stop": 75
},
{
"name": "uses.mine",
"width": 25,
"low": 0.0,
"high": 1.0,
"unit": "how often it can still count for me / the cap; one column per move of the ordered moves list",
"kind": "value",
"scale": 1.0,
"start": 75,
"stop": 100
},
{
"name": "memory.partner",
"width": 25,
"low": 0.0,
"high": 1.0,
"unit": "the move is among the partner's last distinct moves; one column per move of the ordered moves list",
"kind": "bit",
"scale": 1.0,
"start": 100,
"stop": 125
},
{
"name": "uses.partner",
"width": 25,
"low": 0.0,
"high": 1.0,
"unit": "how often it can still count for him / the cap; one column per move of the ordered moves list",
"kind": "value",
"scale": 1.0,
"start": 125,
"stop": 150
},
{
"name": "pairs.shown",
"width": 25,
"low": 0.0,
"high": 1.0,
"unit": "landed now, the move would follow the move it already followed in this combo; one column per move of the ordered moves list",
"kind": "bit",
"scale": 1.0,
"start": 150,
"stop": 175
},
{
"name": "last_move.mine",
"width": 1,
"low": 0.0,
"high": 26.0,
"unit": "0 none, 1 + index in the ordered moves list, last: another move",
"kind": "category",
"scale": 1.0,
"start": 175,
"stop": 176
},
{
"name": "last_move.partner",
"width": 1,
"low": 0.0,
"high": 26.0,
"unit": "0 none, 1 + index in the ordered moves list, last: another move",
"kind": "category",
"scale": 1.0,
"start": 176,
"stop": 177
},
{
"name": "hold.active",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "the target is in a grab (the grab cap's window)",
"kind": "bit",
"scale": 1.0,
"start": 177,
"stop": 178
},
{
"name": "hold.grabber",
"width": 2,
"low": 0.0,
"high": 1.0,
"unit": "I hold him, the partner holds him",
"kind": "bit",
"scale": 1.0,
"start": 178,
"stop": 180
},
{
"name": "hold.pummel_spent",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "this hold's one counted pummel is used",
"kind": "bit",
"scale": 1.0,
"start": 180,
"stop": 181
},
{
"name": "hold.assist_spent",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "this hold's one counted hit by the grabber's partner is used",
"kind": "bit",
"scale": 1.0,
"start": 181,
"stop": 182
},
{
"name": "mode.locked",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "the target's percent is pinned",
"kind": "bit",
"scale": 1.0,
"start": 182,
"stop": 183
},
{
"name": "mode.team_attack",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "the attackers can hit each other",
"kind": "bit",
"scale": 1.0,
"start": 183,
"stop": 184
},
{
"name": "mode.escaper",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "the target is the scripted escaper, not the dummy",
"kind": "bit",
"scale": 1.0,
"start": 184,
"stop": 185
},
{
"name": "seat",
"width": 1,
"low": 0.0,
"high": 1.0,
"unit": "0 for seat 0, 1 for seat 1",
"kind": "bit",
"scale": 1.0,
"start": 185,
"stop": 186
}
],
"columns": [
"target.hitstun",
"target.hitlag",
"target.velocity[0]",
"target.velocity[1]",
"target.velocity[2]",
"target.velocity[3]",
"target.velocity[4]",
"target.percent",
"target.action_frame",
"target.stunned",
"target.held",
"target.locked",
"target.offset[0]",
"target.offset[1]",
"position.me[0]",
"position.me[1]",
"position.target[0]",
"position.target[1]",
"position.partner[0]",
"position.partner[1]",
"position.edge[0]",
"position.edge[1]",
"position.edge[2]",
"position.target_off_stage",
"partner.offset_me[0]",
"partner.offset_me[1]",
"partner.offset_target[0]",
"partner.offset_target[1]",
"partner.velocity[0]",
"partner.velocity[1]",
"partner.velocity[2]",
"partner.velocity[3]",
"partner.velocity[4]",
"partner.facing",
"partner.on_ground",
"partner.jumps",
"partner.hitlag",
"partner.action_frame",
"partner.percent",
"partner.action",
"combo.open",
"combo.counted",
"combo.moves",
"combo.hits",
"combo.since_hit",
"combo.since_counted",
"combo.hit_last[0]",
"combo.hit_last[1]",
"combo.counted_last[0]",
"combo.counted_last[1]",
"memory.mine[0]",
"memory.mine[1]",
"memory.mine[2]",
"memory.mine[3]",
"memory.mine[4]",
"memory.mine[5]",
"memory.mine[6]",
"memory.mine[7]",
"memory.mine[8]",
"memory.mine[9]",
"memory.mine[10]",
"memory.mine[11]",
"memory.mine[12]",
"memory.mine[13]",
"memory.mine[14]",
"memory.mine[15]",
"memory.mine[16]",
"memory.mine[17]",
"memory.mine[18]",
"memory.mine[19]",
"memory.mine[20]",
"memory.mine[21]",
"memory.mine[22]",
"memory.mine[23]",
"memory.mine[24]",
"uses.mine[0]",
"uses.mine[1]",
"uses.mine[2]",
"uses.mine[3]",
"uses.mine[4]",
"uses.mine[5]",
"uses.mine[6]",
"uses.mine[7]",
"uses.mine[8]",
"uses.mine[9]",
"uses.mine[10]",
"uses.mine[11]",
"uses.mine[12]",
"uses.mine[13]",
"uses.mine[14]",
"uses.mine[15]",
"uses.mine[16]",
"uses.mine[17]",
"uses.mine[18]",
"uses.mine[19]",
"uses.mine[20]",
"uses.mine[21]",
"uses.mine[22]",
"uses.mine[23]",
"uses.mine[24]",
"memory.partner[0]",
"memory.partner[1]",
"memory.partner[2]",
"memory.partner[3]",
"memory.partner[4]",
"memory.partner[5]",
"memory.partner[6]",
"memory.partner[7]",
"memory.partner[8]",
"memory.partner[9]",
"memory.partner[10]",
"memory.partner[11]",
"memory.partner[12]",
"memory.partner[13]",
"memory.partner[14]",
"memory.partner[15]",
"memory.partner[16]",
"memory.partner[17]",
"memory.partner[18]",
"memory.partner[19]",
"memory.partner[20]",
"memory.partner[21]",
"memory.partner[22]",
"memory.partner[23]",
"memory.partner[24]",
"uses.partner[0]",
"uses.partner[1]",
"uses.partner[2]",
"uses.partner[3]",
"uses.partner[4]",
"uses.partner[5]",
"uses.partner[6]",
"uses.partner[7]",
"uses.partner[8]",
"uses.partner[9]",
"uses.partner[10]",
"uses.partner[11]",
"uses.partner[12]",
"uses.partner[13]",
"uses.partner[14]",
"uses.partner[15]",
"uses.partner[16]",
"uses.partner[17]",
"uses.partner[18]",
"uses.partner[19]",
"uses.partner[20]",
"uses.partner[21]",
"uses.partner[22]",
"uses.partner[23]",
"uses.partner[24]",
"pairs.shown[0]",
"pairs.shown[1]",
"pairs.shown[2]",
"pairs.shown[3]",
"pairs.shown[4]",
"pairs.shown[5]",
"pairs.shown[6]",
"pairs.shown[7]",
"pairs.shown[8]",
"pairs.shown[9]",
"pairs.shown[10]",
"pairs.shown[11]",
"pairs.shown[12]",
"pairs.shown[13]",
"pairs.shown[14]",
"pairs.shown[15]",
"pairs.shown[16]",
"pairs.shown[17]",
"pairs.shown[18]",
"pairs.shown[19]",
"pairs.shown[20]",
"pairs.shown[21]",
"pairs.shown[22]",
"pairs.shown[23]",
"pairs.shown[24]",
"last_move.mine",
"last_move.partner",
"hold.active",
"hold.grabber[0]",
"hold.grabber[1]",
"hold.pummel_spent",
"hold.assist_spent",
"mode.locked",
"mode.team_attack",
"mode.escaper",
"seat"
],
"moves": [
{
"index": 0,
"id": 0,
"name": "unknown move"
},
{
"index": 1,
"id": 2,
"name": "jab"
},
{
"index": 2,
"id": 6,
"name": "dash attack"
},
{
"index": 3,
"id": 7,
"name": "forward tilt"
},
{
"index": 4,
"id": 8,
"name": "up tilt"
},
{
"index": 5,
"id": 9,
"name": "down tilt"
},
{
"index": 6,
"id": 10,
"name": "forward smash"
},
{
"index": 7,
"id": 11,
"name": "up smash"
},
{
"index": 8,
"id": 12,
"name": "down smash"
},
{
"index": 9,
"id": 13,
"name": "neutral air"
},
{
"index": 10,
"id": 14,
"name": "forward air"
},
{
"index": 11,
"id": 15,
"name": "back air"
},
{
"index": 12,
"id": 16,
"name": "up air"
},
{
"index": 13,
"id": 17,
"name": "down air"
},
{
"index": 14,
"id": 18,
"name": "laser"
},
{
"index": 15,
"id": 19,
"name": "illusion"
},
{
"index": 16,
"id": 20,
"name": "fire fox"
},
{
"index": 17,
"id": 21,
"name": "shine"
},
{
"index": 18,
"id": 50,
"name": "get-up attack"
},
{
"index": 19,
"id": 52,
"name": "pummel"
},
{
"index": 20,
"id": 53,
"name": "forward throw"
},
{
"index": 21,
"id": 54,
"name": "back throw"
},
{
"index": 22,
"id": 55,
"name": "up throw"
},
{
"index": 23,
"id": 56,
"name": "down throw"
},
{
"index": 24,
"id": 61,
"name": "ledge attack"
}
],
"last_move_encoding": "0: none;1+index: move in moves;26: move outside the ordered list",
"notes": [
"Both rows must include partner and scoring-state features; ordinary two-player observations alone are insufficient.",
"Vector orders are stated in each group's unit. Per-move vectors use the exact moves order above.",
"A state reset empties the selected row's cache and previous labels. A combo ending alone does not imply a reset."
]
}