skardi 0.3.0

High performance query engine for both offline compute and online serving
Documentation
1
2
3
4
5
6
7
8
use anyhow::Result;
use arrow::array::{ArrayRef, Float32Array};

/// Generic model interface for Skardi ML modules.
pub trait Model {
    /// Run prediction on a slice of Arrow arrays. Returns a Float32Array of length equal to row count.
    fn predict(&self, args: &[ArrayRef]) -> Result<Float32Array>;
}