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
35
36
37
38
39
40
//! # reve-rs — REVE EEG Foundation Model inference in Rust
//!
//! Pure-Rust inference for the REVE (Representation for EEG with Versatile
//! Embeddings) foundation model, built on [RLX](https://github.com/eugenehp/rlx)
//! (`rlx-cpu` by default; optional `rlx-metal`, `rlx-mlx`, …).
//!
//! REVE generalizes across diverse electrode configurations using 4D positional
//! encoding (x, y, z, t). It was pretrained on 60,000+ hours of EEG data from
//! 92 datasets spanning 25,000 subjects.
//!
//! ## Quick start
//!
//! ```rust,ignore
//! use reve_rs::ReveEncoder;
//! use rlx::Device;
//! use std::path::Path;
//!
//! let (mut model, _ms) = ReveEncoder::load(
//! Path::new("data/config.json"),
//! Path::new("data/model.safetensors"),
//! Device::Cpu,
//! )?;
//! let out = model.run_one(signal, positions_xyz, n_channels, n_times)?;
//! ```
compile_error!;
pub use ModelConfig;
pub use PositionBank;
pub use ;