Skip to content

Skills evaluation#38

Open
Tellili wants to merge 14 commits into
mainfrom
feat/add-eval
Open

Skills evaluation#38
Tellili wants to merge 14 commits into
mainfrom
feat/add-eval

Conversation

@Tellili

@Tellili Tellili commented May 1, 2026

Copy link
Copy Markdown
Contributor

No description provided.

cafzal and others added 14 commits April 24, 2026 19:00
…ing)

Two-skill workflow mirroring the prescriptive pattern:
- rai-predictive-modeling: concepts, Snowflake loading, task relationships,
  graph edges, and PropertyTransformer features. Includes
  node-classification, link-prediction, and regression examples with
  generic concept names (no domain lock-in).
- rai-predictive-training: GNN constructor, fit, predictions, evaluation,
  register/load. Includes regression-specific sanity checks guidance
  (epoch count, R^2 < 0 interpretation, target-profiling).

Discovery integration (minimal additions on top of latest main):
- rai-discovery/SKILL.md: add rai-predictive-modeling to the Formulation
  skill list.
- rai-discovery/references/predictive.md: replace "Future" platform-status
  language with a two-modes description (pre-computed vs GNN training);
  cross-reference the new skills.
- rai-graph-analysis/SKILL.md: one-line cross-reference to
  rai-predictive-modeling for GNN graph construction.

Rebased from branch tip onto origin/main; prior 19 commits of pre-split
history dropped in favor of a single clean commit against latest main.
…rce skill

Pulls in content present in the rai-predictive source skill (PyRel repo)
that hadn't reached the rai-predictive-training target.

SKILL.md:
- Predictions section: add Pattern 1 (attribute bind) / Pattern 2
  (Python variable bind) explanation with [Duplicate relationship] warning
- Predictions section: add gnn.prediction_concept direct-access subsection
- Evaluation & Debugging: add gnn.dataset.metadata_dict, basic
  visualize_dataset() variant, and pydot note
- Common Pitfalls: add 7 missing rows (select fragments to train/validation,
  reassigning Source.predictions, model_name/version_name with spaces,
  duplicate (model_name, version_name), register_model on load-mode,
  fit on load-mode, load on fit-mode)

references/task-types-and-metrics.md:
- Restore note that @k is optional (target had reduced this to a single
  example, dropping the "omit for no top-k cutoff" guidance)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sync rai-predictive-training with source skill (gap fixes)
- Replace Beer.churn placeholder with generic Source/predictions in
  the new prediction_concept Directly snippet (matches Source/Target
  convention used elsewhere in the skill).
- Drop the wrong "Passing select(...) fragments to train=/validation="
  Pitfalls row: PyRel's GNN constructor accepts both Relationship and
  Fragment (verified in source: train: Optional[Relationship | Fragment
  | Chain] with explicit isinstance check). The "Alternative: select()
  fragments" section in task-relationships.md correctly advertises this.
- Drop duplicate "Source.predictions twice" Pitfalls row -- already
  covered by the Pattern 1 / Pattern 2 prose in the Predictions section.
- Compress the "Accessing prediction_concept Directly" subsection from
  a full H3 with code block to an inline note (one-line code).
- Compress the inspect-the-dataset code block: keep one
  visualize_dataset variant (with show_dtypes=True) instead of two.

SKILL.md: 517 -> 496 lines, back under the 500 cap.
The "Resume suspended GPU pools before runs" paragraph and the matching
"gnn.fit() hangs with no error" Pitfalls row were added based on a
single test report. The predictive team can't reproduce the behavior in
their own runs, so the guidance is removed pending root-cause clarity
to avoid steering users toward a workaround for an issue that may not
be universal.

Auto-suspend, multi-engine sizing, and GPU pairing notes (separate
concerns) are unchanged.
- rai-predictive-training/SKILL.md: add a "By user intent" bullet list
  in the Summary so an agent reading the skill can quickly route to the
  right sections based on goal (train+val, train+predict+downstream, or
  train+register+reload). Same Model carries through all three; only
  the gnn.* call sequence and which sections you exercise differ.
- rai-predictive-modeling/SKILL.md: add a "User-input boundary" callout
  at the top of Define and Populate Concepts -- the user-input boundary
  is the 3 prompts in auto-discovery.md (source FQNs, task FQNs,
  experiment artifact location); auto-derive everything else from
  INFORMATION_SCHEMA / DESCRIBE TABLE.
- rai-predictive-modeling/references/auto-discovery.md: rename the
  "What to Auto-Discover" section to "What to Auto-Discover (and what
  NOT to ask)" with explicit "Do not ask the user" framing -- column
  names, PKs, FKs, label/target columns, timestamp columns, task type,
  feature types are all auto-derivable; asking the user creates
  friction (often they don't know without checking the schema).

Both SKILL.md files stay under the 500-line cap (modeling 307,
training 497).
Replace blanket GRANT ALL ON SCHEMA with the specific grants the predictive reasoner needs: USAGE on the schema and CREATE EXPERIMENT.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@Tellili
Tellili requested a review from cafzal May 1, 2026 16:09

@cafzal cafzal left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for this contribution. Please discuss adding to https://github.com/RelationalAI/rai-agent-evals repo with @larf311 instead.

@cafzal
cafzal force-pushed the predictive_skills_structured branch 3 times, most recently from 931d82d to b556191 Compare May 4, 2026 22:53
Base automatically changed from predictive_skills_structured to main May 5, 2026 15:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants