Views
No views yet
pip install clearn-ai1import clearn
2import torch.nn as nn
3
4# Recreate the architecture
5model = nn.Sequential(nn.Linear(128, 256), nn.ReLU(), nn.Linear(256, 10))
6
7# Load the continual learning checkpoint
8cl_model = clearn.load("./checkpoint", model=model)
9
10# See retention across all tasks
11print(cl_model.diff())RetentionReport
├── fraud_q1: 100.0% retained
├── fraud_q2: 100.0% retained
├── fraud_q3: 100.0% retained
├── plasticity_score: 1.00
├── stability_score: 1.00
└── recommendation: "stable — no action needed"