Lines Matching refs:PetscRegressor
3 # PetscRegressor: Regression Solvers
5 The `PetscRegressor` component provides some basic infrastructure and a general API for supervised
20 `PetscRegressor` supports supervised learning tasks:
26 we use `PetscRegressor` to support both of these cases.
30 Every `PetscRegressor` implementation provides a `Fit()` and a `Predict()` method to support this w…
35 Here, we introduce a simple example to demonstrate `PetscRegressor` usage.
63 To create a `PetscRegressor` instance, one must first call `PetscRegressorCreate()`:
66 PetscRegressorCreate(MPI_Comm comm, PetscRegressor *regressor);
72 PetscRegressorSetType(PetscRegressor regressor, PetscRegressorType type);
95 PetscRegressorFit(PetscRegressor regressor, Mat X, Vec y);
104 PetscRegressorPredict(PetscRegressor regressor, Mat X, Vec y_predicted);
108 the user should destroy its `PetscRegressor` context with
111 PetscRegressorDestroy(PetscRegressor *regressor);
139 PetscRegressorSetRegularizerWeight(PetscRegressor regressor, PetscReal weight);
180 PetscRegressorLinearSetUseKSP(PetscRegressor regressor, PetscBool flg);
193 PetscRegressorLinearSetFitIntercept(PetscRegressor regressor, PetscBool flg);
202 PetscRegressorLinearGetCoefficients(PetscRegressor regressor, Vec *coefficients);
203 PetscRegressorLinearGetIntercept(PetscRegressor regressor, PetscScalar *intercept);