π Infer Logprobs To Yes No ProbsΒΆ
processors.infer_logprobs_to_yes_no_probs
SequentialOperator
(
steps=[
InferDictsToBinaryLogprobs
(
neg_class_name="No",
pos_class_name="Yes",
num_logprobs_to_take=3,
field="prediction",
process_every_value=False,
),
],
)
[source]from unitxt.processors import InferDictsToBinaryLogprobs
Explanation about SequentialOperatorΒΆ
A class representing a sequential operator in the streaming system.
A sequential operator is a type of MultiStreamOperator that applies a sequence of other operators to a MultiStream. It maintains a list of StreamingOperator`s and applies them in order to the `MultiStream.
Read more about catalog usage here.