NumericalTarget¶
- class baybe.targets.numerical.NumericalTarget[source]¶
Bases:
Target
,SerialMixin
Class for numerical targets.
Public methods
__init__
(name, mode[, bounds, transformation])Method generated by attrs for class NumericalTarget.
from_dict
(dictionary)Create an object from its dictionary representation.
from_json
(string)Create an object from its JSON representation.
summary
()Return a custom summarization of the target.
to_dict
()Create an object's dictionary representation.
to_json
()Create an object's JSON representation.
Create a single-task objective from the target.
transform
(data)Transform data into computational representation.
Public attributes and properties
The target mode.
Optional target bounds.
An optional target transformation.
The name of the target.
- __init__(name: str, mode, bounds: None | Iterable | Interval = None, transformation=NOTHING)¶
Method generated by attrs for class NumericalTarget.
For details on the parameters, see Public attributes and properties.
- to_json()¶
Create an object’s JSON representation.
- Return type:
- Returns:
The JSON representation as a string.
- to_objective()¶
Create a single-task objective from the target.
- Return type:
SingleTargetObjective
- transform(data: DataFrame)[source]¶
Transform data into computational representation.
The transformation depends on the target mode, e.g. minimization, maximization, matching, etc.
-
mode:
TargetMode
¶ The target mode.
-
transformation:
TargetTransformation
|None
¶ An optional target transformation.