You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the label can only contain 1 or 0 cb costs. There is a mode in vw for CB (non-adf) that allows for multiple cb_classes per example, but it is not currently accessible via direct label access. If creating examples/labels from parsed input it should still work as expected. If you need this feature, please open an issue on the github repo.
805
+
793
806
Args:
794
807
label (Optional[Union[Tuple[float, float], Tuple[int, float, float]]): This is (action, cost, probability). The same rules as VW apply for if the action can be left out of the tuple.
Copy file name to clipboardExpand all lines: src/vowpal_wabbit_next/_core.pyi
+35-2Lines changed: 35 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ import typing
4
4
5
5
__all__= [
6
6
"CBLabel",
7
+
"CSLabel",
7
8
"DenseParameters",
8
9
"Example",
9
10
"LabelType",
@@ -20,6 +21,9 @@ class CBLabel():
20
21
"""
21
22
A label representing a contextual bandit problem.
22
23
24
+
.. note::
25
+
Currently the label can only contain 1 or 0 cb costs. There is a mode in vw for CB (non-adf) that allows for multiple cb_classes per example, but it is not currently accessible via direct label access. If creating examples/labels from parsed input it should still work as expected. If you need this feature, please open an issue on the github repo.
26
+
23
27
Args:
24
28
label (Optional[Union[Tuple[float, float], Tuple[int, float, float]]): This is (action, cost, probability). The same rules as VW apply for if the action can be left out of the tuple.
0 commit comments