Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Machine learning Remove topic Machine learning Clear all 9 posts RSS

2026

2024

2023

ClickHouse

Forecasting Using ClickHouse Machine Learning Functions

How-to 9 min +90 XP

ClickHouse's built-in stochasticLinearRegression and evalMLMethod functions can fit and apply time-series forecasting models entirely in SQL, with no Python or R. Using monthly flight passenger data, a log-transformed target is regressed on a linear trend plus 12 month dummy variables, with no intercept to avoid the dummy variable trap.

The quest for software engineering knowledge.

Look:
Layout: