File size: 1,021 Bytes
f771f94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
---
title: Neural Process Pocket
emoji: 🌊
colorFrom: violet
colorTo: cyan
sdk: gradio
sdk_version: "6.5.1"
app_file: app.py
pinned: false
---

# Neural Process Pocket

Neural Process Pocket is a Conditional Neural Process trained across a
distribution of sine functions. Five unordered context observations are encoded
into a task representation; a probabilistic decoder predicts the mean and
standard deviation at arbitrary target coordinates.

Evaluation covers RMSE, Gaussian negative log likelihood, and empirical 90%
interval coverage on unseen functions. A fixed-kernel RBF Gaussian Process is the
non-neural few-shot control.

## Verified local result

The 12,866-parameter CNP reached 1.093 RMSE, 1.242 Gaussian NLL, and 88.76%
coverage for nominal 90% intervals across 500 unseen five-context-point tasks.
The fixed-kernel Gaussian Process reached 1.259 RMSE, 1.328 NLL, and 73.63%
coverage.

```bash
uv run python projects/neural-process-pocket/train.py
uv run pytest tests/test_neural_process_pocket.py
```