Basic Example

This example shows the data path from CSV ingestion to tensor training.

Objective

Demonstrate the numeric ingestion path with minimal assumptions about input schema.

Data flow

CSV file
   ├─ numeric-only fast path -> Tensor mode
   └─ mixed-type fallback -> ETL mode -> materialize -> Tensor mode

Example

use Pml\Dataset;
use Pml\Estimators\Regression\GBDTRegressor;

$dataset = Dataset::fromCSV('datasets/housing/train.csv', labelColumn: 0);
$model = new GBDTRegressor();
$model->train($dataset);

Internals

Performance notes