nvflare.app_opt.xgboost.histogram_based_v2.fed_executor module

class FedXGBHistogramExecutor(data_loader_id: str, per_msg_timeout=60.0, tx_timeout=600.0, model_file_name='model.json', metrics_writer_id: str | None = None, in_process=True)[source]

Bases: XGBExecutor

Constructor

Parameters:
  • adaptor_component_id – the component ID of client target adaptor

  • configure_task_name – name of the config task

  • start_task_name – name of the start task

  • per_msg_timeout – timeout for sending one message

  • tx_timeout – transaction timeout

get_adaptor(fl_ctx: FLContext)[source]

Get adaptor to be used by this executor. This is the default implementation that gets the adaptor based on configured adaptor_component_id. A subclass of XGBExecutor may get adaptor in a different way.

Parameters:

fl_ctx – the FL context

Returns: a XGBClientAdaptor object