Oscilon LogoOscilon
K

Oscilon C++ API Reference

Oscilon provides a modern, header-only C++17 API designed for building deterministic 
Evolutionary Adaptive Intelligence (EAI) systems. The API emphasizes sparse, targeted operations on 
neural networks, enabling efficient evolution on edge and healthcare-targeted hardware without Python 
dependencies. All classes and functions are in the oscilon namespace.

code
Members
oscilon::Network

Represents a mutable neural network model supporting layers, 
weights, and connections. Load/save in compact .osm format 
optimized for embedded deployment.
oscilon::ErrorScannerScans a network during forward pass to identify error-prone nodes using per-node loss contribution metrics (scalar-level analysis).
oscilon::MutatorApplies targeted genetic algorithm (GA)-based mutations exclusively to flagged nodes. Supports weight adjustment, connection pruning/addition, and activation changes with deterministic commitment based on fitness thresholds.
oscilon::FitnessEvaluatorUser-extensible class for defining deterministic fitness functions. Built-in thresholds ensure only beneficial mutations are retained (no probabilistic acceptance).
oscilon::ProfilerLightweight profiling tool to monitor mutation efficiency, node-level compute, and convergence timing—essential for resource-constrained hardware.
data
Members
oscilon::data::PipelineZero-copy, real-time data pipeline for heterogeneous edge sources (e.g., sensors on AMD Zynq™ MPSoCs). Supports streaming, normalization, and deterministic missing-value imputation.
oscilon::data::SensorStreamDirect buffer mapping from device I/O for single-sample inference in healthcare monitoring scenarios.
oscilon::data::TransformBase class for pipeline transforms (e.g., Normalize, ImputeMissing with deterministic strategies).
accelerators
Members
oscilon::DistributedContextManages parallel mutation evaluation across heterogeneous 
backends (AMD ROCm/HIP, Apple Metal, FPGA offload).
oscilon::BackendROCmAMD GPU acceleration interface for parallel fitness scoring and mutation application.
oscilon::BackendMetalApple GPU (macOS/iOS) acceleration for mobile/edge evolutionary refinement.
oscilon::BackendFPGAIntegration hooks for AMD Zynq™ UltraScale+™ MPSoCs via Xilinx tools—custom kernel offload for ultra-low-power mutation pipelines.
io
Members
oscilon::load(const std::string& path)Loads a serialized .osm model (full or checkpoint).
oscilon::save(const Network& net, const std::string& path)Saves model in compact binary format suitable for embedded transfer.
oscilon::save_checkpoint(const Network& net, const std::string& path, int iteration)Saves intermediate evolutionary state with metadata.
evolution
Members
oscilon::EvolverHigh-level orchestrator for sparse evolutionary cycles: scan → 
mutate → evaluate → commit. Configurable for generations, 
population size (lightweight), and early-stop thresholds.
oscilon::MutationStrategyPre-built strategies: WeightPerturb, PruneConnect, ActivationSwap—targeted only at error-prone nodes.
oscilon::ConvergenceMonitorTracks fitness plateau and enforces deterministic halting for guaranteed convergence in high-stakes applications.
visualization (coming soon)
Members
oscilon::viz::MutationGraphGenerate node-level mutation timelines for debugging (export to 
Graphviz or future Oscilon Board integration).
oscilon::viz::FitnessPlotSimple convergence curve generation for analysis.

Note on availability

The Oscilon C++ API is currently in controlled research preview. Full reference documentation, additional examples, and extended modules (e.g., evolutionary forests, federated refinement) are being actively developed based on approved researcher feedback. Access to headers and detailed Doxygen-style docs is provided post-approval.