ClickHouse/docs/en/sql_reference/functions/machine_learning_functions.md

19 lines
992 B
Markdown
Raw Normal View History

2020-04-03 13:23:32 +00:00
---
toc_priority: 64
toc_title: Machine Learning Functions
---
# Machine Learning Functions {#machine-learning-functions}
## evalMLMethod (prediction) {#machine_learning_methods-evalmlmethod}
Prediction using fitted regression models uses `evalMLMethod` function. See link in `linearRegression`.
### Stochastic Linear Regression {#stochastic-linear-regression}
The [stochasticLinearRegression](../../sql_reference/aggregate_functions/reference.md#agg_functions-stochasticlinearregression) aggregate function implements stochastic gradient descent method using linear model and MSE loss function. Uses `evalMLMethod` to predict on new data.
### Stochastic Logistic Regression {#stochastic-logistic-regression}
The [stochasticLogisticRegression](../../sql_reference/aggregate_functions/reference.md#agg_functions-stochasticlogisticregression) aggregate function implements stochastic gradient descent method for binary classification problem. Uses `evalMLMethod` to predict on new data.