Skip to content
sleepKIT
Reference
HELIA

Python API catalog

Search classes and functions by name or module. Documentation is generated from the Python source without importing training dependencies.

216 of 216 APIs

Search Python API
NameDescription
analyzeExclusively write local diagnostics, retaining series IDs only in the file.
AnnotatedDatasetSmall source adapter; callers retain control of training and orchestration.
ApneaTaskSleep Apnea Task
Artifact`dataclass`
assignHash-rank all groups, independent of input ordering, labels, and model scores.
auditInspect local source labels without opening files for writing or training a model.
auditCount candidate coverage using unchanged originals bound to trusted local evidence.
authenticate_nsrrAuthenticate the [NSRR](https://sleepdata.org) download token.
BasicCodecVersion of this codec.
build_candidatesBuild candidates from one series' raw CSV groups and independently verified clock.
build_model
build_modelBuild the Keras model while using heliaEDGE's registered PatchLayer2D.
build_model
CandidateLabels`dataclass`
Check`dataclass`
class_metricsFixed two-class descriptive metrics; no probability interpretation.
ClientInfo
ClientManager
CmidssDatasetCMIDSS dataset
CmidssSleepStageCMIDSS sleep stages
Codec
CodecError
collect_calibrationCollect frozen-normalizer model inputs from native train contexts.
command
command
compareRun one declared descriptive comparison; output is exclusively local evidence.
compare_labels
compute_apnea_efficiencyCompute apnea efficiency.
compute_apnea_hypopnea_indexCompute apnea hypopnea index (AHI).
compute_sleep_apnea_durationsCompute sleep apnea durations
compute_sleep_efficiencyCompute sleep efficiency.
compute_sleep_stage_durationsCompute sleep stage durations
compute_total_sleep_timeCompute total sleep time (# samples).
Config`dataclass`
Config`dataclass`
Config`dataclass`
ConnectionClosed
context_countsCount native complete contexts without compacting invalid or unknown frames.
contextsYield complete nonoverlapping model contexts, never bridge dropped frames.
Crc16
create_augmentation_layerCreate an augmentation layer from a configuration
create_augmentation_pipelineCreate an augmentation pipeline from a list of augmentation configurations.
create_data_pipelineCreate a data pipeline.
create_data_pipelineCreate a data pipeline.
create_referenceRecord deterministic synthetic I/O. This establishes no task accuracy.
create_splitSplit an explicit cohort deterministically, before reading features or labels.
dataBlock
dataBlock
dataset
DatasetDataset serves as a base class to download and provide unified access to datasets.
dataType
dataType
declare_goldenFreeze prospective identities/configuration without training or reading labels.
demoSleep Apnea Demo
demoRun sleep stage classification demo.
DetectionRuntimeOne context in, float32 logits out; never applies a softmax.
download_bundleDownload an explicitly selected revision and validate its artifact inventory.
download_fileDownload file from supplied url to destination streaming.
download_nsrrRecursively download files from [NSRR](https://sleepdata.org).
download_nsrr_fileDownload a file from `url` to `dst` and verify `checksum`.
environment
evaluate
evaluateEvaluate one split with the shared unweighted classification accumulator.
evaluateWrite an aggregate report only after evaluation and input revalidation.
evaluatePooled scored-epoch metrics; unlike Keras history, not averaged batch means.
evaluateEvaluate sleep apnea model.
evaluateEvaluate sleep stage model.
evaluate_quantizedReplay and match the frozen test index; conversion is already fixed.
evaluate_windowsApply the scoring mask after inference so excluded epochs retain context.
evb_to_pcClient
evb_to_pcService
EvbBackendEVB inference engine backend
examples
exportExport sleep apnea model.
exportExport sleep stage model.
export_bundle
extractRead aligned samples, using an optional independent source UTC clock for cadence.
FeatureParamsFeature configuration params
Features`dataclass`
FeatureSetFeature set abstract class.
filename
fingerprint
fingerprint
FramedTransport
freezeFreeze all audited subjects; coverage summarizes an already assigned split.
FS_C_EAR_9Feature set: FS-C-EAR-9
FS_H_E_10Feature set: FS-H-E-10
FS_W_A_5Feature set: FS-W-A-5
FS_W_P_40Feature set: FS-W-P-40
FS_W_P_5Feature set: FS-W-P-5
FS_W_PA_14Feature set: FS-W-PA-14
get_apnea_color_mapGet color map for apnea classes
get_serial_transportCreate serial transport. Scans looking for port matching criteria.
get_stage_color_mapGet color map for sleep stages
H5DataloaderDataloader to load features from folder containing HDF5 files.
Ievb_to_pc
InferenceBackendBackend inference engine base class
inspect_clockReport local-clock discontinuities; do not infer physical sample gaps.
inspect_integer_graphInspect every FlatBuffer subgraph tensor; integer I/O alone is insufficient.
inspect_nightsReturn unambiguous paired sleep candidates in source-step coordinates.
Ipc_to_evb
LIBUSBSIOI2CTransport
LIBUSBSIOSPITransport
list_nsrr_itemsRecursively list items for a dataset to be downloaded.
load_eventsRetain every row so missing/duplicate event pairs cannot disappear silently.
load_split
load_split
main
main
main
main
main
main
main
main
main
main
main
make_dataCreate deterministic train/validation/test raw waveforms and integer targets.
make_fixture
match_contextReject coordinate or target drift even when shapes and timestamps look plausible.
materializeReturn provenance after atomically creating a new clock-bearing source folder.
MesaDatasetMESA dataset
MesaSleepStageMESA sleep stages
MessageType
ModelFactoryItem
NamedParamsNamed parameters is used to store parameters for a specific model, preprocessing, or augmentation.
Normalizer`dataclass`
output_contract
packageSave model, metrics, config, and reload vectors into an archive-profile bundle.
parse_contentParse file or raw content into Pydantic model.
pc_to_evbClient
pc_to_evbService
PcBackendPC inference engine backend.
PlotPallette`dataclass`
predict
prepareCache stateless features only: annotations and normalization never enter the key.
prepareConvert finite [examples, 128] waveforms into deterministic [examples, 128, 1] features.
prepare_partitionPreserve each record's context; omit only windows with no scored epochs.
prepare_subjectCopy, map labels, impute invalid rows, and normalize the complete record.
PreparedPartition`dataclass`
PreparedRecord`dataclass`
profile_membershipProfile training only, keeping the reader's integrity checks and finite schedule.
publish_bundleDry run by default. Upload a validated snapshot without loading a model.
QuantizationParamsQuantization parameters
quantize_runOne fixed train-only calibration, conversion and evaluation; no tuning loop.
read_bound_jsonParse the same bytes whose digest was verified, including transient changes.
read_cohortRead an explicit JSON list of unique filename stems, independent of discovery order.
read_json
read_recording
read_subjectLegacy two-array interface; use read_recording to retain the independent clock.
read_subjectRead three self-contained HDF5 datasets and validate their schema.
read_verified_featuresRead and verify legacy features, then apply whole-record normalization.
reconstruct_legacy_featuresReconstruct FS-W-A-5 features without reading historical labels.
Recording`dataclass`
ReferenceSimple container class used for pass by reference.
replay_bundleReplay every declared model against its recorded, hash-bound synthetic I/O.
RequestContext
RequestError
require_self_containedReject indirect storage while allowing ordinary internal hard links.
revisionBest-effort checkout identity; implementation hashes remain authoritative.
RpcCommandsRPC commands
RpmsgTransport
runsleepKIT CLI
runHistorical-label recipe, preserved for existing experiments.
runGenerate, train, evaluate, and package one synthetic recipe run.
runDeclare, prepare, train, evaluate and archive one fixed-model experiment.
run_membershipCompose an AnnotatedDataset with training, evaluation, and versioned export.
run_smoke
SD2RuntimeLazy LiteRT runtime pinned to the reviewed SD-2-TCN-SM model bytes.
SerialTransport
Server
ServerThread
Service
setup_plottingSetup plotting environment for matplotlib and plotly
SimpleServer
SleepApneaSleep apnea class
SleepStageSleep stage class
stage_baselinePackage a pinned historical TFLite baseline without conversion or retraining.
stage_bundleCopy an explicit artifact list into an immutable directory atomically.
stage_releasePreserve model bytes/evidence and add caller-selected release documentation.
StagesDatasetSTAGES dataset
StagesSleepStageSleep stage enum
StageTaskSleep Stage Task
status
status
subject_data_preprocessorPreprocess entire subject data.
subject_data_preprocessorPreprocess entire subject data.
subject_features
SubjectRecord`dataclass`
summarizeVerify local run evidence and exclusively write a per-series JSON report.
TaskTask base class. All tasks should inherit from this class.
TaskModeTask run mode
TaskParamsTask configuration params
TCPTransport
TensorSpec`dataclass`
trainTrain finite epochs with retained tail batches and return ``(model, history)``.
trainFit every supervised context once per epoch using Keras array adapters.
trainTrain sleep apnea model.
trainTrain sleep stage model.
training_modelBuild and compile the recipe's logits model; usable without running the pipeline.
TransportBase transport class.
TransportArbitratorShares a transport between a server and multiple clients.
validate_bundleVerify structure/integrity and optional persisted runtime evidence.
validate_inputValidate source clocks before any cache access; clocks are never inferred from row indices.
validate_modelRequire the saved SS-3-TCN-SM float32 sequence-to-logits interface.
validate_output
validate_splitReturn a normalized copy; filename stems are caller-declared subject identities.
verified_calibrationUse the exact persisted calibration array whose hash is declared publicly.
verifyRead all samples and optionally check event clocks, not annotation semantics.
window_subjectReturn nonoverlapping 240-epoch windows without stitching gaps or records.
WindowedRecord`dataclass`
write_indexWrite JSONL in evaluation order without retaining a dataset-wide row list.
write_json
YsywDatasetYSYW dataset
YsywSleepStageYSYW sleep stages