Set up conditions for PINA problems. Covers data types (LabelTensor, Graph, PyG Data), time series conditions, binding equations to domains, and data-driven input→target mapping.
Standardmäßig ist der Prompt ausgewählt, der zuerst die Quelle prüft. Sie können zu einem direkten Befehl wechseln oder eine lokale Kopie herunterladen.
Quelldateien prüfen
Lesen Sie SKILL.md und alle von SkillsMP angezeigten Begleitdateien, bevor Sie sich für eine Installation entscheiden.
Mit Codex oder Claude installieren Kopieren Sie diesen Prompt, fügen Sie ihn in Codex, Claude oder einen anderen Assistant ein und lassen Sie die Skill-Seite prüfen und installieren.
Ein direkter Befehl überspringt den Prüf-Prompt. Prüfen Sie die Quelle, bevor Sie ihn ausführen.
Set up conditions for PINA problems. Covers data types (LabelTensor, Graph, PyG Data), time series conditions, binding equations to domains, and data-driven input→target mapping.
[!IMPORTANT]
Read RULES.md before using this skill — it applies to all skills.
This is a sub-skill of create-problem. Load the entry-point skill first.
Use this skill to define Condition objects that bind data, equations, or
time-series windows to the problem.
Step 1 — Determine the condition type
Three kinds of conditions exist in PINA:
Kind
When to use
Physics-on-domain
PDE/ODE residual on a sampled domain
Data-driven
Input→target mapping (supervised)
Time series
Rolling-window forecasting
Step 2 — Data types (data-driven only)
If the problem is data-driven, ask:
What data type are you using?
Available data types for Condition(input=..., target=...):
LabelTensor / torch.Tensor — standard tensor data (most common)
If the user has time series data, ask whether they want standard supervised
or time-series conditions:
from pina import Condition
# Standard supervised
Condition(input=ts_tensor, target=target_tensor)
# Time series (input is 3D: [batch, n_windows, features])
Condition(
input=ts_tensor,
n_windows=10,
unroll_length=5,
randomize=True,
)
# Graph time series
Condition(
input=graph_ts_data,
n_windows=10,
unroll_length=5,
key="some_key",
)
Parameters:
n_windows — number of rolling windows
unroll_length — prediction horizon per window
randomize — shuffle window order
key — key for graph time series data
Step 4 — Integrate with the problem class
Conditions become a class-level dict on the problem: