MCPcopy Create free account

hub / github.com/Koukyosyumei/AIJack / functions

Functions1,327 in github.com/Koukyosyumei/AIJack

↓ 1 callersMethod_is_valid_models
(self)
src/aijack/collaborative/fedkd/client.py:41
↓ 1 callersFunction_log_erfc
Compute log(erfc(x)) with high accuracy for large x.
src/aijack/defense/dp/manager/utils.py:32
↓ 1 callersFunction_precondition_grads_with_side_info
Precondition gradients with side information. Args: opt: Optimizer instance.
src/aijack/defense/dp/manager/adadps.py:68
↓ 1 callersMethod_set_distillation_loss
Setup the loss function for distillation. `crossentropy`, `L2` or `L1`. Args: name (str): type of the function R
src/aijack/collaborative/dsfl/server.py:43
↓ 1 callersMethod_set_hook
(self)
src/aijack/defense/soteria/soteria_client.py:39
↓ 1 callersMethod_set_noise_type
Set the noise type. Args: noise_type (str): Type of noise.
src/aijack/defense/dp/manager/accountant.py:314
↓ 1 callersMethod_set_upperbound_func
Set the upper bound function. Args: backend (str): Backend for calculation. bound_type (str): Type of bound.
src/aijack/defense/dp/manager/accountant.py:326
↓ 1 callersMethod_setup_distancefunc
Assigns a function to self.distancefunc according to distancename Args: distancename: name of the function to calculat the distan
src/aijack/attack/inversion/gradientinversion.py:174
↓ 1 callersMethod_setup_optimizer
(self, optimizer_type, **kwargs)
src/aijack/collaborative/fedavg/server.py:44
↓ 1 callersMethod_setup_optimizer_class
Assigns a class to self.optimizer_class according to optimiername Args: optimizername: name of optimizer, currently support `LBFG
src/aijack/attack/inversion/gradientinversion.py:193
↓ 1 callersMethod_setup_optimizer_for_global_grad
(self, optimizer_type, **kwargs)
src/aijack/collaborative/fedavg/client.py:51
↓ 1 callersMethod_step2
Performs step 2 of the Hungarian algorithm. Determines whether it is possible to select one zero from each row and column. If
src/aijack/defense/debugging/assertions/utils.py:34
↓ 1 callersMethod_step3
Performs step 3 of the Hungarian algorithm. Covers all zeros with the minimum number of horizontal or vertical lines. Args:
src/aijack/defense/debugging/assertions/utils.py:62
↓ 1 callersMethod_step4
Performs step 4 of the Hungarian algorithm. Subtracts the minimum value from the elements not covered by the lines, and add t
src/aijack/defense/debugging/assertions/utils.py:101
↓ 1 callersMethod_transform
Gets prediction and its membership label per each class from shadow models
src/aijack/attack/membership/utils.py:74
↓ 1 callersMethod_update_cov_tracker
(self, x)
src/aijack/defense/debugging/neuroncoverage/neuroncoverage.py:93
↓ 1 callersMethod_update_logging
(self, i, distance, best_iteration, best_distance)
src/aijack/attack/inversion/gradientinversion.py:321
↓ 1 callersFunction_update_side_info_adam
Update side information for Adam optimizer. Args: opt: Optimizer instance.
src/aijack/defense/dp/manager/adadps.py:37
↓ 1 callersFunction_update_side_info_rmsprop
Update side information for RMSprop optimizer. Args: opt: Optimizer instance.
src/aijack/defense/dp/manager/adadps.py:11
↓ 1 callersMethodaccumulate_grad
(self)
src/aijack/defense/dp/manager/dpoptimizer.py:123
↓ 1 callersMethodaccumulate_grad
(self)
src/aijack/defense/dp/manager/adadps.py:157
↓ 1 callersMethodaction
(self)
src/aijack/collaborative/fedgems/server.py:41
↓ 1 callersMethodaction
(self)
src/aijack/collaborative/dsfl/server.py:62
↓ 1 callersMethodaction_after_lossbackward
(self, target_layer_name=None)
src/aijack/defense/soteria/soteria_client.py:90
↓ 1 callersMethodaction_before_lossbackward
(self)
src/aijack/defense/soteria/soteria_client.py:64
↓ 1 callersMethodadd_data
aivalut/src/storage/data.pb.h:709
↓ 1 callersFunctionaggregate_categorical_column
* @brief Aggregates categorical column * * @param df * @param indices * @param column * @return std::string */
src/aijack/defense/kanonymity/core/agg.h:22
↓ 1 callersFunctionaggregte_continuous_column
* @brief Aggregates continuous column * * @param df * @param indices * @param column * @return float */
src/aijack/defense/kanonymity/core/agg.h:47
↓ 1 callersMethodappendTuple
aivalut/src/storage/bufpool.h:92
↓ 1 callersMethodapproach_consensus
Train the own local model to minimize the distance between the global logits and the output logits of the local model on the public dataset.
src/aijack/collaborative/dsfl/client.py:72
↓ 1 callersFunctionargsort
src/aijack/defense/kanonymity/core/utils.h:22
↓ 1 callersMethodattach
Wraps the given class in GANAttackClientWrapper. Returns: cls: a class wrapped in GANAttackClientWrapper
src/aijack/attack/inversion/gan_attack.py:134
↓ 1 callersMethodattach
(self, cls)
src/aijack/attack/labelleakage/normattack.py:68
↓ 1 callersMethodattach
(self, cls)
src/aijack/attack/poison/mapf.py:45
↓ 1 callersMethodattach
(self, cls)
src/aijack/attack/poison/history.py:32
↓ 1 callersMethodattach
(self, cls)
src/aijack/attack/poison/label_flip.py:69
↓ 1 callersMethodattach
Wraps the given class in FreeRiderClientWrapper. Returns: cls: a class wrapped in FreeRiderClientWrapper
src/aijack/attack/freerider/freerider.py:56
↓ 1 callersMethodattach
(self, cls)
src/aijack/defense/sparse/topk.py:82
↓ 1 callersMethodattach
(self, cls)
src/aijack/defense/sparse/topk.py:89
↓ 1 callersMethodattach
(self, cls)
src/aijack/defense/soteria/soteria_client.py:143
↓ 1 callersMethodattach
(self, cls)
src/aijack/defense/paillier/fed_wrapper.py:53
↓ 1 callersMethodattach
Wraps the given class in FoolsGoldServerWrapper. Returns: cls: a class wrapped in FoolsGoldServerWrapper
src/aijack/defense/foolsgold/server.py:83
↓ 1 callersFunctionattach_adadps
Attach the AdaDPS optimizer to the given class. Args: cls: Class to which AdaDPS optimizer will be attached. accountant: Pri
src/aijack/defense/dp/manager/adadps.py:81
↓ 1 callersFunctionattach_dba_to_client
Wraps the given class in DistributedBackdoorAttackClientWrapper. Args: cls: Server class decomposed_trigger_rules ([function]): l
src/aijack/attack/backdoor/dba.py:8
↓ 1 callersFunctionattach_dpoptimizer
Wraps the given optimizer class in DPOptimizerWrapper. Args: accountant (BaseMomentAccountant): moment accountant l2_norm_clip (f
src/aijack/defense/dp/manager/dpoptimizer.py:42
↓ 1 callersFunctionattach_dpsgd_to_client
Attaches DPSGD (Differentially Private Stochastic Gradient Descent) functionality to the client class. Args: cls: Client class to wh
src/aijack/defense/dp/manager/client.py:7
↓ 1 callersFunctionattach_foolsgold_to_server
Wraps the given class in FoolsGoldServerWrapper. Returns: cls: a class wrapped in FoolsGoldServerWrapper
src/aijack/defense/foolsgold/server.py:31
↓ 1 callersFunctionattach_freerider_to_client
Wraps the given class in FreeRiderClientWrapper. Args: mu (float): mean of the gaussian distribution used to generate fake gradients
src/aijack/attack/freerider/freerider.py:8
↓ 1 callersFunctionattach_ganattack_to_client
Wraps the given class in GANAttackClientWrapper. Args: target_label(int): index of target class generator (torch.nn.Module): Gene
src/aijack/attack/inversion/gan_attack.py:8
↓ 1 callersFunctionattach_gradient_inversion_attack_to_server
Wraps the given class in GradientInversionServerWrapper. Args: x_shape: input shape of target_model. attack_function_on_receive (
src/aijack/attack/inversion/gradientinversion_server.py:16
↓ 1 callersFunctionattach_history_attack_to_client
Attaches a history attack to a client. Args: cls: The client class. lam (float): The lambda parameter for the attack. Return
src/aijack/attack/poison/history.py:4
↓ 1 callersFunctionattach_label_flip_attack_to_client
Attaches a label flip attack to a client. Args: cls: The client class. victim_label: The label to be replaced. target_lab
src/aijack/attack/poison/label_flip.py:8
↓ 1 callersFunctionattach_mapf_to_client
Attaches a MAPF attack to a client. Args: cls: The client class. lam (float): The lambda parameter for the attack. base_m
src/aijack/attack/poison/mapf.py:6
↓ 1 callersFunctionattach_modelreplacement_to_client
Wraps the given class in ModelReplacementAttackClientWrapper. Args: cls: Client class Returns: cls: a class wrapped in ModelR
src/aijack/attack/backdoor/modelreplacement.py:13
↓ 1 callersFunctionattach_mpi_to_fedavgclient
(cls)
src/aijack/collaborative/fedavg/client.py:138
↓ 1 callersFunctionattach_mpi_to_fedavgserver
(cls)
src/aijack/collaborative/fedavg/server.py:146
↓ 1 callersFunctionattach_mpi_to_fedmdclient
(cls)
src/aijack/collaborative/fedmd/client.py:79
↓ 1 callersFunctionattach_mpi_to_fedmdserver
(cls)
src/aijack/collaborative/fedmd/server.py:45
↓ 1 callersFunctionattach_normattack_to_splitnn
Attaches a normalization attack to a SplitNN model. Args: cls: The SplitNN model class. attack_criterion: The criterion for the a
src/aijack/attack/labelleakage/normattack.py:7
↓ 1 callersFunctionattach_paillier_to_client_for_encrypted_grad
Makes the client class communicate the encrypted gradients with paillier encryption scheme. Args: cls: client class pk: public ke
src/aijack/defense/paillier/fed_wrapper.py:7
↓ 1 callersFunctionattach_soteria_to_client
Attaches the Soteria wrapper to the client class. Args: cls: The client class to which Soteria will be attached. input_layer
src/aijack/defense/soteria/soteria_client.py:6
↓ 1 callersFunctionattach_sparse_gradient_to_client
Make the client class communicate the sparse gradients. Args: cls: client class k (int): strength of sparcity Returns:
src/aijack/defense/sparse/topk.py:6
↓ 1 callersFunctionattach_sparse_gradient_to_server
Make the server class communicate the sparse gradients. Args: cls: server class Returns: cls: a class wrapped in SparseGradi
src/aijack/defense/sparse/topk.py:40
↓ 1 callersMethodattack
(self, **kwargs)
src/aijack/attack/inversion/gradientinversion_server.py:59
↓ 1 callersMethodattack
Execute the model inversion attack on the target model. Args: target_label (int): taregt label lam (float): step size
src/aijack/attack/inversion/mi_face.py:56
↓ 1 callersFunctionbeta
src/aijack/defense/dp/core/utils.cpp:16
↓ 1 callersFunctionbn_regularizer
Computes the batch normalization regularizer loss. Args: feature_maps (list): List of feature maps. bn_layers (list): List of bat
src/aijack/attack/inversion/utils/regularization.py:47
↓ 1 callersMethodbucket_count
* Bucket interface */
src/aijack/defense/tsl/robin_hash.h:1054
↓ 1 callersMethodcalc_loss_on_public_dataset
(self, idx, y_pred, y)
src/aijack/collaborative/fedgems/client.py:44
↓ 1 callersMethodcalc_upperbound_of_rdp_onestep
Calculate the upper bound of Renyi Differential Privacy (RDP) for one step. Args: alpha (float): Privacy parameter alpha
src/aijack/defense/dp/manager/accountant.py:64
↓ 1 callersFunctioncalc_upperbound_of_rdp_with_Sampled_Gaussian_Mechanism_float
Compute log(A_alpha) for fractional alpha. 0 < q < 1.
src/aijack/defense/dp/manager/rdp.py:84
↓ 1 callersFunctioncalc_upperbound_of_rdp_with_Sampled_Gaussian_Mechanism_frac
src/aijack/defense/dp/core/rdp.cpp:93
↓ 1 callersFunctioncalc_upperbound_of_rdp_with_Sampled_Gaussian_Mechanism_int
src/aijack/defense/dp/core/rdp.cpp:72
↓ 1 callersFunctioncalc_upperbound_of_rdp_with_Sampled_Gaussian_Mechanism_int
Renyi Differential Privacy of the Sampled Gaussian Mechanism 3.3 Numerically Stable Computatio
src/aijack/defense/dp/manager/rdp.py:63
↓ 1 callersMethodcend
src/aijack/defense/tsl/robin_set.h:196
↓ 1 callersMethodcend
src/aijack/defense/tsl/robin_map.h:219
↓ 1 callersMethodclear
* Modifiers */
src/aijack/defense/tsl/robin_set.h:208
↓ 1 callersMethodclear
* Modifiers */
src/aijack/defense/tsl/robin_map.h:231
↓ 1 callersFunctionclient_exit
aivalut/src/main.cpp:63
↓ 1 callersFunctioncolTypeToString
aivalut/src/storage/base.h:60
↓ 1 callersFunctionconvert_anodataframe_to_pddataframe
(ano_df, columns, is_continuous_map)
src/aijack/defense/kanonymity/wrapper.py:19
↓ 1 callersFunctionconvert_pddataframe_to_anodataframe
(pd_df, is_continuous_map)
src/aijack/defense/kanonymity/wrapper.py:7
↓ 1 callersFunctioncrossentropyloss_between_logits
Cross entropy loss for soft labels Based on https://discuss.pytorch.org/t/soft-cross-entropy-loss-tf-has-it-does-pytorch-have-it/69501/2 Args:
src/aijack/utils/metrics.py:21
↓ 1 callersMethoddeactivate
aivalut/src/utils/bptree.h:371
↓ 1 callersMethoddecode
src/aijack/defense/paillier/src/paillier.h:188
↓ 1 callersMethoddecrypt
(self, sk, device="cpu")
src/aijack/defense/paillier/torch_wrapper.py:34
↓ 1 callersMethoddecrypt_grad
(self, global_grad)
src/aijack/defense/paillier/fed_wrapper.py:38
↓ 1 callersMethoddeleteMin
aivalut/src/utils/bptree.h:67
↓ 1 callersMethoddelta_kernel
(xm)
src/aijack/attack/evasion/evasion_attack.py:103
↓ 1 callersMethoddigest_phase
(self, i, logging)
src/aijack/collaborative/fedmd/api.py:99
↓ 1 callersMethoddigest_phase
(self)
src/aijack/collaborative/fedmd/api.py:218
↓ 1 callersMethoddistribute
Distribute the logits of public dataset to each client.
src/aijack/collaborative/fedgems/server.py:48
↓ 1 callersMethoddistribute
Distribute the logits of public dataset to each client.
src/aijack/collaborative/dsfl/server.py:102
↓ 1 callersMethoddistribute
(self)
src/aijack/collaborative/splitnn/client.py:42
↓ 1 callersMethoddistribute
Distribute the logits of public dataset to each client.
src/aijack/collaborative/fedmd/server.py:39
↓ 1 callersMethoddownload
(self, predicted_values_of_server)
src/aijack/collaborative/fedgems/client.py:36
↓ 1 callersMethoddownload
Download the global logits from the server. Args: global_logit (torch.Tensor): the global logits from the server
src/aijack/collaborative/dsfl/client.py:59
↓ 1 callersMethoddownload
(self, grad_from_next_client)
src/aijack/collaborative/splitnn/client.py:30
↓ 1 callersMethodemplace
src/aijack/defense/tsl/robin_map.h:298
↓ 1 callersMethodemplace_hint
src/aijack/defense/tsl/robin_map.h:310
← previousnext →301–400 of 1,327, ranked by callers