Skip to content

Utility

Table of Contents

util.arguments

Argument parser for the simulation

Arguments Objects

class Arguments()

Argument parser for the simulation

get_args

def get_args()

Get the arguments from the parser

Returns:

Arguments

util.config_parameters.base_strategy_parameters

This file contains the available strategies and the default strategy.

util.config_parameters.quantity_distribution_parameters

This file contains the available data quantity distributions as well as their parameters and the default.

util.config_parameters.feature_distribution_parameters

Contains available feature distributions and their parameters Also contains the default feature distribution

util.config_parameters.algorithm_parameters

This file provides a dictionary of the available algorithms and their parameters.

util.config_parameters.label_distribution_parameters

Contains available label distributions and their parameters Also contains the default label distribution

util.config_parameters

This module contains the configuration parameters for the different strategies, data distributions and algorithms.

util.config

This module contains the Config class which is used to parse the configuration file and validate the parameters.

Config Objects

class Config()

This class is used to parse the configuration file and validate the parameters.

set_current_round

def set_current_round(i: int)

Sets the current round

Arguments:

  • i: The current round

Returns:

None

get_current_round

def get_current_round()

Returns the current round

Returns:

The current round

generate_paths

def generate_paths(algorithm: str, dataset: str, no_clients: int)

Generates the paths for the output files

Arguments:

  • algorithm: Current algorithm simulated
  • dataset: Current dataset used
  • no_clients: Number of clients used

Returns:

None