nvflare.apis.filter module¶
- exception ContentBlockedException[source]¶
Bases:
ExceptionA filter should raise this exception when the content is to be blocked
- class Filter[source]¶
Bases:
FLComponent,ABCInit FLComponent.
The FLComponent is the base class of all FL Components. (executors, controllers, responders, filters, aggregators, and widgets are all FLComponents)
FLComponents have the capability to handle and fire events and contain various methods for logging.
- add_to_fed_job(job, ctx, **kwargs)[source]¶
This method is used by Job API.
- Parameters:
job – the Job object to add to
ctx – Job Context
filter_type – type of filter
tasks – tasks for the filter
Returns: