PetscRegressorSetOptionsPrefix#

Sets the prefix used for searching for all PetscRegressor options in the database.

Synopsis#

Logically Collective

Input Parameters#

  • regressor - the PetscRegressor context

  • p - the prefix string to prepend to all PetscRegressor option requests

Notes#

A hyphen (-) must NOT be given at the beginning of the prefix name. The first character of all runtime options is AUTOMATICALLY the hyphen.

For example, to distinguish between the runtime options for two different PetscRegressor solvers, one could call

      PetscRegressorSetOptionsPrefix(regressor1,"sys1_")
      PetscRegressorSetOptionsPrefix(regressor2,"sys2_")

This would enable use of different options for each system, such as

      -sys1_regressor_method linear -sys1_regressor_regularizer_weight 1.2
      -sys2_regressor_method linear -sys2_regressor_regularizer_weight 1.1

See Also#

PetscRegressor: Regression Solvers, PetscRegressor, PetscRegressorSetFromOptions(), PetscRegressorAppendOptionsPrefix(), PetscRegressorGetOptionsPrefix()

Level#

advanced

Location#

src/ml/regressor/interface/regressor.c


Index of all PetscRegressor routines
Table of Contents for all manual pages
Index of all manual pages