How snpl-glicth/iot_machine_learning works
ZENIN is presented as an ML platform for analyzing dynamic data and producing predictions, anomaly decisions, and explanations; the tree also contains market-data, replay, and execution capabilities. The clearest sampled user workflow is the chat query: a user submits text, the query route assembles analysis inputs, performs best-effort recall, invokes a cognitive engine, and returns text with metadata. The README describes a Hopf-based sovereign inference model, but its cited master-engine files are absent from this tree, so that implementation is not mapped here. Several broader capabilities are represented by their enclosing source directories because their wiring was not sampled.
Main entry points: routes_query.py Query route · cognitive_storage_decorator.py Cognitive dual-write · use_cases Prediction workflows · zenin_ml_storage.py SQL prediction storage
Components 21
Text query
- Query route
ml_service/api/routes_query.py - Text analyzers
infrastructure/ml/cognitive/text - Semantic recall
ml_service/api/services/analyzers/text_recall.py - Text cognitive engine
infrastructure/ml/cognitive/text - Query response
ml_service/api/routes_query.py
IoT inference
- Prediction workflows
application/use_cases - Engine selection
application/use_cases/select_engine.py - Prediction domain
domain/services/prediction - Anomaly and patterns
domain/services/anomaly - Contextual decisions
infrastructure/ml/cognitive/decision/contextual_decision_engine.py - Contextual explanations
infrastructure/ml/cognitive/explainability/contextual_explainability_engine.py
Market systems
- Market observations
domain/entities/market/observations - Market inference
domain/entities/market - Replay evaluation
domain/entities/market/replay - Broker execution
infrastructure/adapters/market/zephyr
Memory and storage
- Storage contract
domain/ports/storage_port.py - SQL prediction storage
infrastructure/persistence/sql/zenin_ml_storage.py - Cognitive dual-write
infrastructure/adapters/cognitive/cognitive_storage_decorator.py - Cognitive memory
infrastructure/adapters/cognitive
Other components
- Query user
- Sensor or series
Connections 10
- Query user → Query route: submits query
- Query route → Text analyzers: builds analysis input
- Query route → Semantic recall: recalls documents
- Query route → Text cognitive engine: requests answer
- Query route → Query response: returns response
- Sensor or series → Prediction workflows: provides series
- Prediction workflows → Engine selection: selects engine
- Storage contract → SQL prediction storage: implemented by
- Cognitive dual-write → SQL prediction storage: writes first
- Cognitive dual-write → Cognitive memory: dual-writes