langtest.transform.security.BaseSecurity#
- class BaseSecurity#
Bases:
ABC
Abstract base class for implementing a model security.
This class defines the interface for implementing a model security.
- None#
- __init__()#
Methods
__init__
()async_run
(sample_list, model, **kwargs)Abstract method that implements the model security.
run
(sample_list, model, **kwargs)Abstract method that implements the model security.
Abstract method that transforms the sample data based on the implemented model security.
Attributes
alias_name
test_types
- async classmethod async_run(sample_list: List[Sample], model: ModelAPI, **kwargs)#
Abstract method that implements the model security.
- abstract async static run(sample_list: List[Sample], model: ModelAPI, **kwargs)#
Abstract method that implements the model security.
- abstract static transform()#
Abstract method that transforms the sample data based on the implemented model security.