MCPcopy Create free account
hub / github.com/Yasoz/DiffTraj / sample_batch

Function sample_batch

utils/helper.py:4–6  ·  view source on GitHub ↗
(size, noise=1.0)

Source from the content-addressed store, hash-verified

2from sklearn.datasets import make_swiss_roll
3
4def sample_batch(size, noise=1.0):
5 x, _= make_swiss_roll(size, noise=noise)
6 return x[:, [0, 2]] / 10.0
7
8def extract(input, t, x):
9 shape = x.shape

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected