1# Regression Analysis and Classification (PetscRegressor) 2 3The Regression Analysis and Classification (`PetscRegressor`) component provides a simple interface for supervised 4statistical (or machine) learning regression (prediction of continuous numerical values, including least squares with `PETSCREGRESSORLINEAR`) or classification (prediction 5of discrete labels or categories) tasks. 6 7`PetscRegressor` internally employs `Tao` (or `KSP` for a few, specialized cases) to solve the underlying numerical 8optimization problems. `PetscRegressor` users can set `Tao` options or otherwise directly manipulate the underlying 9`Tao` context, which can be accessed via `PetscRegressorGetTao()`. User guide chapter: [](ch_regressor). 10