nvflare.app_opt.xgboost.histogram_based_v2.mock.mock_secure_executor module

class MockSecureXGBExecutor(int_server_grpc_options=None, per_msg_timeout=10.0, tx_timeout=100.0, 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