File size: 4,465 Bytes
66d5616
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
---
license: mit
task_categories:
- text-generation
tags:
- iec-61131-3
- function-block-diagram
- plcopen
- taskweft
- editscore
configs:
- config_name: react
  default: true
  data_files:
  - split: train
    path: data/react/*.parquet
  - split: test
    path: test/data/react/*.parquet
  - split: evaluation
    path: evaluation/data/react/*.parquet
- config_name: react_root
  data_files:
  - split: train
    path: data/react_root/*.parquet
  - split: test
    path: test/data/react_root/*.parquet
  - split: evaluation
    path: evaluation/data/react_root/*.parquet
- config_name: react_candidates
  data_files:
  - split: train
    path: data/react_candidates/*.parquet
  - split: test
    path: test/data/react_candidates/*.parquet
  - split: evaluation
    path: evaluation/data/react_candidates/*.parquet
- config_name: react_scores
  data_files:
  - split: train
    path: data/react_scores/*.parquet
  - split: test
    path: test/data/react_scores/*.parquet
  - split: evaluation
    path: evaluation/data/react_scores/*.parquet
- config_name: react_candidates_invalid
  data_files:
  - split: train
    path: data/react_candidates_invalid/*.parquet
  - split: test
    path: test/data/react_candidates_invalid/*.parquet
  - split: evaluation
    path: evaluation/data/react_candidates_invalid/*.parquet
- config_name: react_scores_invalid
  data_files:
  - split: train
    path: data/react_scores_invalid/*.parquet
  - split: test
    path: test/data/react_scores_invalid/*.parquet
  - split: evaluation
    path: evaluation/data/react_scores_invalid/*.parquet
- config_name: react_invalid
  data_files:
  - split: train
    path: data/react_invalid/*.parquet
  - split: test
    path: test/data/react_invalid/*.parquet
  - split: evaluation
    path: evaluation/data/react_invalid/*.parquet
---
# taskweft-fbd-react-train

Intents paired with IEC 61131-3 Function Block Diagrams that carry them out, as an EditScore-shaped corpus.

## What it is for

Each intent has a root row, its matching candidate diagram, the split-out invalid ones, and a score row for each candidate.
Rank1 is the reference diagram. Rank3 compiles and does the wrong thing. Rank5 is a diagram the compiler refuses.
The scores come from the compiler's reference scan on constructed input traces.
Every row is built from a template and a seed, so the labels are true by construction and the corpus regenerates from the seeds.
The `train` split trains. The `test` split holds out every tenth seed of the same distribution and gates the trained model. The `evaluation` split holds out the `button_sequence_then_idle` family, and is never trained or tuned on.

The `react_root` config holds the intent, template, seed, frame, the block kinds and signatures the reference uses, and the input traces.
The `react_candidates` config holds the matching candidate: the one that parses, compiles, runs and matches the intent, with its compiler text form, PLCopen XML, plan and runner result and a sha256 of its source text. The `react_candidates_invalid` config holds the split-out rows, every candidate that was refused or ran to the wrong effect, with the same columns.
The `react_scores` config holds parse, compile, run and effect-match flags, step and wall-time measures, and the refusal. `react_scores_invalid` carries the split-out candidates' verdicts.
The default `react` config joins the root row with its matching candidate, each carrying its scores; `react_invalid` is the same view of the split-out candidates. The split is a partition: `react_candidates` and `react_candidates_invalid` together hold
every candidate the corpus was built with, and so do `react_scores` with
`react_scores_invalid` and `react` with `react_invalid`. A candidate is invalid when it was
refused or its effect did not match, read from `react_scores` and cross-checked against
the rank, so the two never disagree.
Every artifact is in the parquet. An artifact a family does not produce is an empty string, never a null.
A `manifest.json` sits at the repo root.

## Provenance

- Generator: `v-sekai-fabric/taskweft-fbd-teacher`.
- Compiler: `taskweft-fbd-compiler` at commit `d3279ec`.

## Use

```python
from datasets import load_dataset
ds = load_dataset("chibifire/taskweft-fbd-react-train", "react", split="train")
```

Or fetch the files with `hf download chibifire/taskweft-fbd-react-train --repo-type dataset`.

## Licence

MIT. See the [MIT License](https://opensource.org/licenses/MIT).