Skip to main content
`Ctrl`+`K`

# Regression Analysis and Classification (PetscRegressor)

The Regression Analysis and Classification (`PetscRegressor`) component provides a simple interface for supervised statistical (or machine) learning regression (prediction of continuous numerical values, including least squares with `PETSCREGRESSORLINEAR`) or classification (prediction of discrete labels or categories) tasks.

`PetscRegressor` internally employs `Tao` (or `KSP` for a few, specialized cases) to solve the underlying numerical optimization problems. `PetscRegressor` users can set `Tao` options or otherwise directly manipulate the underlying `Tao` context, which can be accessed via `PetscRegressorGetTao()`. User guide chapter: PetscRegressor: Regression Solvers.

## Beginner - Basic usage

- PETSCREGRESSORLINEAR

- PetscRegressor

- PetscRegressorCreate

- PetscRegressorDestroy

- PetscRegressorFit

- PetscRegressorGetTao

- PetscRegressorLinearGetCoefficients

- PetscRegressorLinearGetIntercept

- PetscRegressorLinearGetKSP

- PetscRegressorPredict

- PetscRegressorSetFromOptions

- PetscRegressorSetRegularizerWeight

- PetscRegressorType

- PetscRegressorView

## Intermediate - Setting options for algorithms and data structures

- PetscRegressorGetType

- PetscRegressorLinearSetFitIntercept

- PetscRegressorLinearSetType

- PetscRegressorLinearSetUseKSP

- PetscRegressorReset

- PetscRegressorSetType

- PetscRegressorViewFromOptions

## Advanced - Setting more advanced options and customization

- PetscRegressorAppendOptionsPrefix

- PetscRegressorGetOptionsPrefix

- PetscRegressorLinearGetType

- PetscRegressorLinearType

- PetscRegressorRegister

- PetscRegressorSetOptionsPrefix

- PetscRegressorSetUp

## Developer - Interfaces rarely needed by applications programmers

- PetscRegressorFinalizePackage

- PetscRegressorInitializePackage

## Single list of manual pages

- PETSCREGRESSORLINEAR

- PetscRegressor

- PetscRegressorAppendOptionsPrefix

- PetscRegressorCreate

- PetscRegressorDestroy

- PetscRegressorFinalizePackage

- PetscRegressorFit

- PetscRegressorGetOptionsPrefix

- PetscRegressorGetTao

- PetscRegressorGetType

- PetscRegressorInitializePackage

- PetscRegressorLinearGetCoefficients

- PetscRegressorLinearGetIntercept

- PetscRegressorLinearGetKSP

- PetscRegressorLinearGetType

- PetscRegressorLinearSetFitIntercept

- PetscRegressorLinearSetType

- PetscRegressorLinearSetUseKSP

- PetscRegressorLinearType

- PetscRegressorPredict

- PetscRegressorRegister

- PetscRegressorReset

- PetscRegressorSetFromOptions

- PetscRegressorSetOptionsPrefix

- PetscRegressorSetRegularizerWeight

- PetscRegressorSetType

- PetscRegressorSetUp

- PetscRegressorType

- PetscRegressorView

- PetscRegressorViewFromOptions