Training a Model
Koios is an inference engine, not a training platform. Its job is to take a model you have already trained and run it continuously against live data from your plant, factory, or building — reading sensor values, making predictions, and writing outputs back to control systems in real time.
Training happens externally. You train your model in whatever environment suits your workflow — Python scripts, Jupyter notebooks, cloud ML platforms, or dedicated training infrastructure. Once you have a trained model, you export it as an ONNX or TFLite file and upload it to Koios.
What Koios Does
Collecting Training Data with Koios
While Koios does not train models, it can serve as a data historian — collecting and storing high-resolution time-series data from your devices that you can then use for training. This is particularly useful if you don't have an existing historian, or if your current historian doesn't provide the resolution you need.
Koios records tag values to its time-series database at your configured scan rate, and you can export that data as CSV, JSON, or Parquet from any trend. For long-term data collection, review the Data Retention settings to ensure your retention and compression policies preserve the resolution your training pipeline requires.
Typical Workflow
Preparing Your Model for Koios
Your exported model must meet specific tensor shape and format requirements. The key points:
- Input shape:
[1, num_inputs]— flat models that read the current sensor snapshot (RL policies, regressors, classifiers)[1, input_depth, num_inputs]— time-series models that consume a window of recent history (forecasters, LSTMs, etc.)
- Output shape:
[1, num_outputs]for single-step predictions, or[1, output_depth, num_outputs]for multi-step forecasts - Data type: float32
- Formats: ONNX (
.onnx) or TensorFlow Lite (.tflite)
See Model Inference Requirements for the full specification, including tensor layout, interpolation behavior, and normalization details.
Normalization Must Match Training
The normalization you configure in Koios (on each binding) must match what was used during training. If your training pipeline scaled inputs with min-max normalization using specific bounds, configure the same type and bounds in Koios. A mismatch means the model receives inputs in a different range than it was trained on, producing meaningless predictions.
See AI Models — Normalization for the available normalization types and sources.
Retraining and Updating
When you retrain a model, export a new file and upload it as a new version on the Files tab. Koios supports multiple file versions per model — you can switch between them without reconfiguring bindings (as long as the input/output count stays the same). This makes A/B testing straightforward: upload the new version, activate it, monitor performance, and roll back if needed.
Need Help with Training?
If you need a bespoke model trained for your specific process or application, Ai-Ops can help. Our team can work with your data to develop, validate, and deploy custom models tailored to your site. Contact us at support@ai-ops.com for a quote.
