Production Example

This page covers the production inference pattern with persisted model state and tensor-backed weights.

Production flow

Training -> save pipeline -> deploy inference server -> load pipeline -> predict

Example

use Pml\Pipeline;

$pipeline = Pipeline::load('saved_pipeline');
$dataset = Pml\Dataset::fromCSV('datasets/housing/serve.csv', labelColumn: 0);
$predictions = $pipeline->predict($dataset);

Internals

Performance notes