MRL
Neuroencoder/epi-embedding on HuggingFace and caches locally. Pass token=... for explicit authentication.
MRL.from_pretrained
HuggingFace repo identifier.
Checkpoint filename in the repo.
Torch device. Defaults to CUDA if available.
**kwargs
Forwarded to
huggingface_hub.hf_hub_download (e.g. token="hf_...").MRL.from_checkpoint
model.embed
model.predict(ne.preprocess(eeg, ...), dim=dim).cpu().numpy().
Raw EEG
[C, T] continuous, or [N, C, T] pre-epoched.Sampling frequency in Hz.
10-20 names (required if
C != 8).One of
768, 384, 192, 48, 16.model.predict
[N, dim] L2-normalized embeddings on the model’s device. Runs in torch.no_grad(). Input is auto-moved to the model device.
[B, 8, 224, 224] from ne.preprocess.One of
768, 384, 192, 48, 16.model.forward
Attributes
ne.preprocess
[N, 8, 224, 224].
[C, T] continuous, or [N, C, T] pre-epoched.Sampling frequency in Hz.
10-20 electrode names.
Apply 1-100 Hz bandpass and 50/100 Hz notch.
Hop between successive 30s epochs. Default is 1.0s (continuous sliding window). Pass
30.0 for non-overlapping epochs — typical for classification with epoch-level labels.Torch device.
ne.explore
[N, D].Source-file label for each point. String applies to all, or one entry per point.
"umap", "tsne", or "pca".UMAP / KNN neighbors.
Scatter point size.
Seconds per embedding (used to compute the time axis).
Show right-side charts panel.
Show bottom data-table panel.
ne.serve
ne.explore. Blocks until Ctrl-C.
Bind address.
Server port.
Open the URL in the default browser.
ne.explore.)
ne.plot
[N, D]."time" (default), "cluster", or array of values.