Skip to main content

prism/
lib.rs

1// Copyright 2024-2026 Reflective Labs
2// SPDX-License-Identifier: MIT
3
4//! # prism
5//!
6//! Closed-form analytics and inference Suggestors for the Converge Engine.
7//!
8//! Prism owns hand-authored, deterministic inference: feature extraction,
9//! inference packs, and fuzzy inference (Mamdani / Sugeno / Tsukamoto).
10//! Training-pipeline concerns — dataset loading, train/val split,
11//! hyperparameter search, model fitting, registry, and deployment —
12//! live in `crucible-models`. The boundary is: prism never fits, crucible
13//! never owns expert rules.
14//!
15//! ## Usage
16//!
17//! ```rust,ignore
18//! use prism::FeatureAgent;
19//!
20//! engine.register_suggestor(FeatureAgent::new(config));
21//! ```
22//!
23//! ## Available Suggestors
24//!
25//! - [`FeatureAgent`] — Polars-based feature extraction
26//! - [`InferenceAgent`] — Burn-based inference over feature vectors
27//! - [`FuzzyInferencePack`] — fuzzy membership and rule inference
28
29pub mod batch;
30pub mod engine;
31pub mod fuzzy;
32pub mod model;
33pub mod packs;
34pub mod provenance;
35pub mod suggestor;
36
37pub use engine::FeatureAgent;
38pub use model::InferenceAgent;
39pub use packs::{
40    AnomalyDetectionPack, ClassificationPack, DescriptiveStatsPack, ForecastingPack,
41    FuzzyInferencePack, NaiveBayesPack, RankingPack, RegressionPack, SegmentationPack,
42    SimilarityPack, TrendDetectionPack,
43};
44pub use provenance::{PRISM_PROVENANCE, Prism, prism_execution_identity};