prompting.validators.penalty.task_validation#

Module Contents#

Classes#

TaskValidationPenaltyModel

Helper class that provides a standard way to create an ABC using

class prompting.validators.penalty.task_validation.TaskValidationPenaltyModel(max_penalty)#

Bases: prompting.validators.penalty.penalty.BasePenaltyModel

Helper class that provides a standard way to create an ABC using inheritance.

Parameters:

max_penalty (float) –

property name: str#
Return type:

str

calculate_penalties(task, completions)#
Parameters:
Return type:

torch.FloatTensor