Skip to content

Set c parameter for regularization of a SupportVectorMachine #169

@lars-reimann

Description

@lars-reimann

Is your feature request related to a problem?

It's not possible to set the c parameter for regularization of a SupportVectorMachine.

Desired solution

  • Add a new parameter c: float to the initializer of safeds.ml.classification.SupportVectorMachine and safeds.ml.regression.SupportVectorMachine
  • Raise a value error if c <= 0
  • Pass it along to C (uppercase) of the wrapped scikit-learn model in the fit method

Possible alternatives (optional)

No response

Screenshots (optional)

No response

Additional Context (optional)

We need to add the support vector machine first (#154).

Metadata

Metadata

Labels

Type

No type

Projects

Status

✔️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions