MCPcopy Create free account

hub / github.com/HarliWu/FedBiOT / functions

Functions2,364 in github.com/HarliWu/FedBiOT

↓ 1 callersFunctionget_mean_loss
(traj_dict)
benchmark/FedHPOBench/fedhpobench/utils/draw.py:104
↓ 1 callersFunctionget_mean_rank
(traj_dict)
benchmark/FedHPOBench/fedhpobench/utils/draw.py:74
↓ 1 callersMethodget_meta_info
(self)
benchmark/FedHPOBench/fedhpobench/benchmarks/base_benchmark.py:120
↓ 1 callersFunctionget_metric
This function returns a dict, where the key is metric name, and value is \ the function of how to calculate the metric and a bool to indicate
federatedscope/core/auxiliaries/metric_builder.py:15
↓ 1 callersMethodget_metric_funcs
Build metrics for evaluation. Args: self: write your description eval_metric: write your description
federatedscope/core/monitors/metric_calculator.py:37
↓ 1 callersFunctionget_mfnet
Return the MF model according to model configs Arguments: model_config: the model related parameters data_shape (int): the input
federatedscope/mf/model/model_builder.py:1
↓ 1 callersFunctionget_model_from_huggingface
(model_name, config, **kwargs)
federatedscope/llm/model/model_builder.py:5
↓ 1 callersFunctionget_model_from_modelscope
(model_name, config, **kwargs)
federatedscope/llm/model/model_builder.py:17
↓ 1 callersMethodget_model_para
return multiple model parameters :return:
federatedscope/core/trainers/trainer_multi_model.py:271
↓ 1 callersMethodget_next_iteration
(self, iteration, iteration_kwargs={})
federatedscope/autotune/hpbandster.py:37
↓ 1 callersMethodget_num_samples
(self, num_tasks, min_num_samples=50,
federatedscope/nlp/dataset/leaf_synthetic.py:172
↓ 1 callersMethodget_original_gradient_from_para
Transfer the model parameter updates to gradient based on: .. math:: P_{t} = P - \eta g, where :math:`P
federatedscope/attack/privacy_attacks/reconstruction_opt.py:119
↓ 1 callersFunctionget_passive_PIA_auxiliary_dataset
Args: dataset_name (str): dataset name :returns: the auxiliary dataset for property inference attack. Type: dict {
federatedscope/attack/auxiliary/utils.py:262
↓ 1 callersFunctionget_raw_scores
Computes the exact and f1 scores from the examples and the model predictions
federatedscope/nlp/hetero_tasks/metric/squad.py:56
↓ 1 callersFunctionget_reconstructor
Args: atk_method: the attack method name, and currently supporting "DLG: deep leakage from gradient", and "IG: Inverting gradien
federatedscope/attack/auxiliary/utils.py:183
↓ 1 callersMethodget_results
(self, configuration, fidelity, seed_id)
benchmark/FedHPOBench/demo/base_fed_tabular_benchmark.py:147
↓ 1 callersFunctionget_rnn
(model_config, input_shape)
federatedscope/nlp/model/model_builder.py:6
↓ 1 callersFunctionget_scheduler
To instantiate a scheduler object for conducting HPO Arguments: init_cfg: configuration client_cfgs: client-specific configuration
federatedscope/autotune/algos.py:52
↓ 1 callersFunctionget_shape_from_data
Extract the input shape from the given data, which can be used to build \ the data. Users can also use `data.input_shape` to specify the shap
federatedscope/core/auxiliaries/model_builder.py:15
↓ 1 callersFunctionget_simclr
(model_config, local_data)
federatedscope/cl/model/SimCLR.py:200
↓ 1 callersFunctionget_sweep_filter_by
(filter_name, filters_each_line_table)
benchmark/pFL-Bench/res_analysis_plot/repeat_best_exp.py:252
↓ 1 callersFunctionget_sweep_filter_by
(filter_name, filters_each_line_table)
benchmark/pFL-Bench/res_analysis_plot/wandb_to_latex_res.py:373
↓ 1 callersMethodget_target
(self, examples)
federatedscope/llm/dataloader/offsite_tuning_dataset.py:15
↓ 1 callersMethodget_target
(self, examples)
federatedscope/llm/dataloader/offsite_tuning_dataset.py:56
↓ 1 callersMethodget_target
(self, examples)
federatedscope/llm/dataloader/offsite_tuning_dataset.py:83
↓ 1 callersMethodget_target
(self, examples)
federatedscope/llm/dataloader/offsite_tuning_dataset.py:115
↓ 1 callersMethodget_target
(self, examples)
federatedscope/llm/dataloader/offsite_tuning_dataset.py:153
↓ 1 callersMethodget_target
(self, examples)
federatedscope/llm/dataloader/offsite_tuning_dataset.py:182
↓ 1 callersMethodget_target
(self, examples)
federatedscope/llm/dataloader/offsite_tuning_dataset.py:206
↓ 1 callersMethodget_train_pred_embedding
(self)
federatedscope/cl/trainer/trainer.py:26
↓ 1 callersFunctionget_trainable_para_names
(model)
federatedscope/core/auxiliaries/model_builder.py:213
↓ 1 callersFunctionget_trainable_parameter_list
(model)
federatedscope/core/trainers/trainer_pFedMe.py:12
↓ 1 callersMethodget_trainable_state_dict
(self)
federatedscope/llm/model/adapter_builder.py:215
↓ 1 callersFunctionget_transformer
(model_config, input_shape)
federatedscope/nlp/model/model_builder.py:24
↓ 1 callersFunctionget_tree_model
(model_config, criterion_type=None)
federatedscope/vertical_fl/tree_based_models/model/model_builder.py:5
↓ 1 callersFunctionget_vertical_trainer
(config, model, data, device, monitor)
federatedscope/vertical_fl/tree_based_models/trainer/utils.py:6
↓ 1 callersFunctiongsm_demo_questions
()
federatedscope/llm/offsite_tuning/genqa.py:28
↓ 1 callersMethodhomophily
r""" Returns: the homophily for the raw G and split G
federatedscope/core/splitters/graph/analyzer.py:143
↓ 1 callersFunctioniDLG_trick
Using iDLG trick to recover the label. Paper: "iDLG: Improved Deep Leakage from Gradients", link: https://arxiv.org/abs/2001.02610 Args:
federatedscope/attack/auxiliary/utils.py:20
↓ 1 callersMethodinfer_collected
(self)
federatedscope/attack/privacy_attacks/passive_PIA.py:169
↓ 1 callersFunctioninit_Ditto_ctx
init necessary attributes used in Ditto, `global_model` acts as the shared global model in FedAvg; `local_model` acts as personalized mod
federatedscope/core/trainers/trainer_Ditto.py:74
↓ 1 callersFunctioninit_FedRep_ctx
(base_trainer)
federatedscope/core/trainers/trainer_FedRep.py:34
↓ 1 callersFunctioninit_Simple_tuning_ctx
(base_trainer)
federatedscope/core/trainers/trainer_simple_tuning.py:31
↓ 1 callersFunctioninit_fedprox_ctx
Set proximal regularizer and the factor of regularizer
federatedscope/core/trainers/trainer_fedprox.py:40
↓ 1 callersFunctioninit_global_cfg
This function sets the default config value. (1) Note that for an experiment, only part of the arguments will be used \ The remaining un
federatedscope/core/configs/config.py:261
↓ 1 callersMethodinit_multiple_model_hooks
(self)
federatedscope/core/trainers/trainer_multi_model.py:150
↓ 1 callersMethodinit_multiple_models
init multiple models and optimizers: the default implementation is copy init manner; ========================= Ex
federatedscope/core/trainers/trainer_multi_model.py:103
↓ 1 callersFunctioninit_nbafl_ctx
Set proximal regularizer, and the scale of gaussian noise
federatedscope/core/trainers/trainer_nbafl.py:49
↓ 1 callersFunctioninit_pFedMe_ctx
init necessary attributes used in pFedMe, some new attributes will be with prefix `pFedMe` optimizer to avoid namespace pollution No
federatedscope/core/trainers/trainer_pFedMe.py:71
↓ 1 callersFunctioninit_sgdmf_ctx
Init necessary attributes used in SGDMF, some new attributes will be with prefix `SGDMF` optimizer to avoid namespace pollution
federatedscope/mf/trainer/trainer_sgdmf.py:31
↓ 1 callersFunctioninit_wandb
(cfg)
federatedscope/core/auxiliaries/logging.py:144
↓ 1 callersFunctioninitial_cfg
(cfg)
benchmark/FedHPOBench/fedhpobench/config.py:332
↓ 1 callersFunctionis_correct
(model_answer, answer)
federatedscope/llm/eval/eval_for_gsm8k/eval.py:40
↓ 1 callersFunctionis_correct
(model_answer, answer)
federatedscope/llm/eval/eval_for_gsm8k/eval_with_demo.py:40
↓ 1 callersFunctionlabel_to_onehot
(target, num_classes=100)
federatedscope/attack/auxiliary/utils.py:12
↓ 1 callersFunctionlatency
A fixed latency for every communication. From: Wang et al. “A field guide to federated optimization”.
benchmark/FedHPOBench/fedhpobench/utils/cost_model.py:112
↓ 1 callersMethodlaunch_task
(self, command)
federatedscope/organizer/utils.py:106
↓ 1 callersFunctionletter_to_vec
(letter)
federatedscope/nlp/dataset/utils.py:27
↓ 1 callersFunctionload_best_repeat_res
(filter_seed_set=None)
benchmark/pFL-Bench/res_analysis_plot/render_paper_res.py:283
↓ 1 callersFunctionload_cifar_dataset
(config)
federatedscope/cl/dataloader/Cifar10.py:142
↓ 1 callersFunctionload_cv_dataset
Return the dataset of ``femnist`` or ``celeba``. Args: config: configurations for FL, see ``federatedscope.core.configs`` Retur
federatedscope/cv/dataloader/dataloader.py:5
↓ 1 callersFunctionload_data_from_file
(config, client_cfgs=None)
federatedscope/contrib/data/load_from_files.py:9
↓ 1 callersFunctionload_dataset
Loads the dataset for the given config from branches Args: config: configurations for FL, see ``federatedscope.core.configs`` N
federatedscope/core/data/utils.py:36
↓ 1 callersFunctionload_external_data
Based on the configuration file, this function imports external \ datasets and applies train/valid/test. Args: config: `CN` from
federatedscope/core/data/utils.py:112
↓ 1 callersFunctionload_graphlevel_dataset
r"""Convert dataset to Dataloader. :returns: data_local_dict :rtype: Dict { 'client_id': { 't
federatedscope/gfl/dataloader/dataloader_graph.py:8
↓ 1 callersFunctionload_heteroNLP_data
(config, client_cfgs)
federatedscope/nlp/hetero_tasks/dataloader/dataloader.py:81
↓ 1 callersFunctionload_linklevel_dataset
r""" :returns: data_dict :rtype: (Dict): dict{'client_id': Data()}
federatedscope/gfl/dataloader/dataloader_link.py:10
↓ 1 callersFunctionload_mf_dataset
Return the dataset of matrix factorization Format: { 'client_id': { 'train': DataLoader(), 't
federatedscope/mf/dataloader/dataloader.py:20
↓ 1 callersFunctionload_mini_graph_dt
(config, client_cfgs=None)
federatedscope/contrib/data/mini_graph_dt.py:13
↓ 1 callersFunctionload_nlp_dataset
Return the dataset of ``shakespeare``, ``subreddit``, ``twitter``, \ or ``synthetic``. Args: config: configurations for FL, see
federatedscope/nlp/dataloader/dataloader.py:7
↓ 1 callersFunctionload_nodelevel_dataset
r""" :returns: data_dict :rtype: Dict: dict{'client_id': Data()}
federatedscope/gfl/dataloader/dataloader_node.py:15
↓ 1 callersFunctionload_poisoned_dataset_edgeset
(data, ctx, mode)
federatedscope/attack/auxiliary/poisoning_data.py:17
↓ 1 callersFunctionload_poisoned_dataset_pixel
(data, ctx, mode)
federatedscope/attack/auxiliary/poisoning_data.py:178
↓ 1 callersFunctionload_quadratic_dataset
(config)
federatedscope/tabular/dataloader/quadratic.py:4
↓ 1 callersFunctionload_surrogate_model
(modeldir, model, dname, algo)
benchmark/FedHPOBench/fedhpobench/utils/surrogate_dataloader.py:28
↓ 1 callersFunctionload_synth_data
Load the synthetic data for contrastive learning
federatedscope/nlp/hetero_tasks/dataset/utils.py:94
↓ 1 callersFunctionload_toy_data
(config=None)
federatedscope/tabular/dataloader/toy.py:9
↓ 1 callersFunctionload_vertical_data
To load data for vertical FL Arguments: config: configuration generate (bool): whether to generate the synthetic data :r
federatedscope/vertical_fl/dataloader/dataloader.py:14
↓ 1 callersFunctionlogfile_2_wandb_dict
parse the logfiles [exp_print.log, eval_results.log] into wandb_dict that contains non-nested dicts :param exp_log_f: opened exp
federatedscope/core/auxiliaries/logging.py:174
↓ 1 callersFunctionlogloader
(file)
benchmark/FedHPOBench/fedhpobench/utils/draw.py:16
↓ 1 callersFunctionlogs2df
(dname, root='', sample_client_rate=[0.2, 0.4, 0.6, 0.8, 1.0], metrics=[
benchmark/FedHPOBench/fedhpobench/utils/tabular_dataloader.py:84
↓ 1 callersFunctionlogs2info
(dname, root, sample_client_rate=[0.2, 0.4, 0.6, 0.8, 1.0])
benchmark/FedHPOBench/fedhpobench/utils/tabular_dataloader.py:33
↓ 1 callersFunctionlower
(text)
federatedscope/nlp/hetero_tasks/metric/squad.py:24
↓ 1 callersFunctionmain
()
federatedscope/llm/eval/eval_for_lmharness/eval.py:24
↓ 1 callersFunctionmain
()
federatedscope/llm/eval/eval_for_gsm8k/eval.py:181
↓ 1 callersFunctionmain
()
federatedscope/llm/eval/eval_for_gsm8k/eval_with_demo.py:190
↓ 1 callersFunctionmain
()
federatedscope/llm/eval/eval_for_mmlu/eval.py:105
↓ 1 callersFunctionmain
()
federatedscope/llm/eval/eval_for_code/eval.py:102
↓ 1 callersFunctionmain
()
federatedscope/llm/eval/eval_for_code/humanevalx.py:159
↓ 1 callersFunctionmain
()
federatedscope/llm/eval/eval_for_code/humaneval.py:48
↓ 1 callersFunctionmain
()
federatedscope/llm/offsite_tuning/genqa.py:136
↓ 1 callersFunctionmain
()
federatedscope/llm/misc/fschat.py:220
↓ 1 callersFunctionmain
()
federatedscope/gfl/dataset/preprocess/dblp_related.py:283
↓ 1 callersFunctionmain
()
benchmark/FedHPOBench/fedhpobench/utils/runner.py:23
↓ 1 callersFunctionmain
()
tests/run.py:39
↓ 1 callersMethodmaximize
(self, init_points=5, n_iter=25)
federatedscope/autotune/fts/utils.py:463
↓ 1 callersMethodmerge_from_dict
(self, other_dict)
federatedscope/core/trainers/context.py:309
↓ 1 callersMethodmerge_from_other_cfg
Merge `cfg_other` into this CfgNode.
federatedscope/core/configs/yacs_config.py:254
↓ 1 callersFunctionmin_cut
(similarity, cluster)
federatedscope/gfl/gcflplus/utils.py:26
↓ 1 callersFunctionminimize
(func, bounds=None, para_dict={}, nvar=None, args=(),
federatedscope/autotune/fts/utils.py:53
← previousnext →801–900 of 2,364, ranked by callers