Skip to content
Back to skills

Self Supervised Learning

ASecurity

"Use DIG's graph self-supervised learning stack for GraphCL, GRACE,

  • 247 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 8, 2026
toolspythonbashnodeapi

Works with

  • api

Security analysis

A100/100

Pro scans all 5 files and shows the line behind each finding

Scanned September 8, 2026

npx -y skills add VectorSpaceLab/AREX-Skill --skill self-supervised-learning --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Self Supervised Learning?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Self Supervised Learning
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/vectorspacelab-self-supervised-learning/badge)](https://www.skillsdirectory.com/skills/vectorspacelab-self-supervised-learning)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: self-supervised-learning
description: "Use DIG's graph self-supervised learning stack for GraphCL, GRACE,
  InfoGraph, MVGRL, NodeMVGRL, pGRACE, contrastive objectives, and
  TUDataset/Planetoid-based SSL evaluation."
disable-model-invocation: true
metadata:
  disco-role: operating
license: GPL 3.0
---

# Self-Supervised Learning

Use this sub-skill for DIG workflows that pretrain graph encoders with contrastive or mutual-information objectives.

## Include

- `dig.sslgraph.method`: `Contrastive`, `GraphCL`, `GRACE`, `InfoGraph`, `MVGRL`, `NodeMVGRL`, `pGRACE`.
- `dig.sslgraph.method.contrastive.views_fn`: `NodeAttrMask`, `EdgePerturbation`, `Diffusion`, `DiffusionWithSample`, `UniformSample`, `RWSample`, `RandomView`, `Sequential`, `AdaEdgePerturbation`, `AdaNodeAttrMask`.
- `dig.sslgraph.method.contrastive.objectives`: `NCE_loss`, `JSE_loss`.
- `dig.sslgraph.dataset`: `TUDatasetExt`, `get_dataset`, `get_node_dataset`.
- `dig.sslgraph.evaluation`: `GraphSemisupervised`, `GraphUnsupervised`, `NodeUnsupervised`.
- `dig.sslgraph.utils`: `Encoder`, `setup_seed`.

## Exclude

- 2D/3D molecule generation: use the molecular or 3D sub-skills.
- Explainability, OOD, augmentation, fairness, or large-scale loaders: route to sibling sub-skills.

## Start Here

- Read `references/api-reference.md` for the constructor and objective names.
- Read `references/workflows.md` for graph-level and node-level SSL workflows.
- Read `references/troubleshooting.md` when augmentations, labels, or datasets are misconfigured.
- Run `scripts/sslgraph_smoke.py` for a tiny CPU-only pretraining smoke check.

## Core Workflows

- **Graph-level SSL**: use `get_dataset(..., task='semisupervised'|'unsupervised')`, build an `Encoder`, choose `GraphCL`/`GRACE`/`InfoGraph`/`MVGRL`, pretrain, and evaluate with `GraphUnsupervised` or `GraphSemisupervised`.
- **Node-level SSL**: use `get_node_dataset`, build node-level encoders, choose `GRACE` or `NodeMVGRL`, and evaluate with `NodeUnsupervised`.
- **Custom contrastive design**: compose view functions such as `NodeAttrMask`, `EdgePerturbation`, `Diffusion`, or `RandomView` and pass them into `Contrastive` directly.

## Quick Validation

```bash
python scripts/sslgraph_smoke.py --help
python scripts/sslgraph_smoke.py
```

Files in this skill

  • SKILL.md2.2 KB
  • references/api-reference.md1.7 KB
  • references/troubleshooting.md1005 B
  • references/workflows.md1.1 KB
  • scripts/sslgraph_smoke.py1.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.